Commit 57869e4b authored by Ping-Ke Shih's avatar Ping-Ke Shih Committed by Kalle Valo

rtlwifi: rtl_pci: Add support for 8822be TX/RX BD

The number of TX/RX BD desc for 8822BE is 512.
The TX/RX BD architecture of 8822BE is the same as 8192EE.
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 5f647f4d
...@@ -1140,6 +1140,8 @@ static void _rtl_pci_init_trx_var(struct ieee80211_hw *hw) ...@@ -1140,6 +1140,8 @@ static void _rtl_pci_init_trx_var(struct ieee80211_hw *hw)
if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192EE) if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192EE)
desc_num = TX_DESC_NUM_92E; desc_num = TX_DESC_NUM_92E;
else if (rtlhal->hw_type == HARDWARE_TYPE_RTL8822BE)
desc_num = TX_DESC_NUM_8822B;
else else
desc_num = RT_TXDESC_NUM; desc_num = RT_TXDESC_NUM;
...@@ -1981,11 +1983,17 @@ static bool _rtl_pci_find_adapter(struct pci_dev *pdev, ...@@ -1981,11 +1983,17 @@ static bool _rtl_pci_find_adapter(struct pci_dev *pdev,
} }
} }
/* 92ee use new trx flow */ switch (rtlhal->hw_type) {
if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192EE) case HARDWARE_TYPE_RTL8192EE:
case HARDWARE_TYPE_RTL8822BE:
/* use new trx flow */
rtlpriv->use_new_trx_flow = true; rtlpriv->use_new_trx_flow = true;
else break;
default:
rtlpriv->use_new_trx_flow = false; rtlpriv->use_new_trx_flow = false;
break;
}
/*find bus info */ /*find bus info */
pcipriv->ndis_adapter.busnumber = pdev->bus->number; pcipriv->ndis_adapter.busnumber = pdev->bus->number;
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#define RT_TXDESC_NUM 128 #define RT_TXDESC_NUM 128
#define TX_DESC_NUM_92E 512 #define TX_DESC_NUM_92E 512
#define TX_DESC_NUM_8822B 512
#define RT_TXDESC_NUM_BE_QUEUE 256 #define RT_TXDESC_NUM_BE_QUEUE 256
#define BK_QUEUE 0 #define BK_QUEUE 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment