[PATCH] Print out the commands received by the ctrl_interace

Jithu Jance jithujance
Sun Apr 29 23:08:45 PDT 2012


[PATCH] Add DEBUG level print for commands received by
 the ctrl_interface.

Signed-hostap: Jithu Jance <jithu at broadcom.com>
---
 wpa_supplicant/ctrl_iface.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 538f8df..4e88ce3 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -3741,6 +3741,8 @@ char * wpa_supplicant_ctrl_iface_process(struct
wpa_supplicant *wpa_s,
 	int ctrl_rsp = 0;
 	int reply_len;

+	wpa_printf(MSG_DEBUG, "CTRL_IFACE: %s (%s)", buf, wpa_s->ifname);
+
 	if (os_strncmp(buf, WPA_CTRL_RSP, os_strlen(WPA_CTRL_RSP)) == 0 ||
 	    os_strncmp(buf, "SET_NETWORK ", 12) == 0) {
 		wpa_hexdump_ascii_key(MSG_DEBUG, "RX ctrl_iface",
-- 
1.7.4.1




- Jithu Jance



More information about the Hostap mailing list