PERFORCE change 139693 for review
Sam Leffler
sam at FreeBSD.org
Thu Apr 10 00:19:22 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=139693
Change 139693 by sam at sam_ebb on 2008/04/10 00:19:10
count beacon miss events handled in the 802.11 layer
Affected files ...
.. //depot/projects/vap/sys/dev/iwi/if_iwi.c#24 edit
.. //depot/projects/vap/sys/net80211/ieee80211_ioctl.h#19 edit
.. //depot/projects/vap/sys/net80211/ieee80211_sta.c#10 edit
.. //depot/projects/vap/tools/tools/net80211/wlanstats/wlanstats.c#8 edit
Differences ...
==== //depot/projects/vap/sys/dev/iwi/if_iwi.c#24 (text+ko) ====
@@ -1557,6 +1557,7 @@
DPRINTF(("Beacon miss: %u >= %u\n",
le32toh(beacon->number),
vap->iv_bmissthreshold));
+ vap->iv_stats.is_beacon_miss++;
/*
* It's pointless to notify the 802.11 layer
* as it'll try to send a probe request (which
==== //depot/projects/vap/sys/net80211/ieee80211_ioctl.h#19 (text+ko) ====
@@ -214,7 +214,8 @@
uint8_t is_rx_deauth_code; /* last rx'd deauth reason */
uint8_t is_rx_disassoc_code; /* last rx'd disassoc reason */
uint8_t is_rx_authfail_code; /* last rx'd auth fail reason */
- uint32_t is_spare[15];
+ uint32_t is_beacon_miss; /* beacon miss notification */
+ uint32_t is_spare[14];
};
/*
==== //depot/projects/vap/sys/net80211/ieee80211_sta.c#10 (text+ko) ====
@@ -127,6 +127,7 @@
return;
}
vap->iv_bmiss_count = 0;
+ vap->iv_stats.is_beacon_miss++;
if (vap->iv_roaming == IEEE80211_ROAMING_AUTO) {
/*
* If we receive a beacon miss interrupt when using
==== //depot/projects/vap/tools/tools/net80211/wlanstats/wlanstats.c#8 (text+ko) ====
@@ -140,7 +140,9 @@
#define S_RX_DISASSOC_CODE AFTER(S_RX_DISASSOC)
{ 5, "rx_disassoc_code","disassoc_code",
"last rx disassoc reason" },
-#define S_RX_BADSUBTYPE AFTER(S_RX_DISASSOC_CODE)
+#define S_BMISS AFTER(S_RX_DISASSOC_CODE)
+ { 5, "bmiss", "bmiss", "beacon miss events handled" },
+#define S_RX_BADSUBTYPE AFTER(S_BMISS)
{ 5, "rx_badsubtype", "badsubtype", "rx frame w/ unknown subtype" },
#define S_RX_NOBUF AFTER(S_RX_BADSUBTYPE)
{ 5, "rx_nobuf", "nobuf", "rx failed for lack of mbuf" },
@@ -653,6 +655,7 @@
case S_RX_ASSOC_BADWPAIE: STAT(rx_assoc_badwpaie);
case S_RX_DEAUTH: STAT(rx_deauth);
case S_RX_DISASSOC: STAT(rx_disassoc);
+ case S_BMISS: STAT(beacon_miss);
case S_RX_BADSUBTYPE: STAT(rx_badsubtype);
case S_RX_NOBUF: STAT(rx_nobuf);
case S_RX_DECRYPTCRC: STAT(rx_decryptcrc);
@@ -796,6 +799,7 @@
case S_RX_ASSOC_BADWPAIE: STAT(rx_assoc_badwpaie);
case S_RX_DEAUTH: STAT(rx_deauth);
case S_RX_DISASSOC: STAT(rx_disassoc);
+ case S_BMISS: STAT(beacon_miss);
case S_RX_BADSUBTYPE: STAT(rx_badsubtype);
case S_RX_NOBUF: STAT(rx_nobuf);
case S_RX_DECRYPTCRC: STAT(rx_decryptcrc);
More information about the p4-projects
mailing list