diff options
author | Ihar Hrachyshka <ihar.hrachyshka@promwad.com> | 2008-07-09 08:29:58 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-07-09 22:16:32 +0200 |
commit | 814feefa859a736d29d0700d49debf13904b429f (patch) | |
tree | a0de4bac0d59eeb4c4457199c9bb8316d992de25 /drivers | |
parent | zd1211rw: stop beacons on remove_interface (diff) | |
download | linux-814feefa859a736d29d0700d49debf13904b429f.tar.xz linux-814feefa859a736d29d0700d49debf13904b429f.zip |
libertas: fix memory alignment problems on the blackfin
Fixing unaligned memory access on the blackfin architecture.
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@promwad.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index d448c9702a0f..387d4878af2f 100644 --- 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; |