5G problem with hostapd: ACS: Failed to compute ideal channel

I've tried to setup auto channel selection (ACS) for 5G range and to me it seems ACS is not working if there are channels above 124 permitted via options channels command in /etc/config/wireless.
Hardware: R7800, tested with r12038 and r11968 both with CT driver. European region.

Working config:

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11a'
        option path 'soc/1b500000.pci/pci0000:00/0000:00:00.0/0000:01:00.0'
        option htmode 'VHT80'
        option legacy_rates '0'
        option country 'PL'
        option txpower '17'
        option channel 'auto'
        option channels '64 100'

and result

Jan 18 08:09:15 192.168.1.2 netifd: radio0 (4689): command failed: Not supported (-95)
Jan 18 08:09:21 192.168.1.2 kernel: [  586.027340] ath10k_pci 0000:01:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
Jan 18 08:09:21 192.168.1.2 kernel: [  586.027368] ath10k_pci 0000:01:00.0: msdu-desc: 2500  skid: 32
Jan 18 08:09:22 192.168.1.2 kernel: [  586.109476] ath10k_pci 0000:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
Jan 18 08:09:22 192.168.1.2 kernel: [  586.110336] ath10k_pci 0000:01:00.0: wmi print 'free: 81784 iram: 23204 sram: 14440'
Jan 18 08:09:22 192.168.1.2 kernel: [  586.468466] ath10k_pci 0000:01:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4
Jan 18 08:09:22 192.168.1.2 kernel: [  586.474254] br-lan: port 2(wlan0) entered blocking state
Jan 18 08:09:22 192.168.1.2 kernel: [  586.478636] br-lan: port 2(wlan0) entered disabled state
Jan 18 08:09:22 192.168.1.2 kernel: [  586.484493] device wlan0 entered promiscuous mode
Jan 18 08:09:22 192.168.1.2 kernel: [  586.489516] br-lan: port 2(wlan0) entered blocking state
Jan 18 08:09:22 192.168.1.2 kernel: [  586.493798] br-lan: port 2(wlan0) entered forwarding state
Jan 18 08:09:22 192.168.1.2 kernel: [  586.500365] br-lan: port 2(wlan0) entered disabled state
Jan 18 08:09:23 192.168.1.2 root: ip link set dev wlan0 up
Jan 18 08:09:23 192.168.1.2 netifd: lan (2025): udhcpc: performing DHCP renew
Jan 18 08:09:23 192.168.1.2 netifd: lan (2025): udhcpc: sending renew to 192.168.1.1
Jan 18 08:09:23 192.168.1.2 netifd: lan (2025): udhcpc: lease of 192.168.1.2 obtained, lease time 43200
Jan 18 08:10:29 192.168.1.2 hostapd: Using interface wlan0 with hwaddr 8c:3b:ad:12:34:56 and ssid "prod"
Jan 18 08:10:29 192.168.1.2 netifd: Network device 'wlan0' link is up
Jan 18 08:10:29 192.168.1.2 kernel: [  653.398383] br-lan: port 2(wlan0) entered blocking state
Jan 18 08:10:29 192.168.1.2 kernel: [  653.398447] br-lan: port 2(wlan0) entered forwarding state

With higher 5G channels only:

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11a'
        option path 'soc/1b500000.pci/pci0000:00/0000:00:00.0/0000:01:00.0'
        option htmode 'VHT80'
        option legacy_rates '0'
        option country 'PL'
        option txpower '17'
        option channel 'auto'
        option channels '132 136 140'

Result:

Jan 18 08:02:09 192.168.1.2 netifd: radio0 (3672): command failed: Not supported (-95)
Jan 18 08:02:16 192.168.1.2 kernel: [  160.142286] ath10k_pci 0000:01:00.0: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
Jan 18 08:02:16 192.168.1.2 kernel: [  160.142313] ath10k_pci 0000:01:00.0: msdu-desc: 2500  skid: 32
Jan 18 08:02:16 192.168.1.2 kernel: [  160.224664] ath10k_pci 0000:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
Jan 18 08:02:16 192.168.1.2 kernel: [  160.225558] ath10k_pci 0000:01:00.0: wmi print 'free: 81784 iram: 23204 sram: 14440'
Jan 18 08:02:16 192.168.1.2 kernel: [  160.580364] ath10k_pci 0000:01:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4
Jan 18 08:02:16 192.168.1.2 kernel: [  160.588201] br-lan: port 2(wlan0) entered blocking state
Jan 18 08:02:16 192.168.1.2 kernel: [  160.590330] br-lan: port 2(wlan0) entered disabled state
Jan 18 08:02:16 192.168.1.2 kernel: [  160.596512] device wlan0 entered promiscuous mode
Jan 18 08:02:17 192.168.1.2 root: ip link set dev wlan0 up
Jan 18 08:02:17 192.168.1.2 netifd: lan (2025): udhcpc: performing DHCP renew
Jan 18 08:02:17 192.168.1.2 netifd: lan (2025): udhcpc: sending renew to 192.168.1.1
Jan 18 08:02:17 192.168.1.2 netifd: lan (2025): udhcpc: lease of 192.168.1.2 obtained, lease time 43200
Jan 18 08:02:18 192.168.1.2 hostapd: ACS: Failed to compute ideal channel
Jan 18 08:02:18 192.168.1.2 hostapd: Interface initialization failed
Jan 18 08:02:18 192.168.1.2 hostapd: ACS: Possibly channel configuration is invalid, please report this along with your config file.
Jan 18 08:02:18 192.168.1.2 hostapd: ACS: Failed to start
Jan 18 08:02:18 192.168.1.2 hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Jan 18 08:02:18 192.168.1.2 kernel: [  163.006363] device wlan0 left promiscuous mode
Jan 18 08:02:18 192.168.1.2 kernel: [  163.006508] br-lan: port 2(wlan0) entered disabled state
Jan 18 08:02:18 192.168.1.2 kernel: [  163.087408] ath10k_pci 0000:01:00.0: peer-unmap-event: unknown peer id 0

auto does not do what you expect it to, basically it selects the first allowed channel (based on hardware, regdomain and your channels setting). Just select the best channel according to your environment and don't rely on auto.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.