[RFC v2 28/99] NAN: Add send_naf() callback support

Andrei Otcheretianski andrei.otcheretianski at intel.com
Tue Dec 23 03:51:32 PST 2025


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

Add a callback to the NAN module configuration which would
allow sending NAN Action Frames (NAFs).

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
 src/nan/nan.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/nan/nan.h b/src/nan/nan.h
index 7a7e893c1f..68caec28bd 100644
--- a/src/nan/nan.h
+++ b/src/nan/nan.h
@@ -385,6 +385,18 @@ struct nan_config {
 	 */
 	int (*get_chans)(void *ctx, u8 map_id, struct nan_channels *chans);
 
+	/**
+	 * send_naf - Transmit a NAN action frame
+	 *
+	 * @ctx: Callback context from cb_ctx
+	 * @dst: Destination MAC address
+	 * @src: Source MAC address. Can be NULL.
+	 * @cluster_id: The cluster ID.
+	 * @buf: Frame body (starting from Category field)
+	 * Returns: 0 on success, -1 on failure
+	 */
+	int (*send_naf)(void *ctx, const u8 *dst, const u8 *src,
+			const u8 *cluster_id, struct wpabuf *buf);
 };
 
 struct nan_data * nan_init(const struct nan_config *cfg);
-- 
2.49.0




More information about the Hostap mailing list