diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-08-30 13:12:45 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-09-02 14:43:52 +0200 |
commit | a894a535ff7e6c37bd853e951663130482bc0ff2 (patch) | |
tree | e76a391c0b6b903c8a0d52ecad4d823a4a14afd2 /package/kernel/mac80211/patches/345-mac80211-send-delBA-on-unexpected-BlockAck-Request.patch | |
parent | 372d0fea29e60b02154fd7176ba32e7742f6640e (diff) | |
download | upstream-a894a535ff7e6c37bd853e951663130482bc0ff2.tar.gz upstream-a894a535ff7e6c37bd853e951663130482bc0ff2.tar.bz2 upstream-a894a535ff7e6c37bd853e951663130482bc0ff2.zip |
mac80211: add fixes for dealing with unexpected BlockAck frames
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/345-mac80211-send-delBA-on-unexpected-BlockAck-Request.patch')
-rw-r--r-- | package/kernel/mac80211/patches/345-mac80211-send-delBA-on-unexpected-BlockAck-Request.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/345-mac80211-send-delBA-on-unexpected-BlockAck-Request.patch b/package/kernel/mac80211/patches/345-mac80211-send-delBA-on-unexpected-BlockAck-Request.patch new file mode 100644 index 0000000000..c3d3118894 --- /dev/null +++ b/package/kernel/mac80211/patches/345-mac80211-send-delBA-on-unexpected-BlockAck-Request.patch @@ -0,0 +1,26 @@ +From: Johannes Berg <johannes.berg@intel.com> +Date: Mon, 29 Aug 2016 23:25:19 +0300 +Subject: [PATCH] mac80211: send delBA on unexpected BlockAck Request + +If we don't have a BA session, send delBA, as requested by the +IEEE 802.11 spec. Apply the same limit of sending such a delBA +only once as in the previous patch. + +Signed-off-by: Johannes Berg <johannes.berg@intel.com> +--- + +--- a/net/mac80211/rx.c ++++ b/net/mac80211/rx.c +@@ -2537,6 +2537,12 @@ ieee80211_rx_h_ctrl(struct ieee80211_rx_ + + tid = le16_to_cpu(bar_data.control) >> 12; + ++ if (!test_bit(tid, rx->sta->ampdu_mlme.agg_session_valid) && ++ !test_and_set_bit(tid, rx->sta->ampdu_mlme.unexpected_agg)) ++ ieee80211_send_delba(rx->sdata, rx->sta->sta.addr, tid, ++ WLAN_BACK_RECIPIENT, ++ WLAN_REASON_QSTA_REQUIRE_SETUP); ++ + tid_agg_rx = rcu_dereference(rx->sta->ampdu_mlme.tid_rx[tid]); + if (!tid_agg_rx) + return RX_DROP_MONITOR; |