Commit 5a6e0434 authored by Ihar Hrachyshka's avatar Ihar Hrachyshka Committed by David S. Miller

libertas: fix memory alignment problems on the blackfin

Fixing unaligned memory access on the blackfin architecture (maybe on the
ARM also).
Signed-off-by: default avatarIhar Hrachyshka <ihar.hrachyshka@promwad.com>
Signed-off-by: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9e7d1a44
...@@ -12,8 +12,10 @@ ...@@ -12,8 +12,10 @@
#include "cmd.h" #include "cmd.h"
static const u8 bssid_any[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; static const u8 bssid_any[ETH_ALEN] __attribute__ ((aligned (2))) =
static const u8 bssid_off[ETH_ALEN] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; { 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, static int assoc_helper_essid(struct lbs_private *priv,
......
...@@ -349,7 +349,7 @@ struct assoc_request { ...@@ -349,7 +349,7 @@ struct assoc_request {
u8 channel; u8 channel;
u8 band; u8 band;
u8 mode; u8 mode;
u8 bssid[ETH_ALEN]; u8 bssid[ETH_ALEN] __attribute__ ((aligned (2)));
/** WEP keys */ /** WEP keys */
struct enc_key wep_keys[4]; struct enc_key wep_keys[4];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment