]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Disable offchannel-ok in AP mode only if beaconing
authorJouni Malinen <jouni@codeaurora.org>
Wed, 13 May 2020 14:09:52 +0000 (17:09 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 13 May 2020 14:09:52 +0000 (17:09 +0300)
When hostapd is started without beaconing (start_disabled=1), Public
Action frame transmission command through nl80211 needs to allow
offchannel operations regardless of the operating channel configuration.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/drivers/driver_nl80211.c

index 9c72341f9a8b331b97f6ef6451335c87cb58e5f2..0bedf063069c2303ed5e3041b1b54b33109a5508 100644 (file)
@@ -7755,7 +7755,8 @@ static int wpa_driver_nl80211_send_action(struct i802_bss *bss,
        struct ieee80211_hdr *hdr;
        int offchanok = 1;
 
-       if (is_ap_interface(drv->nlmode) && (int) freq == bss->freq)
+       if (is_ap_interface(drv->nlmode) && (int) freq == bss->freq &&
+           bss->beacon_set)
                offchanok = 0;
 
        wpa_printf(MSG_DEBUG, "nl80211: Send Action frame (ifindex=%d, "