]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
libertas: fix memory alignment problems on the blackfin
authorIhar Hrachyshka <ihar.hrachyshka@promwad.com>
Wed, 9 Jul 2008 06:29:58 +0000 (09:29 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Jul 2008 20:16:32 +0000 (16:16 -0400)
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>
drivers/net/wireless/libertas/scan.c

index d448c9702a0f93528d66f7d5f2ee116a452a1604..387d4878af2f02488b32f95804e66ed0dea6e377 100644 (file)
@@ -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;