diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2010-09-13 08:46:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-14 16:14:26 -0400 |
commit | 3a160a5b5fc7d45fa2f869b23f8fcd27a4c05f8f (patch) | |
tree | 477d402e2a27727e66a4e89d875fe7be707fb06d | |
parent | 7cf24421292d92556d53630e6973b34324c94103 (diff) |
iwlwifi: apply settings when finishing scan
Even is someone else complete scanning in mac80211, apply rxon and
tx power settings if gets scan complete notification from hardware.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Wey-Yi W Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c index 65b7cb4290cb..599573f2b01f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-scan.c +++ b/drivers/net/wireless/iwlwifi/iwl-scan.c | |||
@@ -573,7 +573,7 @@ static void iwl_bg_scan_completed(struct work_struct *work) | |||
573 | 573 | ||
574 | if (!test_and_clear_bit(STATUS_SCANNING, &priv->status)) { | 574 | if (!test_and_clear_bit(STATUS_SCANNING, &priv->status)) { |
575 | IWL_DEBUG_SCAN(priv, "Scan already completed.\n"); | 575 | IWL_DEBUG_SCAN(priv, "Scan already completed.\n"); |
576 | goto out; | 576 | goto out_settings; |
577 | } | 577 | } |
578 | 578 | ||
579 | if (priv->is_internal_short_scan && !aborted) { | 579 | if (priv->is_internal_short_scan && !aborted) { |
@@ -599,6 +599,7 @@ static void iwl_bg_scan_completed(struct work_struct *work) | |||
599 | out_complete: | 599 | out_complete: |
600 | iwl_complete_scan(priv, aborted); | 600 | iwl_complete_scan(priv, aborted); |
601 | 601 | ||
602 | out_settings: | ||
602 | /* Can we still talk to firmware ? */ | 603 | /* Can we still talk to firmware ? */ |
603 | if (!iwl_is_ready_rf(priv)) | 604 | if (!iwl_is_ready_rf(priv)) |
604 | goto out; | 605 | goto out; |