-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wifi hotspot fails on 5 GHz #6636
Comments
Thanks for testing WiFi 6.
What do you mean with However, the related code has not changed. I'm quoting again the description of the modes from the example config: # Operation mode (a = IEEE 802.11a (5 GHz), b = IEEE 802.11b (2.4 GHz),
# g = IEEE 802.11g (2.4 GHz), ad = IEEE 802.11ad (60 GHz); a/g options are used
# with IEEE 802.11n (HT), too, to specify band). For IEEE 802.11ac (VHT), this
# needs to be set to hw_mode=a. For IEEE 802.11ax (HE) on 6 GHz this needs
# to be set to hw_mode=a. When using ACS (see channel parameter), a
# special value "any" can be used to indicate that any support band can be used.
# This special case is currently supported only with drivers with which
# offloaded ACS is used.
# Default: IEEE 802.11b
hw_mode=g So But just to rule it out, since the AX210 supports 6 GHz as well, could you just try to enter one of the 6 GHz channels? Interestingly some of them have the same numbers as 2.4 GHz channels, so I hope also hostapd supports them in combination with And of course also try some of the other 5 GHz channels. 36 seems to be the most compatible one, but I'm not sure whether it works in all countries/with all country codes. Last but not least, I guess the kernel does not come with a driver for this WiFi adapter OOTB. Where did you get it from? Probably it has limitations with hostapd. Does it work well with WiFi 4 and 5? |
So indeed it's the country code in combination with this channel. Which country code do you use, respectively where is the AP located? Try a different WiFi 5 channel, or for testing, temporarily change the country code, to verify that generally 5 GHz channel 36 is supported by the adapter. Note that it is illegal to operate an AP like this. |
I actually did not set any locale and it might have been the problem, but I don't think so. Today I used a fresh install and set all the locales to mine (PL). What combinations work?
5 GHz doesn't work at all. I can't seem to change the channel for WiFi 5 GHz, it defaults to channel 36 but when I try to get to the list, no channels are available. It's as if the channel list for 5 GHz did not exist (I tried a few country codes). AX210 works because these files are present in the image (it came with them in
At the time when I installed that version of DietPi, the branch was probably still unmerged. With this fresh install I just updated to 8.22. The good thing is that WiFi 6 works as expected, I get a little "6" when connected with it enabled. Also, I think that there must be a way to make the hotspot use both 5 GHz and 2.4 GHz bands like every WiFi 6 router does (without specifying it - I think that with WiFi 6 enabled there should be an option saying "2.4 + 5", for example). Maybe even use the 6 GHz band as WiFi 6E should be able to. But the hardware capabilities might be tricky to detect within dietpi. |
- DietPi-Config | Resolved an issue where the WiFi channel selection was not possible with 5 GHz mode enabled. Many thanks to @lukaszsobala for reporting this issue: #6636 (comment)
The locale is irrelevant, but the WiFi country code is mandatory. Channel 36 btw worked well here with German (DE) country code.
Oh, and this is a bug. It should be an inputbox (no list, as of the fragmented and per-country supported codes). Fixed with: f943e3c Please try this: sed -i "s/G_WHIP_MENU 'Please enter a 5 GHz WiFi channel/G_WHIP_INPUTBOX 'Please enter a 5 GHz WiFi channel/" /boot/dietpi/dietpi-config
dietpi-config Now you should be given an inputbox, with 36 entered as default, and the URL given to the Wikipedia article I linked above to find a suitable channel. |
Indeed, now I can choose the channel but still none of the services are able to start up on 5 GHz, even with the exact country code/channel combination that you used. |
@lukaszsobala For reference: #6636 |
I don't see how my router is relevant here as it is the dietpi system that serves as an access point creating its own independent network. Yes, my router (Huawei AX3) supports it but that's another network. I have WPA3 set up but I can change it to WPA2 if needed. Some devices that don't yet support WPA3 are still able to connect, magically. Ah, the setting on the router is: WPA2 PSK/WPA3 SAE, so WPA2 devices can still connect. There is no way to enforce pure WPA3. But any wifi 6 chip will be capable of using pure WPA3. I will try messing with wpa_supplicant using info in the link. And yes, dietpi-hotspot does work with 2.4 GHz. |
Ah right, of course, I was not thinking correctly, just remembered the 5/6 GHz issue with Wi-Fi 6 here after reading the requirements. However, the underlying issue might be the same. So you could try to add the
The second link would then be WPA3-only. |
Indeed, I managed to change it to WPA3 (even enforcing SAE) by editing Confusingly, the option |
Hi I also noticed that when I select the 5ghz band the max speed set is 54mbps instead of 300mbps or moreI don't know if this is a bug also |
Details:
Linux DietPi 5.10.160-legacy-rk35xx #1 SMP Mon Aug 28 01:21:24 UTC 2023 aarch64 GNU/Linux
systemctl start hostapd
Steps to reproduce:
Expected behaviour:
Actual behaviour:
Extra details:
Additional logs:
Some of the journalctl log is appended here:
This goes on and on. Why does it say it's on mode 802.11a?
The text was updated successfully, but these errors were encountered: