aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-07 19:15:30 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-07 19:15:30 +0000
commit999a0500021e44e3b49bce64a8cf43006e6b668c (patch)
tree5cdb6fd9ca05928a9918f20f16b4b2aa96d42c8c /package
parentfe32f100a8cd9fd6f65d74632a0cdc9fb57c2dd9 (diff)
downloadupstream-999a0500021e44e3b49bce64a8cf43006e6b668c.tar.gz
upstream-999a0500021e44e3b49bce64a8cf43006e6b668c.tar.bz2
upstream-999a0500021e44e3b49bce64a8cf43006e6b668c.zip
mac80211: fix spurious client reconnects triggered by rejected action frames being interpreted as chan switch announcements
SVN-Revision: 19064
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/550-mac80211_action_frame_fix.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/mac80211/patches/550-mac80211_action_frame_fix.patch b/package/mac80211/patches/550-mac80211_action_frame_fix.patch
new file mode 100644
index 0000000000..9283af64a7
--- /dev/null
+++ b/package/mac80211/patches/550-mac80211_action_frame_fix.patch
@@ -0,0 +1,26 @@
+--- a/net/mac80211/mlme.c
++++ b/net/mac80211/mlme.c
+@@ -1451,7 +1451,9 @@ static void ieee80211_sta_rx_queued_mgmt
+ rma = ieee80211_rx_mgmt_disassoc(sdata, mgmt, skb->len);
+ break;
+ case IEEE80211_STYPE_ACTION:
+- /* XXX: differentiate, can only happen for CSA now! */
++ if (mgmt->u.action.category != WLAN_CATEGORY_SPECTRUM_MGMT)
++ break;
++
+ ieee80211_sta_process_chanswitch(sdata,
+ &mgmt->u.action.u.chan_switch.sw_elem,
+ (void *)ifmgd->associated->priv);
+--- a/net/mac80211/rx.c
++++ b/net/mac80211/rx.c
+@@ -1934,6 +1934,10 @@ ieee80211_rx_h_action(struct ieee80211_r
+ }
+ break;
+ default:
++ /* do not process rejected action frames */
++ if (mgmt->u.action.category & 0x80)
++ return RX_DROP_MONITOR;
++
+ return RX_CONTINUE;
+ }
+