54e33f107eeeb253aae8218b1241f9f101e567b1
[openwrt/svn-archive/archive.git] / package / hostapd / patches / 100-madwifi_compile_fix.patch
1 --- a/src/drivers/driver_madwifi.c
2 +++ b/src/drivers/driver_madwifi.c
3 @@ -69,6 +69,7 @@
4 #define MADWIFI_NG
5 #endif /* IEEE80211_IOCTL_SETWMMPARAMS */
6
7 +#define WPA_KEY_RSC_LEN 8
8
9 #ifdef HOSTAPD
10
11 @@ -1510,7 +1511,6 @@ wpa_driver_madwifi_set_key(const char *i
12 wk.ik_keyix = key_idx;
13 wk.ik_keylen = key_len;
14 #ifdef WORDS_BIGENDIAN
15 -#define WPA_KEY_RSC_LEN 8
16 {
17 size_t i;
18 u8 tmp[WPA_KEY_RSC_LEN];