mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-11 18:30:14 +02:00
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
This commit is contained in:
parent
1a29ef8e97
commit
9eedef7a46
13
package/madwifi/patches/458-ibss_wpa_none.patch
Normal file
13
package/madwifi/patches/458-ibss_wpa_none.patch
Normal file
@ -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.
|
||||
*/
|
Loading…
Reference in New Issue
Block a user