summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau2018-11-13 20:32:13 +0100
committerGreg Kroah-Hartman2018-12-13 09:16:23 +0100
commit50749911b1cc6ab2534139ea72d81396e18e5f44 (patch)
treef43214e841b9da2131f1cafdf57c62a6136c324c /net/mac80211
parentmac80211: Clear beacon_int in ieee80211_do_stop (diff)
downloadkernel-qcow2-linux-50749911b1cc6ab2534139ea72d81396e18e5f44.tar.gz
kernel-qcow2-linux-50749911b1cc6ab2534139ea72d81396e18e5f44.tar.xz
kernel-qcow2-linux-50749911b1cc6ab2534139ea72d81396e18e5f44.zip
mac80211: ignore tx status for PS stations in ieee80211_tx_status_ext
commit a317e65face482371de30246b6494feb093ff7f9 upstream. 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> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 91d7c0cd1882..7fa10d06cc51 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -964,6 +964,8 @@ void ieee80211_tx_status_ext(struct ieee80211_hw *hw,
/* 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);
}