diff mbox

iw/event: Print out PROBE_CLIENT event information.

Message ID 1366831552-4698-1-git-send-email-greearb@candelatech.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Ben Greear April 24, 2013, 7:25 p.m. UTC
From: Ben Greear <greearb@candelatech.com>

For instance:
vap0 (phy #0): probe client 00:ab:cd:ef:03:5c (cookie f54bb400): no ack

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 fbe3e0e... 603b072... M	event.c
 event.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

Comments

Johannes Berg April 26, 2013, 2:08 p.m. UTC | #1
On Wed, 2013-04-24 at 12:25 -0700, greearb@candelatech.com wrote:
> From: Ben Greear <greearb@candelatech.com>
> 
> For instance:
> vap0 (phy #0): probe client 00:ab:cd:ef:03:5c (cookie f54bb400): no ack

Applied.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/event.c b/event.c
index fbe3e0e..603b072 100644
--- a/event.c
+++ b/event.c
@@ -517,6 +517,16 @@  static int print_event(struct nl_msg *msg, void *arg)
 	case NL80211_CMD_SET_WOWLAN:
 		parse_wowlan_wake_event(tb);
 		break;
+	case NL80211_CMD_PROBE_CLIENT:
+		if (tb[NL80211_ATTR_MAC])
+			mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC]));
+		else
+			strcpy(macbuf, "??");
+		printf("probe client %s (cookie %llx): %s\n",
+		       macbuf,
+		       (unsigned long long)nla_get_u64(tb[NL80211_ATTR_COOKIE]),
+		       tb[NL80211_ATTR_ACK] ? "acked" : "no ack");
+		break;
 	default:
 		printf("unknown event %d\n", gnlh->cmd);
 		break;