summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/drivers/net/wireless/rtl8192cd/8192cd_tx.h
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/realtek/files/drivers/net/wireless/rtl8192cd/8192cd_tx.h')
-rw-r--r--target/linux/realtek/files/drivers/net/wireless/rtl8192cd/8192cd_tx.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/realtek/files/drivers/net/wireless/rtl8192cd/8192cd_tx.h b/target/linux/realtek/files/drivers/net/wireless/rtl8192cd/8192cd_tx.h
index eac90dbfb..b9951ff2a 100644
--- a/target/linux/realtek/files/drivers/net/wireless/rtl8192cd/8192cd_tx.h
+++ b/target/linux/realtek/files/drivers/net/wireless/rtl8192cd/8192cd_tx.h
@@ -38,7 +38,7 @@ enum _TX_QUEUE_ {
static __inline__ void init_txdesc(struct rtl8192cd_priv *priv, struct tx_desc *pdesc,
unsigned long ringaddr, unsigned int i)
{
- if (i == (NUM_TX_DESC - 1))
+ if (i == (CURRENT_NUM_TX_DESC - 1))
(pdesc + i)->Dword10 = set_desc(ringaddr); // NextDescAddress
else
(pdesc + i)->Dword10 = set_desc(ringaddr + (i+1) * sizeof(struct tx_desc)); // NextDescAddress
@@ -49,9 +49,9 @@ static __inline__ unsigned int get_mpdu_len(struct tx_insn *txcfg, unsigned int
return (txcfg->hdr_len + txcfg->llc + txcfg->iv + txcfg->icv + txcfg->mic + _CRCLNG_ + fr_len);
}
-#define txdesc_rollover(ptxdesc, ptxhead) (*ptxhead = (*ptxhead + 1) % NUM_TX_DESC)
+#define txdesc_rollover(ptxdesc, ptxhead) (*ptxhead = (*ptxhead + 1) % CURRENT_NUM_TX_DESC)
-#define txdesc_rollback(ptxhead) (*ptxhead = (*ptxhead == 0)? (NUM_TX_DESC - 1) : (*ptxhead - 1))
+#define txdesc_rollback(ptxhead) (*ptxhead = (*ptxhead == 0)? (CURRENT_NUM_TX_DESC - 1) : (*ptxhead - 1))
static __inline__ void tx_poll(struct rtl8192cd_priv *priv, int q_num)
{