Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80805aa5 authored by Jes Sorensen's avatar Jes Sorensen Committed by Kalle Valo
Browse files

rtl8xxxu: Set TX page boundaries for 8192eu



The 8192eu also has it's own TRXFF boundary value to set.

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 2ca73dc7
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -6495,6 +6495,9 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
		/*
		 * Set TX buffer boundary
		 */
		if (priv->rtl_chip == RTL8192E)
			val8 = TX_TOTAL_PAGE_NUM_8192E + 1;
		else
			val8 = TX_TOTAL_PAGE_NUM + 1;

		if (priv->rtl_chip == RTL8723B)
@@ -6532,6 +6535,8 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
	 */
	if (priv->rtl_chip == RTL8723B)
		rtl8xxxu_write16(priv, REG_TRXFF_BNDY + 2, 0x3f7f);
	else if (priv->rtl_chip == RTL8192E)
		rtl8xxxu_write16(priv, REG_TRXFF_BNDY + 2, 0x3cff);
	else
		rtl8xxxu_write16(priv, REG_TRXFF_BNDY + 2, 0x27ff);
	/*
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@
#define REALTEK_USB_CMD_IDX		0x00

#define TX_TOTAL_PAGE_NUM		0xf8
#define TX_TOTAL_PAGE_NUM_8192E		0xf3
/* (HPQ + LPQ + NPQ + PUBQ) = TX_TOTAL_PAGE_NUM */
#define TX_PAGE_NUM_PUBQ		0xe7
#define TX_PAGE_NUM_HI_PQ		0x0c