]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Reduce debug verbosity on global ctrl_iface PING command
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 1 Sep 2011 15:16:37 +0000 (18:16 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 1 Sep 2011 15:16:37 +0000 (18:16 +0300)
This matches with the earlier change that did the same for the
per-interface ctrl_iface commands.

wpa_supplicant/ctrl_iface.c

index 730e6078c2e9fd99068e21141f4d6b1917127ced..b58d40d7e3b075e21bf8b6b376cba0c70778becf 100644 (file)
@@ -3490,8 +3490,11 @@ char * wpa_supplicant_global_ctrl_iface_process(struct wpa_global *global,
        char *reply;
        const int reply_size = 2048;
        int reply_len;
+       int level = MSG_DEBUG;
 
-       wpa_hexdump_ascii(MSG_DEBUG, "RX global ctrl_iface",
+       if (os_strcmp(buf, "PING") == 0)
+               level = MSG_EXCESSIVE;
+       wpa_hexdump_ascii(level, "RX global ctrl_iface",
                          (const u8 *) buf, os_strlen(buf));
 
        reply = os_malloc(reply_size);