From 089da7c32bc896e46395c263daa74717ac1d1140 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 9 Nov 2010 02:38:36 +0100 Subject: driver_madwifi: fix a compile error on big endian systems --- src/drivers/driver_madwifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/driver_madwifi.c') 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]; -- cgit v1.1