]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Update freq only when CSA completes
authorJohannes Berg <johannes.berg@intel.com>
Wed, 8 May 2019 05:30:38 +0000 (07:30 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 28 May 2019 10:48:21 +0000 (13:48 +0300)
commitb6f8b5a96435c48da502dd6801f137148e1bbeca
tree8baa4409678c2e9186b14124b2d701a8dde6d00c
parent2a0db3eb5d3b7f02eccf9709a80d130ff5c094a3
nl80211: Update freq only when CSA completes

In the case of the ap_csa_disable test, I frequently see
failures due to the kernel *not* having switched, but the
CSA-STARTED event having been processed, and thus the
frequency having been updated already.

This is wrong at least for AP mode, the frequency we store
for this case internally in nl80211 should only be updated
when the channel switch completes, otherwise we end up in
a situation where the switch is aborted and the kernel is
thus on the old channel, but the internal information has
been updated and every subsequent mgmt-frame TX fails due
to being tagged with the wrong channel.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
src/drivers/driver_nl80211_event.c