379-mac80211-ignore-tx-status-for-PS-stations-in-ieee802.patch 896 B

1234567891011121314151617181920212223242526
  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. Make it behave like regular ieee80211_tx_status calls, except for the lack of
  6. filtered frame processing.
  7. This fixes spurious low-ack triggered disconnections with powersave clients
  8. connected to an AP.
  9. Fixes: f027c2aca0cf4 ("mac80211: add ieee80211_tx_status_noskb")
  10. Cc: stable@vger.kernel.org
  11. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  12. ---
  13. --- a/net/mac80211/status.c
  14. +++ b/net/mac80211/status.c
  15. @@ -984,6 +984,8 @@ void ieee80211_tx_status_ext(struct ieee
  16. /* Track when last TDLS packet was ACKed */
  17. if (test_sta_flag(sta, WLAN_STA_TDLS_PEER_AUTH))
  18. sta->status_stats.last_tdls_pkt_time = jiffies;
  19. + } else if (test_sta_flag(sta, WLAN_STA_PS_STA)) {
  20. + return;
  21. } else {
  22. ieee80211_lost_packet(sta, info);
  23. }