]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 Oct 2014 15:37:54 +0000 (16:37 +0100)
commit8e36cd6ab44e3b39454610c21906a5c878a6faaf
treea7c00c2ba1b3414a48f75c7ebc1a6db54d11eb76
parent251404475fc1dc991692076d8d210b03ef115841
mac80211: schedule the actual switch of the station before CSA count 0

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.

Cc: stable@vger.kernel.org
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>
net/mac80211/mlme.c