aboutsummaryrefslogtreecommitdiffstats
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
commit802b43511ee55cfbb5e419d3193acadd28f10a19 (patch)
tree2835b4d701c6eb241eaa720b83632da34af4f73a /package/madwifi/patches/309-micfail_detect.patch
parente514daee9b58f09739b31b645d77bcbdda3507c5 (diff)
downloadupstream-802b43511ee55cfbb5e419d3193acadd28f10a19.tar.gz
upstream-802b43511ee55cfbb5e419d3193acadd28f10a19.tar.bz2
upstream-802b43511ee55cfbb5e419d3193acadd28f10a19.zip
fixes for wpa/wpa2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7453 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 a51915ef76..ff3be903c6 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) {