Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtw_switch_usb_mode using in mainline kernel. #227

Open
WallyZambotti opened this issue Jul 23, 2024 · 3 comments
Open

rtw_switch_usb_mode using in mainline kernel. #227

WallyZambotti opened this issue Jul 23, 2024 · 3 comments

Comments

@WallyZambotti
Copy link

I am using Ubuntu 22.04.04 kernel 6.15.0-44. This kernel comes with a RTL88x2BU driver. I am uncertain Ubuntu driver is based off this GitHub project.

With the driver that ships in Ubuntu the Wifi adapter is recognized as a USB2 device and not a USB3 device.

I would like to utilize the 88x2b.conf to set rtw_switch_usb_mode to 1 to force USB3 mode but I'm unsure if the Ubuntu driver
supports the conf file or that setting.

Any advice welcome.

@morrownr
Copy link
Owner

Hi @WallyZambotti

The in-kernel driver that you are using is called rtw88 rtw8822bu. It does not support USB3 yet but the patch is going in and we could use testing.

Let me redirect you to information on the repo where we are doing work to make this and other things happen:

morrownr/USB-WiFi#472

The rtw downstream driver will go into USB3 automatically but does support a parameter to hold the driver in USB2 if you want.

Also, while you are here, the Main Menu for this site is:

https://github.com/morrownr/USB-WiFi

Let me know if you have questions.

@WallyZambotti
Copy link
Author

I have pulled the driver from https://github.com/lwfinger/rtw88 and built and installed it without any issue.

Platform Ubuntu 22.04.4 Kernel 6.5.0-44-generic, Intel/AMD
I can also test on an ARCH64/ARM Odroid N2 (Armbian) if you like.

The card is now connecting as a USB3 :

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=rtw_8822bu, 5000M

The bit rate is very low:

          Mode:Managed  Frequency:5.2 GHz  Access Point: 74:83:C2:B5:56:CA   
          Bit Rate=135 Mb/s   Tx-Power=23 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=58/70  Signal level=-52 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:20  Invalid misc:2332   Missed beacon:0

Should I continue this issue on this site or from https://github.com/morrownr/USB-WiFi?

@morrownr
Copy link
Owner

Should I continue this issue on this site or from https://github.com/morrownr/USB-WiFi?

I recommend you use Issues at:

https://github.com/lwfinger/rtw88

Keep in mind that rtw88 downstream has many drivers so you have to be specific when reporting a problem. The driver that you are using is rtw_8822bu. The in-kernel name is rtw88_8822bu.

You need to keep in mind that you probably need to update rtw88 downstream often as patches are going in as often as daily:

$ git pull
$ make
$ sudo make install

Remember that the patches you are testing are planned to go upstream into the kernel so compiling will be a distant memory soon. Thanks for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants