X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fwlan%2Far5416_hw.c;h=089f4f62a63f3661c994f069e5873d0329edaaff;hb=d73a8abece816d9a3d89444a0564982d8c2a6da2;hp=0f1cddae5d9f8d058e8ef96437e6bb51650766a3;hpb=6d46e6f26898e6f2b6b250082a18fdb803c1d513;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/wlan/ar5416_hw.c b/target_firmware/wlan/ar5416_hw.c index 0f1cdda..089f4f6 100644 --- a/target_firmware/wlan/ar5416_hw.c +++ b/target_firmware/wlan/ar5416_hw.c @@ -88,8 +88,7 @@ void ar5416Detach(struct ath_hal *ah) } struct ath_hal * -ar5416Attach(a_uint32_t devid,HAL_SOFTC sc, adf_os_device_t dev, - a_uint32_t flags, HAL_STATUS *status) +ar5416Attach(HAL_SOFTC sc, adf_os_device_t dev, HAL_STATUS *status) { struct ath_hal_5416 *ahp; struct ath_hal *ah; @@ -292,12 +291,6 @@ void ar5416SetRxDP(struct ath_hal *ah, a_uint32_t rxdp) HALASSERT(OS_REG_READ(ah, AR_RXDP) == rxdp); } -void ar5416SetMulticastFilter(struct ath_hal *ah, a_uint32_t filter0, a_uint32_t filter1) -{ - OS_REG_WRITE(ah, AR_MCAST_FIL0, filter0); - OS_REG_WRITE(ah, AR_MCAST_FIL1, filter1); -} - HAL_BOOL ar5416StopDmaReceive(struct ath_hal *ah) { OS_REG_WRITE(ah, AR_CR, AR_CR_RXD); /* Set receive disable bit */ @@ -308,22 +301,6 @@ HAL_BOOL ar5416StopDmaReceive(struct ath_hal *ah) } } -HAL_BOOL ar5416SetMulticastFilterIndex(struct ath_hal *ah, a_uint32_t ix) -{ - a_uint32_t val; - - if (ix >= 64) - return AH_FALSE; - if (ix >= 32) { - val = OS_REG_READ(ah, AR_MCAST_FIL1); - OS_REG_WRITE(ah, AR_MCAST_FIL1, (val | (1<<(ix-32)))); - } else { - val = OS_REG_READ(ah, AR_MCAST_FIL0); - OS_REG_WRITE(ah, AR_MCAST_FIL0, (val | (1<