summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2015-01-23 21:13:01 +0200
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-02-01 15:58:25 +0200
commita25d40e27e542b8cd936ef1803e18304a6b2afb8 (patch)
tree1bdcfd1262392c089d9cfb2faeb0b43eb4fce652 /drivers/net/wireless
parent4db6558ccc4124d725d4c96eb55720bbbb597112 (diff)
downloadblackbird-obmc-linux-a25d40e27e542b8cd936ef1803e18304a6b2afb8.tar.gz
blackbird-obmc-linux-a25d40e27e542b8cd936ef1803e18304a6b2afb8.zip
iwlwifi: mvm: Fix building channels in scan_config_cmd
Use the chanel hw_value and not the center frequency when building channel array for scan_config_cmd. Signed-off-by: Ilan Peer <ilan.peer@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/scan.c b/drivers/net/wireless/iwlwifi/mvm/scan.c
index 8b74ce7b0e64..7e9aa3cb3254 100644
--- a/drivers/net/wireless/iwlwifi/mvm/scan.c
+++ b/drivers/net/wireless/iwlwifi/mvm/scan.c
@@ -1683,10 +1683,10 @@ int iwl_mvm_config_scan(struct iwl_mvm *mvm)
band = &mvm->nvm_data->bands[IEEE80211_BAND_2GHZ];
for (i = 0; i < band->n_channels; i++, j++)
- scan_config->channel_array[j] = band->channels[i].center_freq;
+ scan_config->channel_array[j] = band->channels[i].hw_value;
band = &mvm->nvm_data->bands[IEEE80211_BAND_5GHZ];
for (i = 0; i < band->n_channels; i++, j++)
- scan_config->channel_array[j] = band->channels[i].center_freq;
+ scan_config->channel_array[j] = band->channels[i].hw_value;
cmd.data[0] = scan_config;
cmd.len[0] = cmd_size;
OpenPOWER on IntegriCloud