svn commit: r262822 - head/sys/dev/usb/wlan
Kevin Lo
kevlo at FreeBSD.org
Thu Mar 6 06:39:56 UTC 2014
Author: kevlo
Date: Thu Mar 6 06:39:55 2014
New Revision: 262822
URL: http://svnweb.freebsd.org/changeset/base/262822
Log:
Fix a logic error when enabling MAC.
Modified:
head/sys/dev/usb/wlan/if_urtwn.c
Modified: head/sys/dev/usb/wlan/if_urtwn.c
==============================================================================
--- head/sys/dev/usb/wlan/if_urtwn.c Thu Mar 6 04:06:36 2014 (r262821)
+++ head/sys/dev/usb/wlan/if_urtwn.c Thu Mar 6 06:39:55 2014 (r262822)
@@ -1892,8 +1892,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