From: Ilan Peer <ilan.peer@xxxxxxxxx> Do not allow off channel for NAN Device action Tx when the frequency is not set, as NAN Device logic doesn't support off channel operations without a frequency. NAN Device action Tx can be done without a frequency based on the NAN Device availability, e.g., during DWs. Signed-off-by: Ilan Peer <ilan.peer@xxxxxxxxx> --- src/drivers/driver_nl80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index feff939c16..09517629f7 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -9498,7 +9498,8 @@ static int wpa_driver_nl80211_send_action(struct i802_bss *bss, bss->flink->beacon_set) offchanok = 0; - if (!freq && is_sta_interface(drv->nlmode)) + if (!freq && (is_sta_interface(drv->nlmode) || + drv->nlmode == NL80211_IFTYPE_NAN)) offchanok = 0; wpa_printf(MSG_DEBUG, -- 2.49.0 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap