aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-08 21:25:40 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-08 21:25:40 +0000
commit4fc3bf3561b75d97a9a084ff82d390529ed886d2 (patch)
tree434513ec1d3a86488ffdaf356381e2367fda0a3c
parentb4b218d20a10f323ef06696dcc3dce59c2de6611 (diff)
downloadupstream-4fc3bf3561b75d97a9a084ff82d390529ed886d2.tar.gz
upstream-4fc3bf3561b75d97a9a084ff82d390529ed886d2.tar.bz2
upstream-4fc3bf3561b75d97a9a084ff82d390529ed886d2.zip
hostapd: fix compile error with madwifi enabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19080 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/hostapd/patches/120-compile_fix.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/hostapd/patches/120-compile_fix.patch b/package/hostapd/patches/120-compile_fix.patch
index f107cd49c6..43a15787d5 100644
--- a/package/hostapd/patches/120-compile_fix.patch
+++ b/package/hostapd/patches/120-compile_fix.patch
@@ -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];