diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2017-12-13 12:38:48 +0300 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2017-12-20 19:28:25 +0300 |
commit | 4243edb4704ed950a43440dfb4cbd5613db6ab6c (patch) | |
tree | 61440791a4487171ada970ab29a71df643722a4c /drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |
parent | 09f1ee8cc1fc59f6795550f378e57e204698ed65 (diff) | |
download | linux-4243edb4704ed950a43440dfb4cbd5613db6ab6c.tar.xz |
iwlwifi: define and use if iwl_mvm_has_tlc_offload
This aligns the code with the existing pattern to check
if the firmware has a certain capability.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c index 2fead5eb63fe..d65e1db7c097 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c @@ -912,8 +912,7 @@ int iwl_mvm_send_lq_cmd(struct iwl_mvm *mvm, struct iwl_lq_cmd *lq, bool init) }; if (WARN_ON(lq->sta_id == IWL_MVM_INVALID_STA || - fw_has_capa(&mvm->fw->ucode_capa, - IWL_UCODE_TLV_CAPA_TLC_OFFLOAD))) + iwl_mvm_has_tlc_offload(mvm))) return -EINVAL; return iwl_mvm_send_cmd(mvm, &cmd); |