Search Linux Wireless

RE: [PATCH 2/2] wifi: rtl8xxxu: Support devices with 5-6 out endpoints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx>
> Sent: Saturday, April 1, 2023 4:18 AM
> To: linux-wireless@xxxxxxxxxxxxxxx
> Cc: Jes Sorensen <Jes.Sorensen@xxxxxxxxx>; Ping-Ke Shih <pkshih@xxxxxxxxxxx>
> Subject: [PATCH 2/2] 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: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx>

Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>


> ---
>  drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h      | 2 +-
>  drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
> b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
> index 39fee07917e7..82a0290ccb29 100644
> --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
> +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
> @@ -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
> diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
> b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
> index 62dd53a57659..6106b47d0c37 100644
> --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
> +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
> @@ -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;
> --
> 2.39.2
> 
> ------Please consider the environment before printing this e-mail.




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux