Skip to content

Commit

Permalink
iwlwifi: apply settings when finishing scan
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Sep 14, 2010
1 parent 7cf2442 commit 3a160a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/iwlwifi/iwl-scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ static void iwl_bg_scan_completed(struct work_struct *work)

if (!test_and_clear_bit(STATUS_SCANNING, &priv->status)) {
IWL_DEBUG_SCAN(priv, "Scan already completed.\n");
goto out;
goto out_settings;
}

if (priv->is_internal_short_scan && !aborted) {
Expand All @@ -599,6 +599,7 @@ static void iwl_bg_scan_completed(struct work_struct *work)
out_complete:
iwl_complete_scan(priv, aborted);

out_settings:
/* Can we still talk to firmware ? */
if (!iwl_is_ready_rf(priv))
goto out;
Expand Down

0 comments on commit 3a160a5

Please sign in to comment.