nl80211: Disable offchannel-ok in AP mode only if beaconing
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>
This commit is contained in:
parent
0f58c88fc3
commit
99809c7a44
1 changed files with 2 additions and 1 deletions
|
@ -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, "
|
||||
|
|
Loading…
Reference in a new issue