Radio & Wifi Device is not active on reboot or startup

Hey all I am trying to figure out why my Wifi does not come on when i start or reboot my router.

I am using the Seeed router for the CM4. If i SSH into the router and do the command
wifi

Then I refresh the page the wifi is enabled:

I tried adding wifi to the startup script:

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

wifi;

exit 0

And even some other commands that I found when googling:

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

uci set wireless.@wifi-device[0].disabled=0
uci commit wireless
wifi

exit 0

When I run the command uci show wireless

wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.path='platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
wireless.radio0.band='5g'
wireless.radio0.htmode='VHT80'
wireless.radio0.country='US'
wireless.radio0.cell_density='0'
wireless.radio0.channel='149'
wireless.radio0.disabled='0'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.ssid='xxxxxxxxwifi'
wireless.default_radio0.encryption='psk2'
wireless.default_radio0.key='xxxxxxxxxxx'

And the wifi status:


{
        "radio0": {
                "up": false,
                "pending": false,
                "autostart": true,
                "disabled": false,
                "retry_setup_failed": true,
                "config": {
                        "path": "platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1",
                        "band": "5g",
                        "htmode": "VHT80",
                        "country": "US",
                        "cell_density": 0,
                        "channel": "149",
                        "disabled": false
                },
                "interfaces": [
                        {
                                "section": "default_radio0",
                                "config": {
                                        "mode": "ap",
                                        "ssid": "xxxxxxxxwifi",
                                        "encryption": "psk2",
                                        "key": "xxxxxxxxxx",
                                        "network": [
                                                "lan"
                                        ],
                                        "mode": "ap"
                                },
                                "vlans": [

                                ],
                                "stations": [

                                ]
                        }
                ]
        }
}

So what can I do in order for this to start automatically when the router starts or reboots?

How about checking the system log and kernel log for boot process wifi messages/errors?

If you want any advice/ideas, first show us some actual info on what happens.

Sat Jan  6 13:04:22 2024 daemon.err nmbd[1967]: [2024/01/06 13:04:22.301442,  0] ../../source3/nmbd/nmbd_become_lmb.c:398(become_local_master_stage2)
Sat Jan  6 13:04:22 2024 daemon.err nmbd[1967]:   *****
Sat Jan  6 13:04:22 2024 daemon.err nmbd[1967]:
Sat Jan  6 13:04:22 2024 daemon.err nmbd[1967]:   Samba name server SSD is now a local master browser for workgroup WORKGROUP on subnet 192.168.8.1
Sat Jan  6 13:04:22 2024 daemon.err nmbd[1967]:
Sat Jan  6 13:04:22 2024 daemon.err nmbd[1967]:   *****
Sat Jan  6 13:04:24 2024 daemon.warn odhcpd[1228]: No default route present, overriding ra_lifetime!
Sat Jan  6 13:04:34 2024 daemon.info dnsmasq-dhcp[1]: DHCPDISCOVER(br-lan) 192.168.8.123 00:xx:xx:xx:xx
Sat Jan  6 13:04:34 2024 daemon.info dnsmasq-dhcp[1]: DHCPOFFER(br-lan) 192.168.8.123 00:xx:xx:xx:xx
Sat Jan  6 13:04:34 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.8.123 00:xx:xx:xx:xx
Sat Jan  6 13:04:34 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.8.123 00:xx:xx:xx:xx
Sat Jan  6 13:04:40 2024 daemon.warn odhcpd[1228]: No default route present, overriding ra_lifetime!
Sat Jan  6 13:04:49 2024 daemon.err uhttpd[1353]: [info] luci: accepted login on / for root from 192.168.8.123
Sat Jan  6 13:04:53 2024 cron.err crond[1287]: time disparity of 825 minutes detected
Sat Jan  6 13:05:47 2024 daemon.warn dnsmasq-dhcp[1]: no address range available for DHCP request via eth1
Sat Jan  6 13:08:28 2024 daemon.warn odhcpd[1228]: No default route present, overriding ra_lifetime!