Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95875
b: refs/heads/master
c: f527648
h: refs/heads/master
i:
  95873: ebb3c9a
  95871: 0260f68
v: v3
  • Loading branch information
Guy Cohen authored and John W. Linville committed May 1, 2008
1 parent db97386 commit 3c92356
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21a75d7788f4e29b6c6d28e08f9f0310c4de828d
refs/heads/master: f52764886540b16e7962bd1d150bd939aec9248c
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/iwlwifi/iwl-3945.h
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,6 @@ struct iwl3945_priv {
u8 direct_ssid_len;
u8 direct_ssid[IW_ESSID_MAX_SIZE];
struct iwl3945_scan_cmd *scan;
u8 only_active_channel;

/* spinlock */
spinlock_t lock; /* protect general shared data */
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/iwlwifi/iwl-4965.h
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,6 @@ struct iwl_priv {
u8 direct_ssid_len;
u8 direct_ssid[IW_ESSID_MAX_SIZE];
struct iwl4965_scan_cmd *scan;
u8 only_active_channel;

/* spinlock */
spinlock_t lock; /* protect general shared data */
Expand Down
13 changes: 0 additions & 13 deletions trunk/drivers/net/wireless/iwlwifi/iwl3945-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -4968,17 +4968,6 @@ static int iwl3945_get_channels_for_scan(struct iwl3945_priv *priv,
if (channels[i].flags & IEEE80211_CHAN_DISABLED)
continue;

if (channels[i].hw_value ==
le16_to_cpu(priv->active_rxon.channel)) {
if (iwl3945_is_associated(priv)) {
IWL_DEBUG_SCAN
("Skipping current channel %d\n",
le16_to_cpu(priv->active_rxon.channel));
continue;
}
} else if (priv->only_active_channel)
continue;

scan_ch->channel = channels[i].hw_value;

ch_info = iwl3945_get_channel_info(priv, band, scan_ch->channel);
Expand Down Expand Up @@ -7314,8 +7303,6 @@ static void iwl3945_mac_reset_tsf(struct ieee80211_hw *hw)
return;
}

priv->only_active_channel = 0;

iwl3945_set_rate(priv);

mutex_unlock(&priv->mutex);
Expand Down
13 changes: 0 additions & 13 deletions trunk/drivers/net/wireless/iwlwifi/iwl4965-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -4633,17 +4633,6 @@ static int iwl4965_get_channels_for_scan(struct iwl_priv *priv,
if (channels[i].flags & IEEE80211_CHAN_DISABLED)
continue;

if (ieee80211_frequency_to_channel(channels[i].center_freq) ==
le16_to_cpu(priv->active_rxon.channel)) {
if (iwl_is_associated(priv)) {
IWL_DEBUG_SCAN
("Skipping current channel %d\n",
le16_to_cpu(priv->active_rxon.channel));
continue;
}
} else if (priv->only_active_channel)
continue;

scan_ch->channel = ieee80211_frequency_to_channel(channels[i].center_freq);

ch_info = iwl_get_channel_info(priv, band,
Expand Down Expand Up @@ -7061,8 +7050,6 @@ static void iwl4965_mac_reset_tsf(struct ieee80211_hw *hw)
return;
}

priv->only_active_channel = 0;

iwl4965_set_rate(priv);

mutex_unlock(&priv->mutex);
Expand Down

0 comments on commit 3c92356

Please sign in to comment.