diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index b207e3e9299f..ee9c582c8cf2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -1377,13 +1377,9 @@ static int iwl4965_send_tx_power(struct iwl_priv *priv) | |||
1377 | u8 ctrl_chan_high = 0; | 1377 | u8 ctrl_chan_high = 0; |
1378 | struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; | 1378 | struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS]; |
1379 | 1379 | ||
1380 | if (test_bit(STATUS_SCANNING, &priv->status)) { | 1380 | if (WARN_ONCE(test_bit(STATUS_SCAN_HW, &priv->status), |
1381 | /* If this gets hit a lot, switch it to a BUG() and catch | 1381 | "TX Power requested while scanning!\n")) |
1382 | * the stack trace to find out who is calling this during | ||
1383 | * a scan. */ | ||
1384 | IWL_WARN(priv, "TX Power requested while scanning!\n"); | ||
1385 | return -EAGAIN; | 1382 | return -EAGAIN; |
1386 | } | ||
1387 | 1383 | ||
1388 | band = priv->band == IEEE80211_BAND_2GHZ; | 1384 | band = priv->band == IEEE80211_BAND_2GHZ; |
1389 | 1385 | ||