]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: schedule the actual switch of the station before CSA count 0
authorLuciano Coelho <luciano.coelho@intel.com>
Tue, 28 Oct 2014 11:33:05 +0000 (13:33 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 19 Nov 2014 17:38:18 +0000 (18:38 +0100)
commite7ba6308e5c4725632baf8a55332b050e510af5d
treed83f387b425057f4b021f10fb766aa80e6af1d8d
parent3a5a7cd8d92bf9d5a42694a5bebc37934561602d
mac80211: schedule the actual switch of the station before CSA count 0

commit ff1e417c7c239b7abfe70aa90460a77eaafc7f83 upstream.

Due to the time it takes to process the beacon that started the CSA
process, we may be late for the switch if we try to reach exactly
beacon 0.  To avoid that, use count - 1 when calculating the switch time.

Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/mac80211/mlme.c