aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-11-09 01:38:36 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-09 13:53:56 (GMT)
commit089da7c32bc896e46395c263daa74717ac1d1140 (patch)
tree0ecb9a411f4f64e1d47ffb70730b99410b284c65
parent22a062815d14033ce1d8ebcdf94bf08fad493860 (diff)
downloadhostap-089da7c32bc896e46395c263daa74717ac1d1140.zip
hostap-089da7c32bc896e46395c263daa74717ac1d1140.tar.gz
hostap-089da7c32bc896e46395c263daa74717ac1d1140.tar.bz2
driver_madwifi: fix a compile error on big endian systems
-rw-r--r--src/drivers/driver_madwifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_madwifi.c b/src/drivers/driver_madwifi.c
index 834d65d..ebbdfeb 100644
--- a/src/drivers/driver_madwifi.c
+++ b/src/drivers/driver_madwifi.c
@@ -69,6 +69,7 @@
#define MADWIFI_NG
#endif /* IEEE80211_IOCTL_SETWMMPARAMS */
+#define WPA_KEY_RSC_LEN 8
#ifdef HOSTAPD
@@ -1510,7 +1511,6 @@ wpa_driver_madwifi_set_key(const char *ifname, void *priv, enum wpa_alg alg,
wk.ik_keyix = key_idx;
wk.ik_keylen = key_len;
#ifdef WORDS_BIGENDIAN
-#define WPA_KEY_RSC_LEN 8
{
size_t i;
u8 tmp[WPA_KEY_RSC_LEN];