diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index e3b3156aca9e7f59f655621ca8dd87820d74a95f..523c0d994d15432c66bfd9cda81e4b33f03dd6c9 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -2213,6 +2213,9 @@ static void ieee80211_sta_monitor_work(struct work_struct *work) container_of(work, struct ieee80211_sub_if_data, u.mgd.monitor_work); + if (sdata->local->sw_scanning || sdata->local->hw_scanning) + return; + ieee80211_mgd_probe_ap(sdata, false); }