]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Move up init of TXQs
authorToke Høiland-Jørgensen <toke@toke.dk>
Fri, 25 May 2018 12:29:21 +0000 (14:29 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Fri, 15 Jun 2018 11:02:42 +0000 (13:02 +0200)
commitd4c935a939168ed59d8cbaca0db9b83f93ed2c9b
tree17c179af3bbd71cfbacf1068674c3979dadbad89
parentfa42397dfb5afac3f6e196f03c2999bdf91a9666
mac80211: Move up init of TXQs

On init, ieee80211_if_add() dumps the interface. Since that now includes a
dump of the TXQ state, we need to initialise that before the dump happens.
So move up the TXQ initialisation to to before the call to
ieee80211_if_add().

Fixes: cf2d7a84af4c ("cfg80211: Expose TXQ stats and parameters to userspace")
Reported-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
Tested-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
net/mac80211/main.c