diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-01-28 10:47:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-28 15:46:25 -0500 |
commit | 8c9f514b38bb01f0af09f880fe8b3cd5342d2401 (patch) | |
tree | 8d326c572142995609538b9d09f8bc3f90477108 | |
parent | 88e58fc5d940c3463c7070a2a7a8a0ce65af3fdc (diff) |
iwlwifi: remove unneeded disable_hw_scan check
We never set STATUS_SCANNING in softwre scanning mode, disable_hw_scan
check is unneeded. Correct debug message while at it.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-legacy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-legacy.c b/drivers/net/wireless/iwlwifi/iwl-legacy.c index 927fe37a43ab..e1ace3ce30b3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-legacy.c +++ b/drivers/net/wireless/iwlwifi/iwl-legacy.c | |||
@@ -85,10 +85,9 @@ int iwl_legacy_mac_config(struct ieee80211_hw *hw, u32 changed) | |||
85 | IWL_DEBUG_MAC80211(priv, "enter to channel %d changed 0x%X\n", | 85 | IWL_DEBUG_MAC80211(priv, "enter to channel %d changed 0x%X\n", |
86 | channel->hw_value, changed); | 86 | channel->hw_value, changed); |
87 | 87 | ||
88 | if (unlikely(!priv->cfg->mod_params->disable_hw_scan && | 88 | if (unlikely(test_bit(STATUS_SCANNING, &priv->status))) { |
89 | test_bit(STATUS_SCANNING, &priv->status))) { | ||
90 | scan_active = 1; | 89 | scan_active = 1; |
91 | IWL_DEBUG_MAC80211(priv, "leave - scanning\n"); | 90 | IWL_DEBUG_MAC80211(priv, "scan active\n"); |
92 | } | 91 | } |
93 | 92 | ||
94 | if (changed & (IEEE80211_CONF_CHANGE_SMPS | | 93 | if (changed & (IEEE80211_CONF_CHANGE_SMPS | |