diff mbox series

[4/6] nl80211: print tx cookie value for ctrl port tx

Message ID 20200528084612.6530-5-markus.theil@tu-ilmenau.de
State Superseded
Headers show
Series nl80211: add support for control port tx status | expand

Commit Message

Markus Theil May 28, 2020, 8:46 a.m. UTC
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
---
 src/drivers/driver_nl80211.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 84ade6d90..dd9b9e458 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5275,6 +5275,7 @@  static int nl80211_tx_control_port(void *priv, const u8 *dest,
 {
 	struct i802_bss *bss = priv;
 	struct nl_msg *msg;
+	u64 cookie = 0;
 	int ret;
 
 	wpa_printf(MSG_DEBUG,
@@ -5298,6 +5299,10 @@  static int nl80211_tx_control_port(void *priv, const u8 *dest,
 		wpa_printf(MSG_DEBUG,
 			   "nl80211: tx_control_port failed: ret=%d (%s)",
 			   ret, strerror(-ret));
+	else
+		wpa_printf(MSG_DEBUG,
+			   "nl80211: tx_control_port cookie=%llx",
+			   (long long unsigned int) cookie);
 
 	return ret;
 }