From: Antonio Quartulli Date: Sun, 8 Jan 2012 11:39:26 +0000 (+0100) Subject: iw: add support for NL80211_CMD_DEL_STATION event X-Git-Tag: v3.3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27bf109b996f24f352c6c3bfaf3e183172d33fa8;p=thirdparty%2Fiw.git 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 --- 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);