morrownr / 88x2bu

Linux Driver for USB WiFi Adapters that are based on the RTL8812BU and RTL8822BU Chipsets
437 stars 73 forks source link

(can't fix) Dual (2,4Ghz + 5Ghz) AP Mode #70

Closed YudinIgor closed 3 years ago

YudinIgor commented 3 years ago

Good day. How to set up two WiFi cards rtl8812bu (usb 3) ?

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 002: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub Bus 002 Device 003: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet

Bus 001 Device 004: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey] Bus 001 Device 006: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]

/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 5000M | Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M | Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=ax88179_178a, 5000M

/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M | Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M | Port 3: Dev 4, If 0, Class=Vendor Specific Class, Driver=rtl88x2bu, 480M |__ Port 4: Dev 6, If 0, Class=Vendor Specific Class, Driver=rtl88x2bu, 480M

Need point 5Ghz (rtw_vht_enable = 2 rtw_switch_usb_mode = 1) + 2.4Ghz (rtw_vht_enable = 1 rtw_switch_usb_mode = 1). hostapd -B /etc/hostapd/wifi24.conf /etc/hostapd/wifi58.conf

/etc/hostapd/wifi24.conf interface=wifi1 driver=nl80211 ssid=WiFi24 hw_mode=g channel=11 ieee80211n=1 ...

/etc/hostapd/wifi58.conf interface=wifi2 driver=nl80211 ssid=WiFi58 hw_mode=a channel=36 ieee80211n=1 ieee80211ac=1 ...

Originally posted by @YudinIgor in https://github.com/morrownr/88x2bu/issues/67#issuecomment-849371523

morrownr commented 3 years ago

Good evening @YudinIgor

This issue has come up before. We did some testing and came to the conclusion that these Realtek drivers don't support more than one adapter with the same chipset in the same computer. You can have many adapters and many drivers at the same time but all adapters have to use different chipsets.

While we were testing, we also tested to see if the same is true for Mediatek chipset based adapters and found that the Mediatek drivers support having more than one adapter with the same chipset. The adapters tested use the mt7612u chipset and the in-kernel driver.

I just added a new guide on how to setup a Bridged Wireless Access Point. You can find the appropriately named file in this repo now. It may contain information that may be helpful to you.

I also have a repo that provides a lot of info about USB WiFi adapters on Linux:

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