diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-09-18 13:40:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-09-18 13:40:03 +0000 |
commit | c2babe7cb2fcdec856b05563d03aaf9f8ad01040 (patch) | |
tree | b5e6c6d953cdb1d70b2c09afa7b0324f67a92051 /package | |
parent | c429250ee49c31cc5e369332f042ada025c84ac2 (diff) | |
download | upstream-c2babe7cb2fcdec856b05563d03aaf9f8ad01040.tar.gz upstream-c2babe7cb2fcdec856b05563d03aaf9f8ad01040.tar.bz2 upstream-c2babe7cb2fcdec856b05563d03aaf9f8ad01040.zip |
iw: restore limited event monitor functionality (#20546)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 47006
Diffstat (limited to 'package')
-rw-r--r-- | package/network/utils/iw/patches/200-reduce_size.patch | 59 |
1 files changed, 38 insertions, 21 deletions
diff --git a/package/network/utils/iw/patches/200-reduce_size.patch b/package/network/utils/iw/patches/200-reduce_size.patch index fb0d869d11..3ba4730a2f 100644 --- a/package/network/utils/iw/patches/200-reduce_size.patch +++ b/package/network/utils/iw/patches/200-reduce_size.patch @@ -107,27 +107,6 @@ static int print_feature_handler(struct nl_msg *msg, void *arg) { ---- a/event.c -+++ b/event.c -@@ -298,6 +298,7 @@ static int print_event(struct nl_msg *ms - int rem_nst; - __u16 status; - -+ return; - if (args->time || args->reltime) { - unsigned long long usecs, previous; - -@@ -764,8 +765,10 @@ static int print_events(struct nl80211_s - - return __do_listen_events(state, 0, NULL, &args); - } -+#if 0 - TOPLEVEL(event, "[-t] [-r] [-f]", 0, 0, CIB_NONE, print_events, - "Monitor events from the kernel.\n" - "-t - print timestamp\n" - "-r - print relative timstamp\n" - "-f - print full frame for auth/assoc etc."); -+#endif --- a/scan.c +++ b/scan.c @@ -1080,6 +1080,7 @@ static void print_ht_op(const uint8_t ty @@ -236,3 +215,41 @@ int ieee80211_channel_to_frequency(int chan, enum nl80211_band band) { +--- a/event.c ++++ b/event.c +@@ -334,6 +334,7 @@ static int print_event(struct nl_msg *ms + } + + switch (gnlh->cmd) { ++#if 0 + case NL80211_CMD_NEW_WIPHY: + printf("renamed to %s\n", nla_get_string(tb[NL80211_ATTR_WIPHY_NAME])); + break; +@@ -368,6 +369,7 @@ static int print_event(struct nl_msg *ms + case NL80211_CMD_SCHED_SCAN_RESULTS: + printf("got scheduled scan results\n"); + break; ++#endif + case NL80211_CMD_REG_CHANGE: + printf("regulatory domain change: "); + +@@ -446,6 +448,7 @@ static int print_event(struct nl_msg *ms + mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC])); + printf("del station %s\n", macbuf); + break; ++#if 0 + case NL80211_CMD_JOIN_IBSS: + mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC])); + printf("IBSS %s joined\n", macbuf); +@@ -599,9 +602,9 @@ static int print_event(struct nl_msg *ms + } + printf("\n"); + break; ++#endif + default: +- printf("unknown event %d (%s)\n", +- gnlh->cmd, command_name(gnlh->cmd)); ++ printf("unknown event %d\n", gnlh->cmd); + break; + } + |