diff mbox series

[5/6] hostapd: Add debug ack status for tx status

Message ID 20260806163147.808172-6-ramasamy.kaliappan@oss.qualcomm.com
State New
Headers show
Series hostapd: handle nl80211 no_sta flag in mgmt frames | expand

Commit Message

Ramasamy Kaliappan Aug. 6, 2026, 4:31 p.m. UTC
When an authentication or association response frame is sent to a peer
address with the no_sta flag set, the driver may have no station entry
for that peer even though ack may received from peer

Include the tx ack status in the authentication and association tx
callback function when the destination STA entry cannot be found.

Signed-off-by: Ramasamy Kaliappan <ramasamy.kaliappan@oss.qualcomm.com>
---
 src/ap/ieee802_11.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 3b71b5edc311..b5802fff2fba 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -8560,8 +8560,9 @@  static void handle_auth_cb(struct hostapd_data *hapd,
 	sta = ap_get_sta(hapd, mgmt->da);
 	if (!sta) {
 		wpa_printf(MSG_DEBUG, "handle_auth_cb: STA " MACSTR
-			   " not found",
-			   MAC2STR(mgmt->da));
+			   " not found"
+			   " [%s acknowledged for association response]",
+			   MAC2STR(mgmt->da), !ok ? "no" : "");
 		return;
 	}
 
@@ -8739,8 +8740,10 @@  static void handle_assoc_cb(struct hostapd_data *hapd,
 
 	sta = ap_get_sta(hapd, mgmt->da);
 	if (!sta) {
-		wpa_printf(MSG_INFO, "handle_assoc_cb: STA " MACSTR " not found",
-			   MAC2STR(mgmt->da));
+		wpa_printf(MSG_INFO, "handle_assoc_cb: STA " MACSTR " not found"
+			   " [%s acknowledged association response]",
+			   MAC2STR(mgmt->da),
+			   !ok ? "no" : "");
 		return;
 	}