summaryrefslogtreecommitdiff
path: root/package/madwifi/patches
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
commitf53f060299aa3c03f0a476178704e9bd69cb3179 (patch)
tree89e80e6dd1509b6714f9fa89107a8a55d0127719 /package/madwifi/patches
parenta5937732322604af25c819b05a105fc795774810 (diff)
downloadmtk-20170518-f53f060299aa3c03f0a476178704e9bd69cb3179.zip
mtk-20170518-f53f060299aa3c03f0a476178704e9bd69cb3179.tar.gz
mtk-20170518-f53f060299aa3c03f0a476178704e9bd69cb3179.tar.bz2
madwifi: disable ccmp replay protection for ibss/ahdemo to make wpa-none work
SVN-Revision: 19822
Diffstat (limited to 'package/madwifi/patches')
-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 0000000..df77510
--- /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.
+ */