Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2008 23:28:29 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 139690 for review
Message-ID:  <200804092328.m39NST6R050553@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804092328.m39NST6R050553>