summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/mvm.h
diff options
context:
space:
mode:
authorArik Nemtsov <arikx.nemtsov@intel.com>2014-12-28 09:23:16 +0200
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-03-12 09:57:29 +0200
commit5711cac489d06cc9c3cdcd513c810b7148beb49d (patch)
tree58e2b813e65db801667c77118a9f1d0e7b174b85 /drivers/net/wireless/iwlwifi/mvm/mvm.h
parentce5000710bd80b87917875897d74167a0a07b342 (diff)
downloadtalos-op-linux-5711cac489d06cc9c3cdcd513c810b7148beb49d.tar.gz
talos-op-linux-5711cac489d06cc9c3cdcd513c810b7148beb49d.zip
iwlwifi: allow disabling LAR via module param
This module parameter is useful for debugging NVM and LAR related issues. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/mvm.h')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mvm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mvm.h b/drivers/net/wireless/iwlwifi/mvm/mvm.h
index a196c7859086..207c3a847ed4 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mvm.h
+++ b/drivers/net/wireless/iwlwifi/mvm/mvm.h
@@ -917,6 +917,10 @@ static inline bool iwl_mvm_is_lar_supported(struct iwl_mvm *mvm)
bool nvm_lar = mvm->nvm_data->lar_enabled;
bool tlv_lar = mvm->fw->ucode_capa.capa[0] &
IWL_UCODE_TLV_CAPA_LAR_SUPPORT;
+
+ if (iwlwifi_mod_params.lar_disable)
+ return false;
+
/*
* Enable LAR only if it is supported by the FW (TLV) &&
* enabled in the NVM
OpenPOWER on IntegriCloud