[PATCH] Print out the commands received by the ctrl_interace
Jouni Malinen
j
Sun Jun 10 10:29:26 PDT 2012
On Mon, Apr 30, 2012 at 11:38:45AM +0530, Jithu Jance wrote:
> [PATCH] Add DEBUG level print for commands received by
> the ctrl_interface.
> diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
> @@ -3741,6 +3741,8 @@ char * wpa_supplicant_ctrl_iface_process(struct
> + 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",
The command is already printed out here here with wpa_hexdump_ascii*.
Since the control interface commands can include passwords or other
private information, their contents cannot be printed out with
wpa_printf() unconditionally, i.e., those two different branch here
needs to be followed to figure out whether the information can be
included in the debug log without -K on the command line.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list