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)
commitdc8b274f0952f604d72b10698cde6887321a669f
tree17c179af3bbd71cfbacf1068674c3979dadbad89
parent3f61b7a30a6a8fd917d7570cb00a26a054d84ab4
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: 52539ca89f36 ("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