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 <[email protected]>
Acked-by: Wey-Yi W Guy <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
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) {
out_complete:
iwl_complete_scan(priv, aborted);
+out_settings:
/* Can we still talk to firmware ? */
if (!iwl_is_ready_rf(priv))
goto out;