iwlwifi: mvm: reconfigure queues during inactivity check
authorJohannes Berg <johannes.berg@intel.com>
Wed, 4 Jul 2018 14:21:03 +0000 (16:21 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 8 Oct 2018 07:48:15 +0000 (10:48 +0300)
commitdf2a2245db6b458f7ef0d9b38dc10684b90d2ece
treec4b1e5af9461551b04fbdc8f2f526e5f45c97f2b
parentb342228d6bc51b920cb1d2f81f13c45735379507
iwlwifi: mvm: reconfigure queues during inactivity check

We currently reconfigure the queues after the inactivity check,
but only in one of the two callers. This might leave queues in
a state where the TID owner is wrong, if called when reserving
a queue for a new station.

Clean this up and do the reconfiguration inside the inactivity
check function. This requires changing the locking, but one of
the two places already holds the mvm mutex and the other easily
can.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c