]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
libertas: fix memory alignment problems on the blackfin
authorIhar Hrachyshka <ihar.hrachyshka@promwad.com>
Fri, 25 Jan 2008 13:15:00 +0000 (14:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:26:48 +0000 (19:26 -0800)
Fixing unaligned memory access on the blackfin architecture (maybe on the
ARM also).

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@promwad.com>
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/libertas/assoc.c
drivers/net/wireless/libertas/dev.h

index c622e9b63cd1cc62a0233e9fb30a8d6ae1853440..87e145ffe8f1a6e72bd6cdf9045e2901b79b89d1 100644 (file)
 #include "cmd.h"
 
 
-static const u8 bssid_any[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
-static const u8 bssid_off[ETH_ALEN] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
+static const u8 bssid_any[ETH_ALEN]  __attribute__ ((aligned (2))) =
+       { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
+static const u8 bssid_off[ETH_ALEN]  __attribute__ ((aligned (2))) =
+       { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
 
 
 static int assoc_helper_essid(struct lbs_private *priv,
index 58d7ef6b5ff5b127591c65bd9d60ffb731c87e9d..5a69f2b608655aee1305177d11851047e589c222 100644 (file)
@@ -349,7 +349,7 @@ struct assoc_request {
        u8 channel;
        u8 band;
        u8 mode;
-       u8 bssid[ETH_ALEN];
+       u8 bssid[ETH_ALEN] __attribute__ ((aligned (2)));
 
        /** WEP keys */
        struct enc_key wep_keys[4];