aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-02-23 06:42:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-02-23 06:42:02 +0000
commit38ccf4d8f308b4d9805a3c3dd6015df71b7473d0 (patch)
tree29796e2e83a324051727c8da6062361f80909124 /package/madwifi
parent212a481ea99ac04e2d3415cf3627362ead9a277d (diff)
downloadmaster-187ad058-38ccf4d8f308b4d9805a3c3dd6015df71b7473d0.tar.gz
master-187ad058-38ccf4d8f308b4d9805a3c3dd6015df71b7473d0.tar.bz2
master-187ad058-38ccf4d8f308b4d9805a3c3dd6015df71b7473d0.zip
madwifi: disable ccmp replay protection for ibss/ahdemo to make wpa-none work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19822 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi')
-rw-r--r--package/madwifi/patches/458-ibss_wpa_none.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/madwifi/patches/458-ibss_wpa_none.patch b/package/madwifi/patches/458-ibss_wpa_none.patch
new file mode 100644
index 0000000000..df77510b2a
--- /dev/null
+++ b/package/madwifi/patches/458-ibss_wpa_none.patch
@@ -0,0 +1,13 @@
+--- a/net80211/ieee80211_crypto_ccmp.c
++++ b/net80211/ieee80211_crypto_ccmp.c
+@@ -273,7 +273,9 @@ ccmp_decap(struct ieee80211_key *k, stru
+ tid = ((struct ieee80211_qosframe *)wh)->i_qos[0] & IEEE80211_QOS_TID;
+ /* NB: assume IEEE80211_WEP_MINLEN covers the extended IV */
+ pn = READ_6(ivp[0], ivp[1], ivp[4], ivp[5], ivp[6], ivp[7]);
+- if (pn && pn <= k->wk_keyrsc[tid]) {
++ if ((vap->iv_opmode != IEEE80211_M_IBSS) &&
++ (vap->iv_opmode != IEEE80211_M_AHDEMO) &&
++ (pn && pn <= k->wk_keyrsc[tid])) {
+ /*
+ * Replay violation.
+ */