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

Markus Theil <[email protected]> Wed, 10 Jun 2020 10:32:59 +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 ade014946..186fcd79a 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5305,6 +5305,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,
@@ -5328,6 +5329,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.27.0