wifi adapter not on 5ghz
-
Skyline_tm
- Posts: 9
- Joined: Mon Oct 06, 2025 5:23 am
wifi adapter not on 5ghz
So I have hudiy installed on a pi zero 2 W and wanted to use a wifi 6 adapter from brostrend (AX900) as the pi zero 2 doesnt have internal 5ghz. Driver is installed, internal chip deactivated and to my home wifi the connection is on 5ghz. In the main confuguration file everything is set up for 5ghz but every time my phone connects on 2.4ghz for android auto. Even on 2.4ghz the wifi adapter says it supports up to 286Mbps but I am stuck at 86Mbps.
Re: wifi adapter not on 5ghz
Hello,
Could you please post the contents of $HOME/.hudiy/share/config/main_configuration.json file? Please also post the output of dmesg command when hotspot is activated.
The 5GHz frequency is strictly regulated by local laws. The use of a 5GHz hotspot can be blocked by the system due to a missing Wi-Fi country setting in the Wi-Fi driver. Try adding the parameter cfg80211.ieee80211_regdom=PL in /boot/firmware/cmdline.txt (on the same line - cmdline.txt is a single-line file), replacing PL with your country code. As Pi Zero 2 does not have 5GHz-capable hardware, it is probably not set by default by the Raspberry PI OS (like for Pi 3B+, Pi 4B or 5).
Could you please post the contents of $HOME/.hudiy/share/config/main_configuration.json file? Please also post the output of dmesg command when hotspot is activated.
The 5GHz frequency is strictly regulated by local laws. The use of a 5GHz hotspot can be blocked by the system due to a missing Wi-Fi country setting in the Wi-Fi driver. Try adding the parameter cfg80211.ieee80211_regdom=PL in /boot/firmware/cmdline.txt (on the same line - cmdline.txt is a single-line file), replacing PL with your country code. As Pi Zero 2 does not have 5GHz-capable hardware, it is probably not set by default by the Raspberry PI OS (like for Pi 3B+, Pi 4B or 5).
Hudiy Team
-
Skyline_tm
- Posts: 9
- Joined: Mon Oct 06, 2025 5:23 am
Re: wifi adapter not on 5ghz
these are the files. changing the country code didnt make any difference (i live in germany, so DE).
- Attachments
-
- main_configuration+dmesg_output.zip
- (19.64 KiB) Downloaded 2 times
Re: wifi adapter not on 5ghz
You do not need to set hardwareAddress in main_configuration.json if there is only one active wireless adapter in the system (built-in WiFi is disabled so we assume the only one active is the external wireless adapter).
According to the dmesg, wireless adapter still operates on 00 domain:
so the 5GHz is probably still in NO-IR (No Initiating Radiation) mode.
You can try an alternative method for setting the country code:
1. Create cfg80211_regdomain.conf in /etc/modprobe.d/
sudo touch /etc/modprobe.d/cfg80211_regdomain.conf
2. Edit the /etc/modprobe.d/cfg80211_regdomain.conf file and add
sudo nano /etc/modprobe.d/cfg80211_regdomain.conf
3. Restart the Raspberry Pi.
If that doesn't work, you might need to set the country code directly in the driver (e.g., via an option) or directly in the code.
You can also try manually setting the channel to 36 to check if that enables the 5GHz in 00 domain (try 20MHz, 40MHz and 80MHz channel widths):
According to the dmesg, wireless adapter still operates on 00 domain:
Code: Select all
[ 15.544261] AICWFDBG(LOGINFO) getRegdomainFromRwnxDB set ccode:00
[ 72.027948] usb 1-1.3 wlan0: AP started: ch=1, bcmc_idx=33 channel=2472 bw=1You can try an alternative method for setting the country code:
1. Create cfg80211_regdomain.conf in /etc/modprobe.d/
sudo touch /etc/modprobe.d/cfg80211_regdomain.conf
2. Edit the /etc/modprobe.d/cfg80211_regdomain.conf file and add
sudo nano /etc/modprobe.d/cfg80211_regdomain.conf
Code: Select all
options cfg80211 ieee80211_regdom=DEIf that doesn't work, you might need to set the country code directly in the driver (e.g., via an option) or directly in the code.
You can also try manually setting the channel to 36 to check if that enables the 5GHz in 00 domain (try 20MHz, 40MHz and 80MHz channel widths):
Code: Select all
"channelConfigurationType" : "MANUAL",
"channelBandwidth" : "40MHz",
"channel" : 36Hudiy Team
-
Skyline_tm
- Posts: 9
- Joined: Mon Oct 06, 2025 5:23 am
Re: wifi adapter not on 5ghz
Thanks for the help. Apparently my adapter does not support hotspots on 5ghz because of hardware and security issues, which cause the country code to set back to 00 every time.
Is it possible though to use a wireless android auto dongle instead? As hudiy accepts the connection via usb.
Is it possible though to use a wireless android auto dongle instead? As hudiy accepts the connection via usb.
Re: wifi adapter not on 5ghz
We haven't tested Hudiy with wireless dongles, but it should probably work in the standard way.
You could also try using the built-in WiFi module of the Pi Zero 2 and setting the channel width to 40MHz. This should significantly increase throughput and in an environment with few WiFi networks around, the connection should be stable:
https://github.com/wiboma/hudiy/blob/ma ... -pi-zero-2
You could also try using the built-in WiFi module of the Pi Zero 2 and setting the channel width to 40MHz. This should significantly increase throughput and in an environment with few WiFi networks around, the connection should be stable:
https://github.com/wiboma/hudiy/blob/ma ... -pi-zero-2
Hudiy Team