[PATCH 78/97] NAN: Extend Tx status reporting

Andrei Otcheretianski andrei.otcheretianski at intel.com
Tue Apr 28 13:06:19 PDT 2026


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

As a preparation to report the Tx status of NAN transmit requests,
extend the nan_de_tx_status() function arguments to also include
the buffer of the transmitted frame, its length and whether the
frame was acknowledged or not.

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
 src/common/nan_de.c             | 3 ++-
 src/common/nan_de.h             | 3 ++-
 wpa_supplicant/nan_supplicant.c | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/common/nan_de.c b/src/common/nan_de.c
index f9715a0cdc..696aa97556 100644
--- a/src/common/nan_de.c
+++ b/src/common/nan_de.c
@@ -1050,7 +1050,8 @@ void nan_de_update_nmi(struct nan_de *de, const u8 *nmi)
 }
 
 
-void nan_de_tx_status(struct nan_de *de, unsigned int freq, const u8 *dst)
+void nan_de_tx_status(struct nan_de *de, unsigned int freq, const u8 *dst,
+		      const u8 *data, size_t data_len, bool ack)
 {
 	if (freq == de->tx_wait_status_freq)
 		de->tx_wait_status_freq = 0;
diff --git a/src/common/nan_de.h b/src/common/nan_de.h
index 3acda64a44..184f725507 100644
--- a/src/common/nan_de.h
+++ b/src/common/nan_de.h
@@ -95,7 +95,8 @@ void nan_de_listen_started(struct nan_de *de, unsigned int freq,
 			   unsigned int duration);
 void nan_de_listen_ended(struct nan_de *de, unsigned int freq);
 void nan_de_update_nmi(struct nan_de *de, const u8 *nmi);
-void nan_de_tx_status(struct nan_de *de, unsigned int freq, const u8 *dst);
+void nan_de_tx_status(struct nan_de *de, unsigned int freq, const u8 *dst,
+		      const u8 *data, size_t data_len, bool ack);
 void nan_de_tx_wait_ended(struct nan_de *de);
 
 bool nan_de_rx_sdf(struct nan_de *de, const u8 *peer_addr, const u8 *a3,
diff --git a/wpa_supplicant/nan_supplicant.c b/wpa_supplicant/nan_supplicant.c
index 25e746d4c6..a8595d0d23 100644
--- a/wpa_supplicant/nan_supplicant.c
+++ b/wpa_supplicant/nan_supplicant.c
@@ -3703,7 +3703,8 @@ static void wpas_nan_de_tx_status(struct wpa_supplicant *wpa_s,
 		   MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), freq,
 		   data_len, tx_status_result_txt(result));
 
-	nan_de_tx_status(wpa_s->nan_de, freq, dst);
+	nan_de_tx_status(wpa_s->nan_de, freq, dst, data, data_len,
+			 result == OFFCHANNEL_SEND_ACTION_SUCCESS);
 }
 
 
-- 
2.53.0




More information about the Hostap mailing list