abperiasamy / rtl8812AU_8821AU_linux

rtl8812AU_8821AU linux kernel driver for AC1200 (801.11ac) Wireless Dual-Band USB Adapter
GNU General Public License v2.0
1.23k stars 434 forks source link

Question: AP support in 5ghz? #10

Open muff1nman opened 10 years ago

muff1nman commented 10 years ago

I ask because I recently bought the Intel 7260 which has a firmware restriction on using the adapter in AP mode. Has anyone tried using hostapd with this one with 802.11AC?

ss780217 commented 10 years ago

I have the same problem..... I can open hostapd on 2.4Ghz But if I change the .config of hostapd to 5Ghz it always report configured channel not found

And I also notice that "iw list" of TP-Link T4U the 5G channel are all disable or passive scan Is it the limit?

csivanich commented 10 years ago

@Wade5566 Does 5G work when not in AP mode? I've had issues with 5G due to my regulatory domain being set incorrectly. Does iw reg get show 5G is enabled?

ss780217 commented 10 years ago

@csivanich I think 5G is worked in STA mode. But it still according to your regulatory domain. The original domain is Country 00 right? The message in 5G channel of my dongle is either passive scan or disable I think the "passive scan " channels can be used in STA mode.

csivanich commented 10 years ago

Interesting that it worked in STA but not in AP. At least on Arch Linux the default it 00 which (from the Arch wiki) is, "... the "world regulatory domain" and contains generic settings. If this cannot be unset, CRDA may be misconfigured." The generic settings do not allow 5Ghz in the US. I had to set the US code manually using # iw reg set US with this as the output from iw reg get now:

$ iw reg get
country US: DFS-FCC
        (2402 - 2472 @ 40), (N/A, 30)
        (5170 - 5250 @ 80), (N/A, 17)
        (5250 - 5330 @ 80), (N/A, 23), DFS
        (5735 - 5835 @ 80), (N/A, 30)
        (57240 - 63720 @ 2160), (N/A, 40)

Try checking out Arch's wiki on reg domain as that's where I've brought all this information from.

thorwald commented 9 years ago

For me it works putting it in Master mode in 5Ghz and 80211n (not 80211ac, but that could be a config error from my part) if I build hostapd 2.2 with the following patch and additional source files: https://github.com/pritambaral/hostapd-rtl871xdrv

I have an ASUS USB-AC56

Polioman commented 8 years ago

A bit late but you need to enable 82011ac in your hostapd config file :

ieee80211n=1
ieee80211ac=1
wmm_enabled=1

You can find all options available (as far a I know) for this file here

Steve-Newcomb commented 7 years ago

For what it's worth, I could not make this work today, either, on an up-to-date Ubuntu 16.04.2 4.4.0-75-generic kernel. The compilation and installation worked fine, but plugging in the dongle led to disappointment: the device did not appear in the ifconfig output. Here is relevant syslog data:

Apr 29 09:34:17 basil kernel: [ 1.182463] usb 3-1: new high-speed USB device number 2 using xhci_hcd Apr 29 09:34:17 basil kernel: [ 1.313042] usb 3-1: New USB device found, idVendor=0bda, idProduct=8812 Apr 29 09:34:17 basil kernel: [ 1.313050] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Apr 29 09:34:17 basil kernel: [ 1.313055] usb 3-1: Product: 802.11n NIC Apr 29 09:34:17 basil kernel: [ 1.313059] usb 3-1: Manufacturer: Realtek Apr 29 09:34:17 basil kernel: [ 1.313063] usb 3-1: SerialNumber: 123456 Apr 29 09:34:17 basil kernel: [ 32.048110] rtl8812au 3-1:1.0 enx40a5efd5ea86: renamed from wlan0 Apr 29 09:34:17 basil NetworkManager[1853]: [1493472857.7141] devices added (path: /sys/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-1/3-1:1.0/net/enx40a5efd5ea86, iface: enx40a5efd5ea86) Apr 29 09:34:17 basil NetworkManager[1853]: [1493472857.7141] device added (path: /sys/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-1/3-1:1.0/net/enx40a5efd5ea86, iface: enx40a5efd5ea86): no ifupdown configuration found. Apr 29 09:34:19 basil ModemManager[1835]: Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.6/0000:0e:00.0/usb3/3-1': not supported by any plugin