diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-06-02 17:04:43 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-06-02 17:04:43 +0000 |
commit | 802b43511ee55cfbb5e419d3193acadd28f10a19 (patch) | |
tree | 2835b4d701c6eb241eaa720b83632da34af4f73a /package/madwifi/patches/309-micfail_detect.patch | |
parent | e514daee9b58f09739b31b645d77bcbdda3507c5 (diff) | |
download | upstream-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.patch | 9 |
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) { |