hostapd: fix compile error with madwifi enabled
authorFelix Fietkau <nbd@openwrt.org>
Fri, 8 Jan 2010 21:25:40 +0000 (21:25 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 8 Jan 2010 21:25:40 +0000 (21:25 +0000)
SVN-Revision: 19080

package/hostapd/patches/120-compile_fix.patch

index f107cd49c6fbc3c87e27f6e227e017c6bef74cb1..43a15787d5a45210c7e42ab90e2fe62dcaeea891 100644 (file)
@@ -8,3 +8,21 @@
  #include <netpacket/packet.h>
  #include <linux/filter.h>
  #include "nl80211_copy.h"
+--- 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
+@@ -1499,7 +1500,6 @@ wpa_driver_madwifi_set_key(const char *i
+       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];