]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Don't set offchan-OK flag if doing on-channel frame in AP mode
authorBen Greear <greearb@candelatech.com>
Tue, 19 Mar 2019 21:34:24 +0000 (14:34 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 3 Jan 2020 14:00:02 +0000 (16:00 +0200)
commitff774311807ba9d72e0d92bc8a7eb118beb29346
tree505693707a6a3aac312cba21d9b1f5bcbbdd198c
parent91588eeb6920edb85e31e8466b18fd406d87e25a
nl80211: Don't set offchan-OK flag if doing on-channel frame in AP mode

I saw a case where the kernel's cfg80211 rejected hostapd's attempt to
send a neighbor report response because nl80211 flagged the frame as
offchannel-OK, but kernel rejects because channel was 100 (DFS) and so
kernel failed thinking it was constrained by DFS/CAC requirements that
do not allow the operating channel to be left (at least in FCC).

Don't set the packet as off-channel OK if we are transmitting on the
current operating channel of an AP to avoid such issues with
transmission of Action frames.

Signed-off-by: Ben Greear <greearb@candelatech.com>
src/drivers/driver_nl80211.c