ar5416_hw.c: remove ar5416GetCapability
authorOleksij Rempel <linux@rempel-privat.de>
Sat, 11 May 2013 07:10:46 +0000 (09:10 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Sat, 11 May 2013 14:10:03 +0000 (16:10 +0200)
Chain call of this function looks like this:
ath_hal_getcapability(makro) -> ar5416GetCapability -> ath_hal_getcapability(funct)

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/wlan/ah.h
target_firmware/wlan/ar5416_hw.c
target_firmware/wlan/if_athvar.h

index 4901097480cfa5de643123d3f53cf39a48ff738f..67ca199b8476158221673428e5ee56b5be49fb92 100755 (executable)
@@ -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 *,
index dfa34fd7449cea3420a6b93533cdcc15e231f99c..2cf28927c70349bec7e24ee4eb419de98b9e498a 100644 (file)
@@ -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 */
 /****************/
index c3a6fbe534924be24c8d3073e6522e16d4076751..304049d801476f8abe76d87fe1d013a0c0d676b8 100755 (executable)
@@ -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) \