From owner-p4-projects@FreeBSD.ORG Thu Apr 10 00:19:22 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1BF641065676; Thu, 10 Apr 2008 00:19:22 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D20091065671 for ; Thu, 10 Apr 2008 00:19:21 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C067E8FC26 for ; Thu, 10 Apr 2008 00:19:21 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m3A0JLtX059352 for ; Thu, 10 Apr 2008 00:19:21 GMT (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3A0JLqM059350 for perforce@freebsd.org; Thu, 10 Apr 2008 00:19:21 GMT (envelope-from sam@freebsd.org) Date: Thu, 10 Apr 2008 00:19:21 GMT Message-Id: <200804100019.m3A0JLqM059350@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Cc: Subject: PERFORCE change 139693 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2008 00:19:22 -0000 http://perforce.freebsd.org/chv.cgi?CH=139693 Change 139693 by sam@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);