aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-11-13 20:34:35 +0100
committerFelix Fietkau <nbd@nbd.name>2018-11-13 21:18:29 +0100
commit9d07678d359e05866abf8a69972ad8ae41ff62d2 (patch)
treee20346271f63fce94ba8402399c8c9b29c4a975e
parenteb89dcaf4a09bcd1fc89335dc7e3dae8c92f3603 (diff)
downloadupstream-9d07678d359e05866abf8a69972ad8ae41ff62d2.tar.gz
upstream-9d07678d359e05866abf8a69972ad8ae41ff62d2.tar.bz2
upstream-9d07678d359e05866abf8a69972ad8ae41ff62d2.zip
mac80211: fix spurious disconnections with powersave clients
Affects all drivers using ieee80211_tx_status_noskb, e.g. ath9k and mt76 Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--package/kernel/mac80211/patches/397-mac80211-ignore-tx-status-for-PS-stations-in-ieee802.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/397-mac80211-ignore-tx-status-for-PS-stations-in-ieee802.patch b/package/kernel/mac80211/patches/397-mac80211-ignore-tx-status-for-PS-stations-in-ieee802.patch
new file mode 100644
index 0000000000..0269da126d
--- /dev/null
+++ b/package/kernel/mac80211/patches/397-mac80211-ignore-tx-status-for-PS-stations-in-ieee802.patch
@@ -0,0 +1,26 @@
+From: Felix Fietkau <nbd@nbd.name>
+Date: Tue, 13 Nov 2018 20:29:03 +0100
+Subject: [PATCH] mac80211: ignore tx status for PS stations in
+ ieee80211_tx_status_ext
+
+Make it behave like regular ieee80211_tx_status calls, except for the lack of
+filtered frame processing.
+This fixes spurious low-ack triggered disconnections with powersave clients
+connected to an AP.
+
+Fixes: f027c2aca0cf4 ("mac80211: add ieee80211_tx_status_noskb")
+Cc: stable@vger.kernel.org
+Signed-off-by: Felix Fietkau <nbd@nbd.name>
+---
+
+--- a/net/mac80211/status.c
++++ b/net/mac80211/status.c
+@@ -976,6 +976,8 @@ void ieee80211_tx_status_ext(struct ieee
+ /* Track when last TDLS packet was ACKed */
+ if (test_sta_flag(sta, WLAN_STA_TDLS_PEER_AUTH))
+ sta->status_stats.last_tdls_pkt_time = jiffies;
++ } else if (test_sta_flag(sta, WLAN_STA_PS_STA)) {
++ return;
+ } else {
+ ieee80211_lost_packet(sta, info);
+ }