lwfinger / rtl8723bu

Driver for RTL8723BU
283 stars 143 forks source link

rtl8723bu: Add TRENDnet TBW-108UB to USB device list #178

Closed alexhenrie closed 3 years ago

alexhenrie commented 3 years ago

The Wi-Fi device does work with this patch, although strangely two Wi-Fi interfaces appear and only the first one is functional.

Based on https://github.com/jeremyb31/rtl8723bu/commit/20f0f24ee2b84e811610d53e13399bd86171d878

See https://askubuntu.com/a/1149435/223160

Signed-off-by: Alex Henrie alexh@vpitech.com

lwfinger commented 3 years ago

Do you have a 5G access point. The rtl8723bu has both 2.4G and 5G radios, which is the reason for two interfaces.

alexhenrie commented 3 years ago

You're right, the second interface can't connect to 2.4 GHz networks, but it can connect to 5 GHz networks.

There seems to be a bug when scanning for networks because sudo iw dev wlan0 scan and sudo iw dev wlan1 scan both return the same list of 2.4 GHz networks and neither returns any 5 GHz networks. Is that something that we could fix in the driver?

lwfinger commented 3 years ago

I thought 5 GHz was working, but something must have broken. I will take a look at it, but no promise on when it will be working.

lwfinger commented 3 years ago

I was mistaken earlier. It is the rtl8723du that has dual radios. The rtl8723bu only has a 2.4 GHz radio, thus both interfaces should be seeing the same AP's.

The reason you see 2 interfaces is that the feature for concurrent interfaces (CONFIG_CONCURRENT_MODE) is turned on in the Makefile. That is so that one can be used as a regular station, and the other could be used as an AP. If you do not want this feature, comment out the line "EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE" in Makefile.

alexhenrie commented 3 years ago

Sorry for the confusion, I thought I was connecting the second interface to a 5 GHz network, but I was actually connecting the first interface to a 2.4 GHz network with the same name and password. I don't think this device supports 5 GHz, and it makes sense that the second interface is for simultaneously creating an access point. Thanks for the help.