]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2014 17:23:10 +0000 (09:23 -0800)
commitc6b3055441e548ba1ee761c982c5e60c88cfb486
tree830ae7ce6fc48fc0ec02e9381b0961080020b11f
parent1d81fe319e8883f87e1330814f1cdd458b6a5e80
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/mlme.c