Open MattMacGillivray opened 8 years ago
I think I know the cause of the problem. The USB drivers from Realtek use a lot of global variables. This is fine with one device using the driver, but with more than one, the values get mixed up whenever the variables are read/write. The fix is to move the global quantities into the private variables, which are unique for each device.
That said, I have no idea how long it will take to find and move all the variables. Keep pulling the repo and retrying the experiment. As I only have one device, I will not be able to perform a definitive test.
I can test any changes you make and let you know. Thanks!
If I run multiple rtl8723bu (odba:b720) realtek units at once, only one of the units will work. From what I can tell, it's consistently the the last one loaded (i.e. wlan3 vs wlan2), so order matters.
I have 3 RTL8723BU USB units, and tried plugging random pairs of them in at once to ensure it wasn't the actual device, or the usb port itself.
Seems only to be related to the order they are picked up by the OS.
Building the driver
OS details (happens with kernel 3 and 4)
USB device details (0bda:b720 are the rtl8723bu's)
I'm using these units specifically: http://www.ccandc.com.tw/products_2.php?prod=269
Further context
I tried configuring each as a normal wifi card and only the second one would work.
Similarly, configuring it with hostapd (creating an access point), only the second one would create an access point. That is, if i configure hostapd.conf to use wlan3, it works. If i configure hostapd.conf to use wlan2, it doesn't work.
However, the same scenarios work fine with the RTL8188CUS usb wifi adapters that i have plugged into my device. Thus, I believe it's a driver problem, rather than a kernel/OS problem.
Matt.