Fix enum conversion problems in sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
and sys/dev/ath/ath_hal/ar5416/ar5416_misc.c: sys/dev/ath/ath_hal/ar5212/ar5212_misc.c:577:24: warning: implicit conversion from enumeration type 'HAL_STATUS' to different enumeration type 'HAL_BOOL' [-Wconversion] return HAL_EINVAL; ~~~~~~ ^~~~~~~~~~ and: sys/dev/ath/ath_hal/ar5416/ar5416_misc.c:164:9: warning: implicit conversion from enumeration type 'HAL_STATUS' to different enumeration type 'HAL_BOOL' [-Wconversion] return HAL_OK; ~~~~~~ ^~~~~~ In both cases, enums HAL_BOOL and HAL_STATUS are mixed up. MFC after: 1 week
This commit is contained in:
parent
c15a655c3d
commit
f2ee53d6c6
@ -574,7 +574,7 @@ ar5212SetDecompMask(struct ath_hal *ah, uint16_t keyidx, int en)
|
||||
struct ath_hal_5212 *ahp = AH5212(ah);
|
||||
|
||||
if (keyidx >= HAL_DECOMP_MASK_SIZE)
|
||||
return HAL_EINVAL;
|
||||
return AH_FALSE;
|
||||
OS_REG_WRITE(ah, AR_DCM_A, keyidx);
|
||||
OS_REG_WRITE(ah, AR_DCM_D, en ? AR_DCM_D_EN : 0);
|
||||
ahp->ah_decompMask[keyidx] = en;
|
||||
|
@ -161,7 +161,7 @@ ar5416SetAntennaSwitch(struct ath_hal *ah, HAL_ANT_SETTING settings)
|
||||
HAL_BOOL
|
||||
ar5416SetDecompMask(struct ath_hal *ah, uint16_t keyidx, int en)
|
||||
{
|
||||
return HAL_OK;
|
||||
return AH_TRUE;
|
||||
}
|
||||
|
||||
/* Setup coverage class */
|
||||
|
Loading…
x
Reference in New Issue
Block a user