From: Johannes Berg Date: Sun, 6 Dec 2009 17:58:00 +0000 (+0100) Subject: parse station event X-Git-Tag: v0.9.19~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cec6d6a7d00c606fa34a8512780e1978bf3f4905;p=thirdparty%2Fiw.git parse station event when the kernel starts sending new-station events, iw will be ready to show them --- diff --git a/event.c b/event.c index 0cd3c75..445db5f 100644 --- a/event.c +++ b/event.c @@ -226,6 +226,10 @@ static int print_event(struct nl_msg *msg, void *arg) if (chan_before_beacon.no_ibss && !chan_after_beacon.no_ibss) printf("\to beaconing enabled\n"); + break; + case NL80211_CMD_NEW_STATION: + mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC])); + printf("new station %s\n", macbuf); break; case NL80211_CMD_JOIN_IBSS: mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC]));