diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-07-04 05:58:28 -0400 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2018-10-08 03:47:32 -0400 |
commit | 1c14089e37835dd7a3494636175deddbde2cf43e (patch) | |
tree | 6983b464212cd56ea73732923b7af70275db7281 /drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |
parent | 99448a8c11456fe4721e326047db008e273c3de8 (diff) |
iwlwifi: mvm: remove per-queue hw refcount
There's no need to have a hw refcount if we just mark the
command queue with a (fake) TID; at that point, the refcount
becomes equivalent to the hweight() of the TID bitmap.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c index dec097b72300..818e1180bbdd 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |||
@@ -619,7 +619,7 @@ int iwl_mvm_reconfig_scd(struct iwl_mvm *mvm, int queue, int fifo, int sta_id, | |||
619 | return -EINVAL; | 619 | return -EINVAL; |
620 | 620 | ||
621 | spin_lock_bh(&mvm->queue_info_lock); | 621 | spin_lock_bh(&mvm->queue_info_lock); |
622 | if (WARN(mvm->queue_info[queue].hw_queue_refcount == 0, | 622 | if (WARN(mvm->queue_info[queue].tid_bitmap == 0, |
623 | "Trying to reconfig unallocated queue %d\n", queue)) { | 623 | "Trying to reconfig unallocated queue %d\n", queue)) { |
624 | spin_unlock_bh(&mvm->queue_info_lock); | 624 | spin_unlock_bh(&mvm->queue_info_lock); |
625 | return -ENXIO; | 625 | return -ENXIO; |