Search Linux Wireless

[PATCH] iw: add support for NL80211_CMD_DEL_STATION event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
 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

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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux