iwlwifi: mvm: hold mutex when flushing in iwl_mvm_flush_no_vif()
authorLuca Coelho <luciano.coelho@intel.com>
Tue, 24 Oct 2017 19:04:15 +0000 (22:04 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 3 Nov 2017 09:56:09 +0000 (11:56 +0200)
commit309c4848c0481f71f4cb20290e6f5bded1e54131
treef841381cc8085435f926f1209075897f254bc898
parent06195639c66d80d21146d0e982f7fc94406ed331
iwlwifi: mvm: hold mutex when flushing in iwl_mvm_flush_no_vif()

The iwl_mvm_flush_tx_path() function sends a synchronous command to
the firmware.  When doing that, we must hold the mutex.  The
iwl_mvm_flush_no_vif() function was mistakenly not holding the mutex.
Fix it.

Fixes: 6110d9e5bdd1 ("iwlwifi: mvm: Flush non STA TX queues")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c