use ah_detach directly
[open-ath9k-htc-firmware.git] / target_firmware / wlan / if_ath.c
index 889d1b4f29f5302a873821f2bb106a7d6386915f..4cfc8c85858ea3437feb78621c2d127175016d88 100755 (executable)
@@ -1644,7 +1644,7 @@ static void ath_detach_tgt(void *Context, A_UINT16 Command, A_UINT16 SeqNo,
        struct ath_hal *ah = sc->sc_ah;
 
        ath_desc_free(sc);
-       ath_hal_detach(ah);
+       ah->ah_detach(ah);
        wmi_cmd_rsp(sc->tgt_wmi_handle, Command, SeqNo, NULL, 0);
        adf_os_mem_free(sc);
 }
@@ -1936,7 +1936,7 @@ bad:
 bad2:
        ath_desc_free(sc);
        if (ah)
-               ath_hal_detach(ah);
+               ah->ah_detach(ah);
 }
 
 static void tgt_hif_htc_wmi_shutdown(struct ath_softc_tgt *sc)