diff options
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 19 | 
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c index b8e20a01c192..8686107da116 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c @@ -88,17 +88,11 @@ int iwl_mvm_send_cmd(struct iwl_mvm *mvm, struct iwl_host_cmd *cmd)  	 * the mutex, this ensures we don't try to send two  	 * (or more) synchronous commands at a time.  	 */ -	if (!(cmd->flags & CMD_ASYNC)) { +	if (!(cmd->flags & CMD_ASYNC))  		lockdep_assert_held(&mvm->mutex); -		if (!(cmd->flags & CMD_SEND_IN_IDLE)) -			iwl_mvm_ref(mvm, IWL_MVM_REF_SENDING_CMD); -	}  	ret = iwl_trans_send_cmd(mvm->trans, cmd); -	if (!(cmd->flags & (CMD_ASYNC | CMD_SEND_IN_IDLE))) -		iwl_mvm_unref(mvm, IWL_MVM_REF_SENDING_CMD); -  	/*  	 * If the caller wants the SKB, then don't hide any problems, the  	 * caller might access the response buffer which will be NULL if @@ -537,7 +531,7 @@ static void iwl_mvm_dump_lmac_error_log(struct iwl_mvm *mvm, u8 lmac_num)  		/* reset the device */  		iwl_trans_sw_reset(trans); -		err = iwl_finish_nic_init(trans); +		err = iwl_finish_nic_init(trans, trans->trans_cfg);  		if (err)  			return;  	} @@ -945,8 +939,9 @@ unsigned int iwl_mvm_get_wd_timeout(struct iwl_mvm *mvm,  {  	struct iwl_fw_dbg_trigger_tlv *trigger;  	struct iwl_fw_dbg_trigger_txq_timer *txq_timer; -	unsigned int default_timeout = -		cmd_q ? IWL_DEF_WD_TIMEOUT : mvm->cfg->base_params->wd_timeout; +	unsigned int default_timeout = cmd_q ? +		IWL_DEF_WD_TIMEOUT : +		mvm->trans->trans_cfg->base_params->wd_timeout;  	if (!iwl_fw_dbg_trigger_enabled(mvm->fw, FW_DBG_TRIGGER_TXQ_TIMERS)) {  		/* @@ -990,7 +985,7 @@ unsigned int iwl_mvm_get_wd_timeout(struct iwl_mvm *mvm,  		return default_timeout;  	default:  		WARN_ON(1); -		return mvm->cfg->base_params->wd_timeout; +		return mvm->trans->trans_cfg->base_params->wd_timeout;  	}  } @@ -1436,7 +1431,7 @@ u32 iwl_mvm_get_systime(struct iwl_mvm *mvm)  {  	u32 reg_addr = DEVICE_SYSTEM_TIME_REG; -	if (mvm->trans->cfg->device_family >= IWL_DEVICE_FAMILY_22000 && +	if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000 &&  	    mvm->trans->cfg->gp2_reg_addr)  		reg_addr = mvm->trans->cfg->gp2_reg_addr;  |