From owner-p4-projects@FreeBSD.ORG Wed Apr 9 23:28:30 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 23B821065719; Wed, 9 Apr 2008 23:28:29 +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 442B41065673 for ; Wed, 9 Apr 2008 23:28:29 +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 32C308FC1D for ; Wed, 9 Apr 2008 23:28:29 +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 m39NSTOf050557 for ; Wed, 9 Apr 2008 23:28:29 GMT (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m39NST6R050553 for perforce@freebsd.org; Wed, 9 Apr 2008 23:28:29 GMT (envelope-from sam@freebsd.org) Date: Wed, 9 Apr 2008 23:28:29 GMT Message-Id: <200804092328.m39NST6R050553@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 139690 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: Wed, 09 Apr 2008 23:28:30 -0000 http://perforce.freebsd.org/chv.cgi?CH=139690 Change 139690 by sam@sam_ebb on 2008/04/09 23:28:20 hookup some stats; unfortunately it doesn't look like we get the status/reason codes from the firmware to record on failure Affected files ... .. //depot/projects/vap/sys/dev/iwi/if_iwi.c#23 edit Differences ... ==== //depot/projects/vap/sys/dev/iwi/if_iwi.c#23 (text+ko) ==== @@ -1469,9 +1469,11 @@ sc->flags &= ~IWI_FLAG_ASSOCIATED; if (vap->iv_state != IEEE80211_S_RUN) { DPRINTFN(2, ("Authentication failed\n")); + vap->iv_stats.is_rx_auth_fail++; IWI_STATE_END(sc, IWI_FW_ASSOCIATING); } else { DPRINTFN(2, ("Deauthenticated\n")); + vap->iv_stats.is_rx_deauth++; } taskqueue_enqueue(taskqueue_swi, &IWI_VAP(vap)->iwi_assocfailed_task); @@ -1483,6 +1485,7 @@ case IWI_AUTH_SEQ1_FAIL: DPRINTFN(2, ("Initial authentication handshake failed; " "you probably need shared key\n")); + vap->iv_stats.is_rx_auth_fail++; IWI_STATE_END(sc, IWI_FW_ASSOCIATING); /* XXX retry shared key when in auto */ break; @@ -1522,6 +1525,7 @@ case IWI_FW_DISASSOCIATING: DPRINTFN(2, ("Dissassociated\n")); IWI_STATE_END(sc, IWI_FW_DISASSOCIATING); + vap->iv_stats.is_rx_disassoc++; taskqueue_enqueue(taskqueue_swi, &IWI_VAP(vap)->iwi_assocfailed_task); break;