WiFi 5GHz problem with Android and Laptops

I already developed a router with 2 AP wifi 2.4GHz y 5GHz everything works fine in IOS device iPhone, iPad, Mac but in Android devices and windows laptops I just can connect to 2.4 AP and I can’t see the 5GHz AP in my laptop the wifi driver is Intel Wifi 6E AX211 160MHz

root@864744040332726:~# iwconfig ath1
ath1 IEEE 802.11a ESSID:"DRQ100_5"
Mode:Master Frequency:5.2 GHz Access Point: 00:03:7F:12:2E:2E
Bit Rate:54 Mb/s Tx-Power:22 dBm
RTS thr:off Fragment thr:off
Encryption key:CA4D-FE22-B13A-914B-978A-B51F-B992-D7FC Security mode:restricted
Power Management:off
Link Quality=0/94 Signal level=-94 dBm Noise level=-94 dBm (BDF averaged NF value in dBm)
Rx invalid nwid:672 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

This is my /var/run/hostapd-ath1.conf

root@864744040332726:~# cat /var/run/hostapd-ath1.conf
driver=nl80211
interface=ath1
#channel=40
logger_syslog=127
logger_syslog_level=2
logger_stdout=127
logger_stdout_level=2
channel=40
ht_capab=[LDPC][SMPS-DYNAMIC][TX-STBC][RX-STBC-1][MAX-AMSDU-7935][DSSS_CCK-40]
vht_capab=[MAX-MPDU-11454][VHT160-80PLUS80][RXLDPC][SHORT-GI-80][SHORT-GI-160][TX-STBC-2BY1][RX-STBC1][SU-BEAMFORMER][SOUNDING-DIMENSION-2][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
hw_mode=a
wmm_enabled=1
dtim_period=1
ignore_broadcast_ssid=0
owe_ptk_workaround=1
ctrl_interface=/var/run/hostapd-wifi1
send_probe_response=0
wpa_passphrase=123456789
auth_algs=1
wpa=2
wpa_pairwise=CCMP CCMP-256 GCMP GCMP-256
ssid=DRQ100_5
bridge=br-lan
ieee80211w=0
wpa_key_mgmt=WPA-PSK
wps_cred_add_sae=0

Any idea why I can connect from IOS devices and not from android?

Thanks

what is the output of

ubus call system board

You need to set country code to move off 5GHz channel 36

This is the output

root@864744040332726:~# ubus call system board
{
"kernel": "5.4.164",
"hostname": "864744040332726",
"system": "ARMv7 Processor rev 4 (v7l)",
"model": "Qualcomm Technologies, Inc. IPQ5018/AP-MP02.1",
"board_name": "qcom,ipq5018-ap-mp02.1",
"release": {
"distribution": "OpenWrt",
"version": "19.07-SNAPSHOT",
"revision": "r0-616b49032",
"target": "ipq50xx/ipq50xx_32",
"description": "OpenWrt 19.07-SNAPSHOT r0-616b49032"
}
}

This version is EOL and fully unsupported.
Further, it appears that this is not actually from the OpenWrt project in any way whatsoever -- it is a fork that is highly modified relative to official OpenWrt.

Please reach out to the vendor of the fork/SDK for help.

My contry code is MX for Mexico I also modify /etc/config/wireless

config wifi-device 'wifi1'
option type 'qcawificfg80211'
option channel '36'
option macaddr '00:03:7f:12:2e:2e'
option hwmode '11a'
option htmode 'VHT40'
option txpower '30'
option disabled '0'
option contry 'MX'

config wifi-iface
option device 'wifi1'
option network 'lan'
option mode 'ap'
option ssid 'DRQ100_5'
option encryption 'psk2'
option key '123456789'
option hostapd_options 'ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40]'

Please do the setup from luci and format config blocks using
```
triple backticks
```

like this

same problem my question is how is created the file /var/run/hostapd-ath1.conf?

You also copied ht_caps from OpenWRT <18.x to 5GHz radio? It is list, not option since.

This topic was automatically closed after 21 hours. New replies are no longer allowed.