mac80211: fix beacon loss detection after scan
authorKalle Valo <kalle.valo@iki.fi>
Sun, 19 Apr 2009 05:47:19 +0000 (08:47 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 20 Apr 2009 20:36:26 +0000 (16:36 -0400)
commitad935687dbe7307f5abd9e3f610a965a287324a9
treeafa794d3da8c2b9dc388ee4903b93a5c041ca3fa
parentd91c01c757bd9659ac10549504586fae610265a4
mac80211: fix beacon loss detection after scan

Currently beacon loss detection triggers after a scan. A probe request
is sent and a message like this is printed to the log:

wlan0: beacon loss from AP 00:12:17:e7:98:de - sending probe request

But in fact there is no beacon loss, the beacons are just not received
because of the ongoing scan. Fix it by updating last_beacon after
the scan has finished.

Reported-by: Jaswinder Singh Rajput <jaswinder@kernel.org>
Signed-off-by: Kalle Valo <kalle.valo@iki.fi>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c