NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/45999: Use ar5416SetPowerMode in ar5416_reset.c .



>Number:         45999
>Category:       kern
>Synopsis:       Use ar5416SetPowerMode in ar5416_reset.c .
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 11:45:00 +0000 2012
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Use ar5416SetPowerMode in ar5416_reset.c.
>How-To-Repeat:

>Fix:
diff -u -p -r1.5 ar5416_reset.c
--- sys/external/isc/atheros_hal/dist/ar5416/ar5416_reset.c     7 Mar 2011 
11:25:44 -0000       1.5
+++ sys/external/isc/atheros_hal/dist/ar5416/ar5416_reset.c     5 Feb 2012 
07:40:04 -0000
@@ -1028,7 +1028,7 @@ ar5416GetRfgain(struct ath_hal *ah)
 HAL_BOOL
 ar5416Disable(struct ath_hal *ah)
 {
-       if (!ar5212SetPowerMode(ah, HAL_PM_AWAKE, AH_TRUE))
+       if (!ar5416SetPowerMode(ah, HAL_PM_AWAKE, AH_TRUE))
                return AH_FALSE;
        return ar5416SetResetReg(ah, HAL_RESET_COLD);
 }



Home | Main Index | Thread Index | Old Index