[PATCH 30/35] nl80211: Do not allow off channel for NAN Device action frames
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Mon Oct 20 05:28:05 PDT 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 dea5c32993..b970baac9f 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -9653,7 +9653,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