linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iw/event:  Print out PROBE_CLIENT event information.
@ 2013-04-24 19:25 greearb
  2013-04-26 14:08 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: greearb @ 2013-04-24 19:25 UTC (permalink / raw)
  To: linux-wireless; +Cc: Ben Greear

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(-)

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;
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iw/event:  Print out PROBE_CLIENT event information.
  2013-04-24 19:25 [PATCH] iw/event: Print out PROBE_CLIENT event information greearb
@ 2013-04-26 14:08 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2013-04-26 14:08 UTC (permalink / raw)
  To: greearb; +Cc: linux-wireless

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-26 14:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 19:25 [PATCH] iw/event: Print out PROBE_CLIENT event information greearb
2013-04-26 14:08 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).