Parcourir la source

Reduce debug verbosity on global ctrl_iface PING command

This matches with the earlier change that did the same for the
per-interface ctrl_iface commands.
Jouni Malinen il y a 13 ans
Parent
commit
f4a0a82ca6
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      wpa_supplicant/ctrl_iface.c

+ 4 - 1
wpa_supplicant/ctrl_iface.c

@@ -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);