mac80211: Move up init of TXQs
authorToke Høiland-Jørgensen <[email protected]>
Fri, 25 May 2018 12:29:21 +0000 (14:29 +0200)
committerJohannes Berg <[email protected]>
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 <[email protected]>
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Tested-by: Niklas Cassel <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
net/mac80211/main.c