Skip to contentSkip to conversation

mac80211: ignore tx status for PS stations in ieee80211_tx_status_ext

PATCH New Felix Fietkau 1 participant 1 message Nov 13, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 net/mac80211/status.c | 2 ++
 1 file changed, 2 insertions(+)
net/mac80211/status.c +2 -0
index aa4afbf0abaf..a794ca729000 100644
@@ -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);
 		}
Signature · 1 line
2.17.0