use ah_enableReceive directly
[open-ath9k-htc-firmware.git] / target_firmware / wlan / if_ath.c
index f228a1440f33540153f4ef5a691b32057dd4fc15..5c2cff8604d9fdd20f9d00b39a90ecbfe3af1746 100755 (executable)
@@ -271,13 +271,13 @@ static a_int32_t ath_rxdesc_init(struct ath_softc_tgt *sc, struct ath_rx_desc *d
                            0);
 
        if (sc->sc_rxlink == NULL) {
-               ath_hal_putrxbuf(ah, ds->ds_daddr);
+               ah->ah_setRxDP(ah, ds->ds_daddr);
        }
        else {
                *sc->sc_rxlink = ds->ds_daddr;
        }
        sc->sc_rxlink = &ds->ds_link;
-       ath_hal_rxena(ah);
+       ah->ah_enableReceive(ah);
 
        return 0;
 }
@@ -472,7 +472,7 @@ static a_int32_t ath_startrecv(struct ath_softc_tgt *sc)
        }
 
        ds = asf_tailq_first(&sc->sc_rxdesc);
-       ath_hal_putrxbuf(ah, ds->ds_daddr);
+       ah->ah_setRxDP(ah, ds->ds_daddr);
 
        return 0;
 }
@@ -1619,7 +1619,7 @@ static void ath_stoprecv_tgt(void *Context, A_UINT16 Command,
 
        ath_hal_stoppcurecv(ah);
        ah->ah_setRxFilter(ah, 0);
-       ath_hal_stopdmarecv(ah);
+       ah->ah_stopDmaReceive(ah);
 
        sc->sc_rxlink = NULL;
        wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, NULL, 0);