diff options
| author | Roman Yeryomin <roman@advem.lv> | 2013-08-21 14:46:32 +0300 | 
|---|---|---|
| committer | Roman Yeryomin <roman@advem.lv> | 2013-08-21 14:46:32 +0300 | 
| commit | 6e8428d78c98c653f625aa0839437359306f99db (patch) | |
| tree | 70c9b5bedc15ff93f4effaf8ce44fc4a130feaa9 /target/linux/realtek/files/drivers/net/wireless/rtl8192cd/8192cd_tx.h | |
| parent | dee99ab0143122146ab7713cfe171790bc796dd3 (diff) | |
Use newest realtek rtl8192cd driver from backfire alpha2 release.
Signed-off-by: Roman Yeryomin <roman@advem.lv>
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.h | 28 | 
1 files changed, 28 insertions, 0 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 b9951ff2a..8d7e1a6c7 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 @@ -13,6 +13,9 @@  #ifndef _8192CD_TX_H_  #define _8192CD_TX_H_ +#ifndef WLAN_HAL_INTERNAL_USED + +  #include "./8192cd_cfg.h"  #include "./8192cd.h"  #include "./8192cd_util.h" @@ -28,7 +31,19 @@ enum _TX_QUEUE_ {  	VI_QUEUE		= 3,  	VO_QUEUE		= 4,  	HIGH_QUEUE		= 5, +#if defined(CONFIG_WLAN_HAL) +	HIGH_QUEUE1		= 6, +	HIGH_QUEUE2		= 7, +	HIGH_QUEUE3		= 8, +	HIGH_QUEUE4		= 9, +	HIGH_QUEUE5		= 10, +	HIGH_QUEUE6		= 11, +	HIGH_QUEUE7		= 12, +	BEACON_QUEUE	= 13 +#else  	BEACON_QUEUE	= 6 +#endif +	  };  #define MCAST_QNUM		HIGH_QUEUE @@ -38,10 +53,21 @@ enum _TX_QUEUE_ {  static __inline__ void init_txdesc(struct rtl8192cd_priv *priv, struct tx_desc *pdesc,  				unsigned long ringaddr, unsigned int i)  { +#ifdef CONFIG_RTL_8812_SUPPORT +	if(GET_CHIP_VER(priv)== VERSION_8812E){ +		if (i == (CURRENT_NUM_TX_DESC - 1)) +			(pdesc + i)->Dword12 = set_desc(ringaddr); // NextDescAddress +		else +			(pdesc + i)->Dword12 = set_desc(ringaddr + (i+1) * sizeof(struct tx_desc)); // NextDescAddress +	} else +#endif +	{  	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 +	} +  }  static __inline__ unsigned int get_mpdu_len(struct tx_insn *txcfg, unsigned int fr_len) @@ -126,5 +152,7 @@ static __inline__ void tx_poll(struct rtl8192cd_priv *priv, int q_num)  #endif // WDS +#endif //#ifndef WLAN_HAL_INTERNAL_USED +  #endif // _8192CD_TX_H_  | 
