build fix: ath_txq_add_fn_t and ath_tx_comp_fn_t use ath_tx_buf
[open-ath9k-htc-firmware.git] / target_firmware / wlan / if_athvar.h
index 8a53b32322cf34c495d2608691bcc70772d9f82e..363368509deda313327a0dbd8b2573db93366464 100755 (executable)
@@ -146,8 +146,10 @@ struct ath_txq;
 #define ath_free_rx_skb(_sc,_skb)                   BUF_Pool_free_buf(_sc->pool_handle, POOL_ID_WLAN_RX_BUF, _skb)
 #define ath_free_tx_skb(_htc_handle, endpt, _skb)   HTC_ReturnBuffers(_htc_handle, endpt, _skb);
 
-typedef void (*ath_txq_add_fn_t)(struct ath_softc_tgt *sc, struct ath_buf *bf);
-typedef void (*ath_tx_comp_fn_t)(struct ath_softc_tgt *sc, struct ath_buf *bf);
+struct ath_tx_buf;
+
+typedef void (*ath_txq_add_fn_t)(struct ath_softc_tgt *sc, struct ath_tx_buf *bf);
+typedef void (*ath_tx_comp_fn_t)(struct ath_softc_tgt *sc, struct ath_tx_buf *bf);
 
 struct ath_buf_state {
        ath_tx_comp_fn_t        bfs_comp;           /* completion function          */
@@ -303,7 +305,7 @@ struct ath_descdma {
 struct ath_txq {
        a_uint32_t           axq_qnum;
        a_uint32_t           *axq_link;
-       asf_tailq_head(,ath_buf) axq_q;
+       asf_tailq_head(,ath_tx_buf) axq_q;
        a_uint32_t           axq_depth;
        struct  ath_buf     *axq_linkbuf;
        asf_tailq_head(,ath_atx_tid) axq_tidq;