iwlwifi: mvm: always free inactive queue when moving ownership
authorSara Sharon <sara.sharon@intel.com>
Wed, 16 Nov 2016 15:04:36 +0000 (17:04 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 3 Feb 2017 14:26:40 +0000 (16:26 +0200)
commit01796ff2fa6e81b0d806e735308d8171bcbfbec7
treea62b9a653f08985ca54072b41cb2c4dbdb118489
parent9ba221b372c177b6908ff8c39b7b056538622ae1
iwlwifi: mvm: always free inactive queue when moving ownership

If iwl_mvm_find_free_queue() doesn't find a free queue, it will
return an inactive one.
However, not all the call paths free this queue before reassigning
it, which is a bug.
Check it in other paths and act accordingly.

Fixes: 9794c64f302d ("iwlwifi: mvm: support dqa queue inactivation upon timeout")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c