aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c3
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c3
2 files changed, 6 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)) {
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 4517e4ce3a25..b043871d53f1 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -4794,6 +4794,9 @@ static int iwl4965_get_channels_for_scan(struct iwl_priv *priv,
4794 passive_dwell = iwl4965_get_passive_dwell_time(priv, band); 4794 passive_dwell = iwl4965_get_passive_dwell_time(priv, band);
4795 4795
4796 for (i = 0, added = 0; i < sband->n_channels; i++) { 4796 for (i = 0, added = 0; i < sband->n_channels; i++) {
4797 if (channels[i].flags & IEEE80211_CHAN_DISABLED)
4798 continue;
4799
4797 if (ieee80211_frequency_to_channel(channels[i].center_freq) == 4800 if (ieee80211_frequency_to_channel(channels[i].center_freq) ==
4798 le16_to_cpu(priv->active_rxon.channel)) { 4801 le16_to_cpu(priv->active_rxon.channel)) {
4799 if (iwl_is_associated(priv)) { 4802 if (iwl_is_associated(priv)) {