2012-01-08 11:57:38

by Antonio Quartulli

[permalink] [raw]
Subject: [PATCH] iw: add support for NL80211_CMD_DEL_STATION event

Actually iw event does not recognise the NL80211_CMD_DEL_STATION event. This
patch makes it print the appropriate message.

Signed-off-by: Antonio Quartulli <[email protected]>
---
event.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/event.c b/event.c
index 18cde45..bc39662 100644
--- a/event.c
+++ b/event.c
@@ -321,6 +321,10 @@ static int print_event(struct nl_msg *msg, void *arg)
mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC]));
printf("new station %s\n", macbuf);
break;
+ case NL80211_CMD_DEL_STATION:
+ mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC]));
+ printf("del station %s\n", macbuf);
+ break;
case NL80211_CMD_JOIN_IBSS:
mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC]));
printf("IBSS %s joined\n", macbuf);
--
1.7.3.4