svn commit: r263000 - stable/10/sys/dev/usb/wlan

Kevin Lo kevlo at FreeBSD.org
Tue Mar 11 07:33:34 UTC 2014


Author: kevlo
Date: Tue Mar 11 07:33:33 2014
New Revision: 263000
URL: http://svnweb.freebsd.org/changeset/base/263000

Log:
  MFC r262822:
  
  Fix a logic error when enabling MAC.

Modified:
  stable/10/sys/dev/usb/wlan/if_urtwn.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/usb/wlan/if_urtwn.c
==============================================================================
--- stable/10/sys/dev/usb/wlan/if_urtwn.c	Tue Mar 11 06:07:12 2014	(r262999)
+++ stable/10/sys/dev/usb/wlan/if_urtwn.c	Tue Mar 11 07:33:33 2014	(r263000)
@@ -1890,8 +1890,8 @@ urtwn_power_on(struct urtwn_softc *sc)
 	urtwn_write_2(sc, R92C_APS_FSMCO,
 	    urtwn_read_2(sc, R92C_APS_FSMCO) | R92C_APS_FSMCO_APFM_ONMAC);
 	for (ntries = 0; ntries < 1000; ntries++) {
-		if (urtwn_read_2(sc, R92C_APS_FSMCO) &
-		    R92C_APS_FSMCO_APFM_ONMAC)
+		if (!(urtwn_read_2(sc, R92C_APS_FSMCO) &
+		    R92C_APS_FSMCO_APFM_ONMAC))
 			break;
 		DELAY(5);
 	}


More information about the svn-src-all mailing list