1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-26 16:01:06 +02:00

hostapd: fix compile error with madwifi enabled

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19080 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2010-01-08 21:25:40 +00:00
parent c64ff4c0d6
commit 08fa74f3bd

View 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];