Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a99d0248 authored by Christian Lamparter's avatar Christian Lamparter Committed by John W. Linville
Browse files

mac80211: do not monitor the connection while scanning

mac80211 constantly monitors the connection to the associated AP
in order to check if it is out of reach/dead.

This is absolutely fine most of the time.
Except when there is a scheduled scan for the whole neighborhood.
After all this path could trigger while scanning on different channel.
Or even worse: this AP probing triggers a WARN_ON in rate_lowest_index
when the scan code did a band transition!
( http://www.kerneloops.org/raw.php?rawid=449304

 )

Reported-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarChristian Lamparter <chunkeey@web.de>
Tested-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9ab56078
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2213,6 +2213,9 @@ static void ieee80211_sta_monitor_work(struct work_struct *work)
		container_of(work, struct ieee80211_sub_if_data,
		container_of(work, struct ieee80211_sub_if_data,
			     u.mgd.monitor_work);
			     u.mgd.monitor_work);


	if (sdata->local->sw_scanning || sdata->local->hw_scanning)
		return;

	ieee80211_mgd_probe_ap(sdata, false);
	ieee80211_mgd_probe_ap(sdata, false);
}
}