diff options
author | adrian <adrian@FreeBSD.org> | 2012-02-28 04:06:42 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-02-28 04:06:42 +0000 |
commit | 8323b562af1fbeb11a22af3c546e366165ba5321 (patch) | |
tree | 35bdf2608f8d6b4bb17a84505dbcb8d319a095d9 /tools | |
parent | e8cdf79fdf06141713afcb90e25e1a79aae9b4ee (diff) | |
download | FreeBSD-src-8323b562af1fbeb11a22af3c546e366165ba5321.zip FreeBSD-src-8323b562af1fbeb11a22af3c546e366165ba5321.tar.gz |
Add is_beacon_bad.
PR: kern/165517
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/net80211/wlanstats/wlanstats.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/tools/net80211/wlanstats/wlanstats.c b/tools/tools/net80211/wlanstats/wlanstats.c index b542566..61821f1 100644 --- a/tools/tools/net80211/wlanstats/wlanstats.c +++ b/tools/tools/net80211/wlanstats/wlanstats.c @@ -370,6 +370,8 @@ static const struct fmt wlanstats[] = { { 5, "noise", "noise", "current noise floor (dBm)" }, #define S_SIGNAL AFTER(S_NOISE) { 5, "signal", "sig", "current signal (dBm)" }, +#define S_BEACON_BAD AFTER(S_SIGNAL) + { 9, "beacon_bad", "beaconbad", "bad beacons received" }, }; struct wlanstatfoo_p { @@ -814,6 +816,7 @@ wlan_get_curstat(struct statfoo *sf, int s, char b[], size_t bs) case S_RX_MCAST: NSTAT(rx_mcast); case S_TX_UCAST: NSTAT(tx_ucast); case S_TX_MCAST: NSTAT(tx_mcast); + case S_BEACON_BAD: STAT(beacon_bad); } return wlan_getinfo(wf, s, b, bs); #undef NSTAT @@ -972,6 +975,7 @@ wlan_get_totstat(struct statfoo *sf, int s, char b[], size_t bs) case S_RX_MCAST: NSTAT(rx_mcast); case S_TX_UCAST: NSTAT(tx_ucast); case S_TX_MCAST: NSTAT(tx_mcast); + case S_BEACON_BAD: STAT(beacon_bad); } return wlan_getinfo(wf, s, b, bs); #undef NSTAT |