I'm setting up a raspberry pi 4 as an OpenWRT router. WAN\LAN configured successfully but I've hit a problem trying to set up a wireless AP using the pi onboard wireless capability. I am unable to initialise wlan0. Logs and config below:
Sat Jan 11 19:56:11 2020 daemon.notice hostapd: wlan0: interface state DISABLED->DISABLED
Sat Jan 11 19:56:11 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Sat Jan 11 19:56:11 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Sat Jan 11 19:56:11 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Sat Jan 11 19:56:12 2020 daemon.notice netifd: radio0 (1640): Command failed: Not found
Sat Jan 11 19:56:12 2020 daemon.notice netifd: radio0 (1640): command failed: No error information (-524)
Sat Jan 11 19:56:12 2020 daemon.notice netifd: radio0 (1658): command failed: No error information (-524)
Sat Jan 11 19:56:12 2020 daemon.notice netifd: radio0 (1658): command failed: Not supported (-95)
Sat Jan 11 19:56:12 2020 daemon.notice netifd: radio0 (1658): command failed: I/O error (-5)
Sat Jan 11 19:56:12 2020 daemon.notice netifd: radio0 (1658): command failed: I/O error (-5)
Sat Jan 11 19:56:12 2020 daemon.notice netifd: radio0 (1658): command failed: Too many open files in system (-23)
Sat Jan 11 19:56:13 2020 daemon.notice netifd: radio0 (1658): command failed: Too many open files in system (-23)
Sat Jan 11 19:56:13 2020 daemon.notice netifd: radio0 (1658): command failed: No error information (-524)
Sat Jan 11 19:56:14 2020 daemon.notice netifd: radio0 (1658): command failed: Too many open files in system (-23)
Sat Jan 11 19:56:16 2020 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Sat Jan 11 19:56:16 2020 kern.info kernel: [ 152.760273] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sat Jan 11 19:56:16 2020 kern.info kernel: [ 152.769771] br-lan: port 2(wlan0) entered blocking state
Sat Jan 11 19:56:16 2020 kern.info kernel: [ 152.776924] br-lan: port 2(wlan0) entered disabled state
Sat Jan 11 19:56:16 2020 kern.info kernel: [ 152.783981] device wlan0 entered promiscuous mode
Sat Jan 11 19:56:16 2020 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Sat Jan 11 19:56:16 2020 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit
Sat Jan 11 19:56:16 2020 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->ACS
Sat Jan 11 19:56:16 2020 daemon.notice hostapd: wlan0: ACS-STARTED
Sat Jan 11 19:56:17 2020 user.notice root: ip link set dev wlan0 up
Sat Jan 11 19:56:36 2020 daemon.err hostapd: ACS: Unable to collect survey data
Sat Jan 11 19:56:36 2020 daemon.err hostapd: ACS: All study options have failed
Sat Jan 11 19:56:36 2020 daemon.err hostapd: Interface initialization failed
Sat Jan 11 19:56:36 2020 daemon.notice hostapd: wlan0: interface state ACS->DISABLED
Sat Jan 11 19:56:36 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Sat Jan 11 19:56:36 2020 daemon.err hostapd: ACS: Possibly channel configuration is invalid, please report this along with your config f ile.
Sat Jan 11 19:56:36 2020 daemon.err hostapd: ACS: Failed to start
Sat Jan 11 19:56:36 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Sat Jan 11 19:56:36 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Sat Jan 11 19:56:36 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sat Jan 11 19:56:36 2020 kern.info kernel: [ 172.451571] device wlan0 left promiscuous mode
Sat Jan 11 19:56:36 2020 kern.info kernel: [ 172.458683] br-lan: port 2(wlan0) entered disabled state
Sat Jan 11 19:56:37 2020 daemon.notice hostapd: wlan0: interface state DISABLED->DISABLED
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option country 'GB'
option channel 'auto'
option hwmode '11a'
option htmode 'VHT80'
config wifi-iface 'wifinet0'
option device 'radio0'
option mode 'ap'
option network 'lan'
option key 'xxxxxxxx'
option encryption 'psk2'
option ssid 'ssidname'
The radio itself appears to work OK, I can scan for wireless networks via luCi. I've tried various combinations of channels and modes but no joy.
Would anyone have any idea what the issue might be?
Thanks for the help.