Commit b9c3379d authored by Bitterblue Smith's avatar Bitterblue Smith Committed by Kalle Valo
Browse files

wifi: rtl8xxxu: Support devices with 5-6 out endpoints



Handle them the same way as the devices with 3-4 USB out endpoints.
This is needed for the RTL8192FU.

Signed-off-by: default avatarBitterblue Smith <rtl8821cerfe2@gmail.com>
Reviewed-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/ef4bc66d-84f5-4021-efd7-1787d097519c@gmail.com
parent a5be45ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
#define RTL8XXXU_MAX_REG_POLL		500
#define	USB_INTR_CONTENT_LENGTH		56

#define RTL8XXXU_OUT_ENDPOINTS		4
#define RTL8XXXU_OUT_ENDPOINTS		6

#define REALTEK_USB_READ		0xc0
#define REALTEK_USB_WRITE		0x40
+2 −0
Original line number Diff line number Diff line
@@ -1663,6 +1663,8 @@ int rtl8xxxu_config_endpoints_no_sie(struct rtl8xxxu_priv *priv)
	struct device *dev = &priv->udev->dev;

	switch (priv->nr_out_eps) {
	case 6:
	case 5:
	case 4:
	case 3:
		priv->ep_tx_low_queue = 1;