diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-04-04 04:41:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-08 16:44:43 -0400 |
commit | 182e2e66ca56f750845f5314708434c286edd6e4 (patch) | |
tree | 4f61bcf21b4a57568564f6a71681fef8a20dafa1 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 41a7be4858b886f83522e62d409263fcdb82653b (diff) |
iwlwifi: honour regulatory restrictions in scan code
When doing firmware-assisted scanning, iwlwifi drivers do not
honour the regulatory control code that might disable channels
that are enabled in the EEPROM, for example when the user is
visiting another country and adjusted the regulatory domain
accordingly. This patch fixes that.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index d4daa04465a3..5e51cfcda39f 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -4965,6 +4965,9 @@ static int iwl3945_get_channels_for_scan(struct iwl3945_priv *priv, | |||
4965 | passive_dwell = iwl3945_get_passive_dwell_time(priv, band); | 4965 | passive_dwell = iwl3945_get_passive_dwell_time(priv, band); |
4966 | 4966 | ||
4967 | for (i = 0, added = 0; i < sband->n_channels; i++) { | 4967 | for (i = 0, added = 0; i < sband->n_channels; i++) { |
4968 | if (channels[i].flags & IEEE80211_CHAN_DISABLED) | ||
4969 | continue; | ||
4970 | |||
4968 | if (channels[i].hw_value == | 4971 | if (channels[i].hw_value == |
4969 | le16_to_cpu(priv->active_rxon.channel)) { | 4972 | le16_to_cpu(priv->active_rxon.channel)) { |
4970 | if (iwl3945_is_associated(priv)) { | 4973 | if (iwl3945_is_associated(priv)) { |