Closed bdantas closed 2 years ago
Any ideas how to get hostapd to create a 5 GHz hotspot with this device?
This is not the fault of the ACHM.
To investigate, I need to know what distro and hardware you are using. Please be specific. I have noticed an increase of issues having to do with country information not getting where it needs to be and this appears to be the case in this situation. This is the first case with an in-kernel driver. I have a work around for out-of-kernel drivers but am not sure what has happened to cause this so it is time to investigate.
Regards
Here is the information you requested:
If hostapd.conf's country_code needs to match the country the OS thinks it's in, then I wouldn't be surprised if TCL is to blame. TCL only comes out of the box with what's absolutely required for the OS to work. I don't think it has any concept of country. I like TCL's philosophy but sometimes it does create some snags.
Kernel and in-kernel driver configuration is here: http://repo.tinycorelinux.net/13.x/x86_64/release/src/kernel/config-5.15.10-tinycore64
I can recompile the kernel and/or drivers if a configuration option needs to be tweaked.
For now I'm using this device to create a 2.4 GHz hotspot and it is working well.
P.S. With 2.4 GHz AP, I'm getting download speed of 30-35 Mbps. Wired ISP speed is ~100 Mbps. If it's realistic to get 50 Mbps or higher with 5 GHz and 40 MHz channel width, I'm definitely interested in making it work.
For now I'm using this device to create a 2.4 GHz hotspot and it is working well.
Yes, 2.4 Ghz should work well without country data because the lowest common denominator, channels 1-11, is the same worldwide. Some countries allow channels 12-14 so they would probably not work given the situation. This tends to confirm that this is a country data situation.
The following would normally tell us the country data:
$ sudo iw reg get
...but I don't know if you have iw
installed.
Does TCL have forums where you can ask about making the country setting available to a wifi driver?
I do have iw installed and it does seem that there is no country data:
$ sudo iw reg get
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)
phy#1
country 99: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
(2457 - 2482 @ 40), (N/A, 20), (N/A), PASSIVE-SCAN
(5140 - 5360 @ 80), (N/A, 30), (N/A), PASSIVE-SCAN
(5460 - 5860 @ 80), (N/A, 30), (N/A), PASSIVE-SCAN
I will ask on the TCL forum how to make the country setting available to wifi drivers. I'll report back here.
TCL guru Rich helped me figure out the solution to setting the country on TCL. Solution was basically to add two files (/lib/firmware/regulatory.db and /lib/firmware/regulatory.db.p7s) to the system. Gory details here: http://forum.tinycorelinux.net/index.php/topic,25840.0.html
The last gotcha was that hostapd
kept complaining about "HT40 channel pair not allowed" and was very unstable, dropping connections once every minute or so.
I had to try different channels and different ht_capab
settings. Eventually I found that using channel 44 and adding [HT40+]
(so that the relevant line looks like this: ht_capab=[HT40-][HT40+][SHORT-GI-20][SHORT-GI-40]
) made the complaints and stability issues go away.
Thank you for all your help, morrownr. Download speeds for wireless clients on my home network increased from 30-35 Mbps to 80-90 Mbps!
I can help you get AC, 80 Mhz channel width going if you want.
I'm intrigued. But do you think it would be advantageous for me? My wired ISP download speed is ~100 Mbps, all my devices are WiFi N only, and I'm getting all the range I need with this adapter on N 5Ghz.
Well, life being what it is, now that you have your setup optimized for what you are currently doing, you will mess around and add some storage or a web cam feeding video or something else to your LAN. When you do that, you know where to get me.
Regards
I just received my AWUS036ACHM but was not successful in upgrading my home wireless router to 5 GHz.
This is my hostapd.conf:
This is what shows up in the terminal I get when I try to run hostapd:
I have tried all the regular channels (36, 40, 44, 48, 149, 153, 157, 161, and 165) and result was the same: "Frequency...not allowed...NO-IR".
Any ideas how to get hostapd to create a 5 GHz hotspot with this device?