From: Oleksij Rempel Date: Sat, 11 May 2013 07:10:46 +0000 (+0200) Subject: ar5416_hw.c: remove ar5416GetCapability X-Git-Tag: 1.4.0~12^2^2~69 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=ce5eeea521f4e1f3958af176fdf7caee12c84e66;p=open-ath9k-htc-firmware.git ar5416_hw.c: remove ar5416GetCapability Chain call of this function looks like this: ath_hal_getcapability(makro) -> ar5416GetCapability -> ath_hal_getcapability(funct) Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/wlan/ah.h b/target_firmware/wlan/ah.h index 4901097..67ca199 100755 --- a/target_firmware/wlan/ah.h +++ b/target_firmware/wlan/ah.h @@ -377,9 +377,6 @@ struct ath_hal HAL_BOOL incTrigLevel); /* Misc Functions */ - HAL_STATUS __ahdecl(*ah_getCapability)(struct ath_hal *, - HAL_CAPABILITY_TYPE, a_uint32_t capability, - a_uint32_t *result); void __ahdecl(*ah_setDefAntenna)(struct ath_hal*, a_uint32_t); HAL_BOOL __ahdecl(*ah_updateCTSForBursting)(struct ath_hal *, diff --git a/target_firmware/wlan/ar5416_hw.c b/target_firmware/wlan/ar5416_hw.c index dfa34fd..2cf2892 100644 --- a/target_firmware/wlan/ar5416_hw.c +++ b/target_firmware/wlan/ar5416_hw.c @@ -67,7 +67,6 @@ static const struct ath_hal_private ar5416hal_10 = {{ .ah_abortTxDma = ar5416AbortTxDma, /* Misc Functions */ - .ah_getCapability = ar5416GetCapability, .ah_getTsf32 = ar5416GetTsf32, .ah_getTsf64 = ar5416GetTsf64, .ah_resetTsf = ar5416ResetTsf, @@ -288,17 +287,6 @@ ar5416SetInterrupts(struct ath_hal *ah, HAL_INT ints) return omask; } -/****************/ -/* Capabilities */ -/****************/ - -HAL_STATUS ar5416GetCapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, - a_uint32_t capability, a_uint32_t *result) - -{ - return ath_hal_getcapability(ah, type, capability, result); -} - /****************/ /* TSF Handling */ /****************/ diff --git a/target_firmware/wlan/if_athvar.h b/target_firmware/wlan/if_athvar.h index c3a6fbe..304049d 100755 --- a/target_firmware/wlan/if_athvar.h +++ b/target_firmware/wlan/if_athvar.h @@ -557,8 +557,6 @@ a_uint8_t ath_get_minrateidx(struct ath_softc_tgt *sc, struct ath_vap_target *av ((*(_ah)->ah_getTsf64)((_ah))) #define ath_hal_intrset(_ah, _mask) \ ((*(_ah)->ah_setInterrupts)((_ah), (_mask))) -#define ath_hal_getcapability(_ah, _cap, _param, _result) \ - ((*(_ah)->ah_getCapability)((_ah), (_cap), (_param), (_result))) #define ath_hal_set11n_aggr_first(_ah, _ds, _aggrlen, _numdelims) \ ((*(_ah)->ah_set11nAggrFirst)(_ah, _ds, _aggrlen, _numdelims)) #define ath_hal_set11n_aggr_middle(_ah, _ds, _numdelims) \