#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 */
a_int32_t baw_tail;
a_uint32_t tx_buf_bitmap[ATH_TID_MAX_BUFS/TX_BUF_BITMAP_SIZE];
asf_tailq_entry(ath_atx_tid) tid_qelem;
- asf_tailq_head(ath_tid_rbq,ath_buf) buf_q;
+ asf_tailq_head(ath_tid_rbq,ath_tx_buf) buf_q;
a_int8_t paused;
a_int8_t sched;
a_uint8_t flag;
a_uint32_t *axq_link;
asf_tailq_head(,ath_tx_buf) axq_q;
a_uint32_t axq_depth;
- struct ath_buf *axq_linkbuf;
+ struct ath_tx_buf *axq_linkbuf;
asf_tailq_head(,ath_atx_tid) axq_tidq;
};
struct ath_vap_target {
struct ieee80211vap_target av_vap;
struct ath_txq av_mcastq;
- struct ath_buf *av_bcbuf;
+ struct ath_tx_buf *av_bcbuf;
a_uint32_t av_rate_mask[2]; /* 0 - 2G, 1 - 5G */
a_uint8_t av_minrateidx[2]; /* 0 - 2G, 1 - 5G */
a_int8_t av_valid;
struct ath_vap_target sc_vap[TARGET_VAP_MAX];
struct ieee80211com_target sc_ic;
- ath_bufhead sc_bbuf;
+ ath_tx_bufhead sc_bbuf;
a_uint64_t sc_swba_tsf;
WMI_TXSTATUS_EVENT tx_status[2];