aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-29 12:52:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-29 12:52:32 +0000
commit159ee54e584c834e134053f4ad0c99abe365860e (patch)
treea093edf64b1038e31a13cfbdf904ab9df7ce68b1 /package/hostapd
parent1ec4507cb88f5c848d249f0bd01fcd0a003ae9a3 (diff)
downloadupstream-159ee54e584c834e134053f4ad0c99abe365860e.tar.gz
upstream-159ee54e584c834e134053f4ad0c99abe365860e.tar.bz2
upstream-159ee54e584c834e134053f4ad0c99abe365860e.zip
hostapd: fix driver_madwifi compile issues
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31139 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd')
-rw-r--r--package/hostapd/patches/320-madwifi_key_fixes.patch20
1 files changed, 2 insertions, 18 deletions
diff --git a/package/hostapd/patches/320-madwifi_key_fixes.patch b/package/hostapd/patches/320-madwifi_key_fixes.patch
index 6ce8a4129f..d178bfa401 100644
--- a/package/hostapd/patches/320-madwifi_key_fixes.patch
+++ b/package/hostapd/patches/320-madwifi_key_fixes.patch
@@ -1,22 +1,6 @@
--- a/src/drivers/driver_madwifi.c
+++ b/src/drivers/driver_madwifi.c
-@@ -439,8 +439,14 @@ wpa_driver_madwifi_set_key(const char *i
- wpa_printf(MSG_DEBUG, "%s: alg=%d addr=%s key_idx=%d",
- __func__, alg, ether_sprintf(addr), key_idx);
-
-- if (alg == WPA_ALG_WEP)
-+ if (alg == WPA_ALG_WEP) {
- cipher = IEEE80211_CIPHER_WEP;
-+ if ((!addr || !memcmp(addr, "\xff\xff\xff\xff\xff\xff", ETH_ALEN)) &&
-+ drv->wext)
-+ return wpa_driver_wext_set_key(ifname, drv->wext, alg, addr,
-+ key_idx, set_tx, seq, seq_len,
-+ key, key_len);
-+ }
- else if (alg == WPA_ALG_TKIP)
- cipher = IEEE80211_CIPHER_TKIP;
- else if (alg == WPA_ALG_CCMP)
-@@ -459,7 +465,9 @@ wpa_driver_madwifi_set_key(const char *i
+@@ -459,7 +459,9 @@ wpa_driver_madwifi_set_key(const char *i
memset(&wk, 0, sizeof(wk));
wk.ik_type = cipher;
@@ -27,7 +11,7 @@
if (addr == NULL || is_broadcast_ether_addr(addr)) {
memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN);
wk.ik_keyix = key_idx;
-@@ -471,6 +479,20 @@ wpa_driver_madwifi_set_key(const char *i
+@@ -471,6 +473,20 @@ wpa_driver_madwifi_set_key(const char *i
wk.ik_keylen = key_len;
memcpy(wk.ik_keydata, key, key_len);