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

Markus Theil <[email protected]> Thu, 28 May 2020 10:46:10 +0200
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
Signed-off-by: Markus Theil <[email protected]>
---
 src/drivers/driver_nl80211.c | 5 +++++
 1 file changed, 5 insertions(+)

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;
 }
-- 
2.26.2