Commit 3a160a5b authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by John W. Linville

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: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Acked-by: default avatarWey-Yi W Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7cf24421
...@@ -573,7 +573,7 @@ static void iwl_bg_scan_completed(struct work_struct *work) ...@@ -573,7 +573,7 @@ static void iwl_bg_scan_completed(struct work_struct *work)
if (!test_and_clear_bit(STATUS_SCANNING, &priv->status)) { if (!test_and_clear_bit(STATUS_SCANNING, &priv->status)) {
IWL_DEBUG_SCAN(priv, "Scan already completed.\n"); IWL_DEBUG_SCAN(priv, "Scan already completed.\n");
goto out; goto out_settings;
} }
if (priv->is_internal_short_scan && !aborted) { if (priv->is_internal_short_scan && !aborted) {
...@@ -599,6 +599,7 @@ static void iwl_bg_scan_completed(struct work_struct *work) ...@@ -599,6 +599,7 @@ static void iwl_bg_scan_completed(struct work_struct *work)
out_complete: out_complete:
iwl_complete_scan(priv, aborted); iwl_complete_scan(priv, aborted);
out_settings:
/* Can we still talk to firmware ? */ /* Can we still talk to firmware ? */
if (!iwl_is_ready_rf(priv)) if (!iwl_is_ready_rf(priv))
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment