summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/fw.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-02-12 22:02:38 +0100
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-02-23 19:27:26 +0200
commitfde73834eadb56962fd3b00f231ce58de5f00170 (patch)
tree1c0aa160853e60f14440df5f82fa5c6757c42719 /drivers/net/wireless/iwlwifi/mvm/fw.c
parent5fc0f76c43bdb19f8080a25b653569666a637306 (diff)
downloadop-kernel-dev-fde73834eadb56962fd3b00f231ce58de5f00170.zip
op-kernel-dev-fde73834eadb56962fd3b00f231ce58de5f00170.tar.gz
iwlwifi: nvm: remove reading valid antennas from NVM
These values aren't used as the firmware values should be used, so reading them is pointless and hides potential errors when somebody uses these values. Leave them zero to make it clearer that they can't be used. We can't remove the struct members as the DVM driver does read the values from EEPROM/OTP and the structure is shared between drivers. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/fw.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/fw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/fw.c b/drivers/net/wireless/iwlwifi/mvm/fw.c
index 979b35b..93e1b4d 100644
--- a/drivers/net/wireless/iwlwifi/mvm/fw.c
+++ b/drivers/net/wireless/iwlwifi/mvm/fw.c
@@ -358,8 +358,6 @@ out:
GFP_KERNEL);
if (!mvm->nvm_data)
return -ENOMEM;
- mvm->nvm_data->valid_rx_ant = 1;
- mvm->nvm_data->valid_tx_ant = 1;
mvm->nvm_data->bands[0].channels = mvm->nvm_data->channels;
mvm->nvm_data->bands[0].n_channels = 1;
mvm->nvm_data->bands[0].n_bitrates = 1;
OpenPOWER on IntegriCloud