PERFORCE change 139690 for review

Sam Leffler sam at FreeBSD.org
Wed Apr 9 23:28:30 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=139690

Change 139690 by sam at 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;


More information about the p4-projects mailing list