a4176363bb1fbec49755b9041664835f996a68c9
[openwrt/staging/jow.git] /
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Tue, 13 Nov 2018 20:29:03 +0100
3 Subject: [PATCH] mac80211: ignore tx status for PS stations in
4 ieee80211_tx_status_ext
5
6 Make it behave like regular ieee80211_tx_status calls, except for the lack of
7 filtered frame processing.
8 This fixes spurious low-ack triggered disconnections with powersave clients
9 connected to an AP.
10
11 Fixes: f027c2aca0cf4 ("mac80211: add ieee80211_tx_status_noskb")
12 Cc: stable@vger.kernel.org
13 Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 ---
15
16 --- a/net/mac80211/status.c
17 +++ b/net/mac80211/status.c
18 @@ -987,6 +987,8 @@ void ieee80211_tx_status_ext(struct ieee
19 /* Track when last TDLS packet was ACKed */
20 if (test_sta_flag(sta, WLAN_STA_TDLS_PEER_AUTH))
21 sta->status_stats.last_tdls_pkt_time = jiffies;
22 + } else if (test_sta_flag(sta, WLAN_STA_PS_STA)) {
23 + return;
24 } else {
25 ieee80211_lost_packet(sta, info);
26 }