[PATCH] mac80211: check ATF flag in ieee80211_next_txq()

Toke Høiland-Jørgensen toke at toke.dk
Wed Jan 6 05:51:07 EST 2021


Ryder Lee <ryder.lee at mediatek.com> writes:

> The selected txq should be scheduled unconditionally if
> NL80211_EXT_FEATURE_AIRTIME_FAIRNESS is not set by driver.
>
> Also put the sta to the end of the active_txqs list if
> deficit is negative then move on to the next txq.

Why is this needed? If the feature is not set, no airtime should ever be
accounted to the station, and so sta->airtime[txqi->txq.ac].deficit will
always be 0 - so you're just adding another check that doesn't actually
change the behaviour, aren't you?

-Toke



More information about the Linux-mediatek mailing list