iwlwifi: Send DQA enable command only if TVL is on

The newer targets don't support the DQA enablement command
and will return error status, while older targets need it.
The feature is defined by the corresponding TLV.
Send the command only if the TLV is enabled.

Signed-off-by: Ilia Lin <ilia.lin@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
Ilia Lin 2019-05-14 17:19:06 +03:00 committed by Luca Coelho
parent 9cb63bf664
commit 79660869bf

View File

@ -1246,9 +1246,11 @@ int iwl_mvm_up(struct iwl_mvm *mvm)
/* reset quota debouncing buffer - 0xff will yield invalid data */ /* reset quota debouncing buffer - 0xff will yield invalid data */
memset(&mvm->last_quota_cmd, 0xff, sizeof(mvm->last_quota_cmd)); memset(&mvm->last_quota_cmd, 0xff, sizeof(mvm->last_quota_cmd));
ret = iwl_mvm_send_dqa_cmd(mvm); if (fw_has_capa(&mvm->fw->ucode_capa, IWL_UCODE_TLV_CAPA_DQA_SUPPORT)) {
if (ret) ret = iwl_mvm_send_dqa_cmd(mvm);
goto error; if (ret)
goto error;
}
/* Add auxiliary station for scanning */ /* Add auxiliary station for scanning */
ret = iwl_mvm_add_aux_sta(mvm); ret = iwl_mvm_add_aux_sta(mvm);