diff options
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/fw.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c index 3c59109bea20..866c91c923be 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c @@ -8,6 +8,7 @@   * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.   * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH   * Copyright(c) 2016 - 2017 Intel Deutschland GmbH + * Copyright(c) 2018        Intel Corporation   *   * This program is free software; you can redistribute it and/or modify   * it under the terms of version 2 of the GNU General Public License as @@ -35,6 +36,7 @@   * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.   * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH   * Copyright(c) 2016 - 2017 Intel Deutschland GmbH + * Copyright(c) 2018        Intel Corporation   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -79,6 +81,8 @@  #include "mvm.h"  #include "fw/dbg.h"  #include "iwl-phy-db.h" +#include "iwl-modparams.h" +#include "iwl-nvm-parse.h"  #define MVM_UCODE_ALIVE_TIMEOUT	HZ  #define MVM_UCODE_CALIB_TIMEOUT	(2*HZ) @@ -381,7 +385,8 @@ static int iwl_run_unified_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm)  	/* Load NVM to NIC if needed */  	if (mvm->nvm_file_name) { -		iwl_mvm_read_external_nvm(mvm); +		iwl_read_external_nvm(mvm->trans, mvm->nvm_file_name, +				      mvm->nvm_sections);  		iwl_mvm_load_nvm_to_nic(mvm);  	} @@ -410,7 +415,7 @@ static int iwl_run_unified_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm)  	/* Read the NVM only at driver load time, no need to do this twice */  	if (!IWL_MVM_PARSE_NVM && read_nvm) { -		mvm->nvm_data = iwl_fw_get_nvm(&mvm->fwrt); +		mvm->nvm_data = iwl_get_nvm(mvm->trans, mvm->fw);  		if (IS_ERR(mvm->nvm_data)) {  			ret = PTR_ERR(mvm->nvm_data);  			mvm->nvm_data = NULL; @@ -1093,6 +1098,7 @@ int iwl_mvm_up(struct iwl_mvm *mvm)  	if (fw_has_capa(&mvm->fw->ucode_capa, IWL_UCODE_TLV_CAPA_UMAC_SCAN)) {  		mvm->scan_type = IWL_SCAN_TYPE_NOT_SET; +		mvm->hb_scan_type = IWL_SCAN_TYPE_NOT_SET;  		ret = iwl_mvm_config_scan(mvm);  		if (ret)  			goto error;  | 
