[PATCH v2 30/35] nl80211: Do not allow off channel for NAN Device action frames

Andrei Otcheretianski andrei.otcheretianski at intel.com
Tue Dec 23 03:46:19 PST 2025


From: Ilan Peer <ilan.peer at intel.com>

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 at intel.com>
---
 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 61e6d7fabd..5919ed0a6b 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -9662,7 +9662,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




More information about the Hostap mailing list