projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86229f0
)
libertas: fix memory alignment problems on the blackfin
author
Ihar Hrachyshka
<
[email protected]
>
Wed, 9 Jul 2008 06:29:58 +0000
(09:29 +0300)
committer
John W. Linville
<
[email protected]
>
Wed, 9 Jul 2008 20:16:32 +0000
(16:16 -0400)
Fixing unaligned memory access on the blackfin architecture.
Signed-off-by: Ihar Hrachyshka <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/libertas/scan.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/libertas/scan.c
b/drivers/net/wireless/libertas/scan.c
index d448c9702a0f93528d66f7d5f2ee116a452a1604..387d4878af2f02488b32f95804e66ed0dea6e377 100644
(file)
--- a/
drivers/net/wireless/libertas/scan.c
+++ b/
drivers/net/wireless/libertas/scan.c
@@
-567,11
+567,11
@@
static int lbs_process_bss(struct bss_descriptor *bss,
pos += 8;
/* beacon interval is 2 bytes long */
- bss->beaconperiod =
le16_to_cpup((void *)
pos);
+ bss->beaconperiod =
get_unaligned_le16(
pos);
pos += 2;
/* capability information is 2 bytes long */
- bss->capability =
le16_to_cpup((void *)
pos);
+ bss->capability =
get_unaligned_le16(
pos);
lbs_deb_scan("process_bss: capabilities 0x%04x\n", bss->capability);
pos += 2;