]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: add support for NL80211_CMD_DEL_STATION event
authorAntonio Quartulli <ordex@autistici.org>
Sun, 8 Jan 2012 11:39:26 +0000 (12:39 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Sun, 8 Jan 2012 12:41:33 +0000 (13:41 +0100)
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 <ordex@autistici.org>
event.c

diff --git a/event.c b/event.c
index 18cde45fbc5c65bd9beaa90a504ceb9bb85d2aab..bc3966224baf4216a42e2549d332db47e1bef6d6 100644 (file)
--- 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);