aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-09-24 22:50:13 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-24 22:50:13 (GMT)
commit235f69fcd6d8c00f25b10fb67801e9d86b924ed8 (patch)
tree1a1f615c75e5e8f2669171ca3ff173f7a4112997 /hostapd
parent95ee81e4e747e5abd5673aa6785164ae073efc68 (diff)
downloadhostap-235f69fcd6d8c00f25b10fb67801e9d86b924ed8.zip
hostap-235f69fcd6d8c00f25b10fb67801e9d86b924ed8.tar.gz
hostap-235f69fcd6d8c00f25b10fb67801e9d86b924ed8.tar.bz2
Mark ctrl_iface RX debug for PING commands excessive
This cleans up debug log from unnecessary entries when using wpa_cli/hostapd_cli or other ctrl_iface monitors that PING periodically to check connectivity.
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 1886b77..0407b6c 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -710,6 +710,7 @@ static void hostapd_ctrl_iface_receive(int sock, void *eloop_ctx,
char *reply;
const int reply_size = 4096;
int reply_len;
+ int level = MSG_DEBUG;
res = recvfrom(sock, buf, sizeof(buf) - 1, 0,
(struct sockaddr *) &from, &fromlen);
@@ -718,7 +719,9 @@ static void hostapd_ctrl_iface_receive(int sock, void *eloop_ctx,
return;
}
buf[res] = '\0';
- wpa_hexdump_ascii(MSG_DEBUG, "RX ctrl_iface", (u8 *) buf, res);
+ if (os_strcmp(buf, "PING") == 0)
+ level = MSG_EXCESSIVE;
+ wpa_hexdump_ascii(level, "RX ctrl_iface", (u8 *) buf, res);
reply = os_malloc(reply_size);
if (reply == NULL) {