|
@@ -3618,9 +3618,6 @@ static int ath10k_start_scan(struct ath10k *ar,
|
|
|
}
|
|
|
spin_unlock_bh(&ar->data_lock);
|
|
|
|
|
|
- /* Add a 200ms margin to account for event/command processing */
|
|
|
- ieee80211_queue_delayed_work(ar->hw, &ar->scan.timeout,
|
|
|
- msecs_to_jiffies(arg->max_scan_time+200));
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -4803,6 +4800,11 @@ static int ath10k_hw_scan(struct ieee80211_hw *hw,
|
|
|
spin_unlock_bh(&ar->data_lock);
|
|
|
}
|
|
|
|
|
|
+ /* Add a 200ms margin to account for event/command processing */
|
|
|
+ ieee80211_queue_delayed_work(ar->hw, &ar->scan.timeout,
|
|
|
+ msecs_to_jiffies(arg.max_scan_time +
|
|
|
+ 200));
|
|
|
+
|
|
|
exit:
|
|
|
mutex_unlock(&ar->conf_mutex);
|
|
|
return ret;
|