PERFORCE change 68763 for review

Sam Leffler sam at FreeBSD.org
Tue Jan 11 12:50:28 PST 2005


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

Change 68763 by sam at sam_ebb on 2005/01/11 20:49:32

	when transitioning to INIT state disable interrupts so we
	don't receive frames; any pending xmits should go out and
	the descriptors will be reaped anyway when we drain the queues

Affected files ...

.. //depot/projects/wifi/sys/dev/ath/if_ath.c#65 edit

Differences ...

==== //depot/projects/wifi/sys/dev/ath/if_ath.c#65 (text+ko) ====

@@ -4281,7 +4281,10 @@
 
 	if (nstate == IEEE80211_S_INIT) {
 		sc->sc_imask &= ~(HAL_INT_SWBA | HAL_INT_BMISS);
-		ath_hal_intrset(ah, sc->sc_imask);
+		/*
+		 * NB: disable interrupts so we don't rx frames.
+		 */
+		ath_hal_intrset(ah, sc->sc_imask &~ ~HAL_INT_GLOBAL);
 		/*
 		 * Notify the rate control algorithm.
 		 */


More information about the p4-projects mailing list