summaryrefslogtreecommitdiff
path: root/package/madwifi/patches/309-micfail_detect.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-06-02 17:04:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-06-02 17:04:43 +0000
commit07796f78730da31845f23f60aef2806ff897a3aa (patch)
tree640553a7fa495eabf728c7363ae5d4518a75d58c /package/madwifi/patches/309-micfail_detect.patch
parente4aa279bf854ba065889a0c9493e7cafca0e2a4d (diff)
downloadmtk-20170518-07796f78730da31845f23f60aef2806ff897a3aa.zip
mtk-20170518-07796f78730da31845f23f60aef2806ff897a3aa.tar.gz
mtk-20170518-07796f78730da31845f23f60aef2806ff897a3aa.tar.bz2
fixes for wpa/wpa2
SVN-Revision: 7453
Diffstat (limited to 'package/madwifi/patches/309-micfail_detect.patch')
-rw-r--r--package/madwifi/patches/309-micfail_detect.patch9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/madwifi/patches/309-micfail_detect.patch b/package/madwifi/patches/309-micfail_detect.patch
index a51915e..ff3be90 100644
--- a/package/madwifi/patches/309-micfail_detect.patch
+++ b/package/madwifi/patches/309-micfail_detect.patch
@@ -47,12 +47,19 @@ diff -ur madwifi.old/ath/if_ath.c madwifi.dev/ath/if_ath.c
dev_kfree_skb(skb);
skb = NULL;
goto rx_next;
-@@ -5806,6 +5790,20 @@
+@@ -5806,6 +5790,27 @@
sc->sc_hwmap[rs->rs_rate].ieeerate,
rs->rs_rssi);
+ /* MIC failure. Drop the packet in any case */
+ if (mic_fail) {
++ /* Drop control frames which are reported with mic error */
++ if ((((struct ieee80211_frame *)skb->data)->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL) {
++ dev_kfree_skb(skb);
++ skb = NULL;
++ mic_fail = 0;
++ goto rx_next;
++ }
+ ni = ieee80211_find_rxnode(ic,
+ (const struct ieee80211_frame_min *) skb->data);
+ if (ni != NULL) {