svn commit: r232245 - head/tools/tools/net80211/wlanstats

Adrian Chadd adrian at FreeBSD.org
Tue Feb 28 04:06:43 UTC 2012


Author: adrian
Date: Tue Feb 28 04:06:42 2012
New Revision: 232245
URL: http://svn.freebsd.org/changeset/base/232245

Log:
  Add is_beacon_bad.
  
  PR:		kern/165517

Modified:
  head/tools/tools/net80211/wlanstats/wlanstats.c

Modified: head/tools/tools/net80211/wlanstats/wlanstats.c
==============================================================================
--- head/tools/tools/net80211/wlanstats/wlanstats.c	Tue Feb 28 04:05:35 2012	(r232244)
+++ head/tools/tools/net80211/wlanstats/wlanstats.c	Tue Feb 28 04:06:42 2012	(r232245)
@@ -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
 	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
 	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


More information about the svn-src-all mailing list