mac80211: check if atf has been disabled in __ieee80211_schedule_txq
authorLorenzo Bianconi <lorenzo@kernel.org>
Sat, 26 Dec 2020 09:39:08 +0000 (10:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jan 2021 15:04:04 +0000 (16:04 +0100)
commit6423b2193794f2988f37c31c6e03ccfddecf6f58
tree6e512d803540f8562c536d411179b4b092ac69c2
parenta00432fa4cb9c022c74303c70080267e6a93d624
mac80211: check if atf has been disabled in __ieee80211_schedule_txq

commit c13cf5c159660451c8fbdc37efb998b198e1d305 upstream.

Check if atf has been disabled in __ieee80211_schedule_txq() in order to
avoid a given sta is always put to the beginning of the active_txqs list
and never moved to the end since deficit is not decremented in
ieee80211_sta_register_airtime()

Fixes: b4809e9484da1 ("mac80211: Add airtime accounting and scheduling to TXQs")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://lore.kernel.org/r/93889406c50f1416214c079ca0b8c9faecc5143e.1608975195.git.lorenzo@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/tx.c