AP does not start regularly

Hi
I'm using MT7610U USB ad AP radio.
But only 50% of startup AP start.
Or start after one or two minutes.

It is probably a defect in the driver, but how could I improve the situation ?

Or, how could I send a radio restart after 20 seconds from the startup?

If this is 5.4 GHz, ensure that you're on a non-DFS channel.

5Ghz
Mode AC
Channel 36 (5180 Mhz)
With 80Mhz

Is not DFS channel ?

1 Like
1 Like

36 is not a DFS channel AFAIK. My money would be on the USB connection being unstable.

Next time you notice the AP being down, SSH in and check dmesg for errors.

1 Like

I discovered that SSID appears in an old phone, in a new phone (Samsung S21) does not appear.

This during problem:

[    0.000000] Linux version 5.10.134 (giorgio@PC-Ufficio) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19590-042d558536) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sun Jul 31 15:12:47 2022
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is GEVA BatteryPoE at3 bt
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30224 r8192 d23024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=0000fa62
[    0.000000] Readback ErrCtl register=0000fa62
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 119292K/131072K available (6702K kernel code, 627K rwdata, 1360K rodata, 1284K init, 235K bss, 11780K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000013] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.007945] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.017031] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.083196] pid_max: default: 32768 minimum: 301
[    0.087977] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.095181] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.106194] rcu: Hierarchical SRCU implementation.
[    0.111276] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.119448] smp: Bringing up secondary CPUs ...
[    0.124792] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.124802] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.124817] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.124906] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.179221] Synchronize counters for CPU 1: done.
[    0.211900] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.211909] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.211918] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.211970] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.270796] Synchronize counters for CPU 2: done.
[    0.301474] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.301483] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.301492] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.301547] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.355992] Synchronize counters for CPU 3: done.
[    0.385872] smp: Brought up 1 node, 4 CPUs
[    0.394260] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.404118] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.411204] pinctrl core: initialized pinctrl subsystem
[    0.419315] NET: Registered protocol family 16
[    0.426350] cpuidle: using governor teo
[    0.439674] rt2880-pinmux pinctrl: there is not valid maps for state default
[    0.490491] clocksource: Switched to clocksource GIC
[    0.498192] NET: Registered protocol family 2
[    0.502882] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.510902] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.519223] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.526830] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.533804] TCP: Hash tables configured (established 1024 bind 1024)
[    0.540240] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.546736] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.553955] NET: Registered protocol family 1
[    0.558254] PCI: CLS 0 bytes, default 32
[    0.564732] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.575691] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.581673] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.594522] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.600530] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.606426] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.613276] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.621735] printk: console [ttyS0] disabled
[    0.626068] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    0.635089] printk: console [ttyS0] enabled
[    0.635089] printk: console [ttyS0] enabled
[    0.643345] printk: bootconsole [early0] disabled
[    0.643345] printk: bootconsole [early0] disabled
[    0.653737] 1e000e00.uartlite3: ttyS1 at MMIO 0x1e000e00 (irq = 20, base_baud = 3125000) is a 16550A
[    0.666846] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.673946] spi-nor spi0.0: w25q128 (16384 Kbytes)
[    0.678818] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.685253] Creating 4 MTD partitions on "spi0.0":
[    0.690031] 0x000000000000-0x000000030000 : "u-boot"
[    0.696066] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.702588] 0x000000040000-0x000000050000 : "factory"
[    0.708844] 0x000000050000-0x000002000000 : "firmware"
[    0.714021] mtd: partition "firmware" extends beyond the end of device "spi0.0" -- size truncated to 0xfb0000
[    0.725402] 2 uimage-fw partitions found on MTD device firmware
[    0.731423] Creating 2 MTD partitions on "firmware":
[    0.736379] 0x000000000000-0x00000029a020 : "kernel"
[    0.741346] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.750836] 0x00000029a020-0x000000fb0000 : "rootfs"
[    0.755817] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.765936] mtd: device 5 (rootfs) set to be root filesystem
[    0.771838] 1 squashfs-split partitions found on MTD device rootfs
[    0.778020] 0x000000800000-0x000000fb0000 : "rootfs_data"
[    0.832394] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    0.842271] mtk_soc_eth 1e100000.ethernet: generated random MAC address 26:ea:3f:3d:fc:49
[    0.851338] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 23
[    0.860793] i2c /dev entries driver
[    0.865361] i2c-mt7621 1e000900.i2c: clock 100 kHz
[    0.875178] NET: Registered protocol family 10
[    0.881826] Segment Routing with IPv6
[    0.885606] NET: Registered protocol family 17
[    0.890610] 8021q: 802.1Q VLAN Support v1.8
[    0.898619] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    0.922527] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=25)
[    0.935441] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    0.945911] DSA: tree 0 setup
[    0.954584] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.967689] Freeing unused kernel memory: 1284K
[    0.972273] This architecture does not have kernel memory protection.
[    0.978708] Run /sbin/init as init process
[    0.983643] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    1.518581] init: Console is alive
[    1.522559] init: - watchdog -
[    2.582084] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.710821] usbcore: registered new interface driver usbfs
[    2.716495] usbcore: registered new interface driver hub
[    2.722025] usbcore: registered new device driver usb
[    2.733769] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.748085] SCSI subsystem initialized
[    2.757167] ehci-fsl: Freescale EHCI Host controller driver
[    2.764700] ehci-platform: EHCI generic platform driver
[    2.774945] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.782743] ohci-platform: OHCI generic platform driver
[    2.790837] uhci_hcd: USB Universal Host Controller Interface driver
[    2.807164] xhci-mtk 1e1c0000.xhci: supply vbus not found, using dummy regulator
[    2.814886] xhci-mtk 1e1c0000.xhci: supply vusb33 not found, using dummy regulator
[    2.822766] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    2.828111] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    2.840676] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000290010
[    2.849865] xhci-mtk 1e1c0000.xhci: irq 22, io mem 0x1e1c0000
[    2.857131] hub 1-0:1.0: USB hub found
[    2.861112] hub 1-0:1.0: 2 ports detected
[    2.865809] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    2.871254] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    2.878746] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[    2.885339] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.894460] hub 2-0:1.0: USB hub found
[    2.898391] hub 2-0:1.0: 1 port detected
[    2.915129] usbcore: registered new interface driver usb-storage
[    2.923785] usbcore: registered new interface driver uas
[    2.929803] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.940903] init: - preinit -
[    3.390533] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    3.588644] random: procd: uninitialized urandom read (4 bytes read)
[    3.738341] random: jshn: uninitialized urandom read (4 bytes read)
[    3.817201] random: jshn: uninitialized urandom read (4 bytes read)
[    4.115167] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    4.124252] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    4.124263] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    4.139707] 8021q: adding VLAN 0 to HW filter on device lan1
[    4.148505] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    6.239719] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control rx/tx
[    6.247519] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[    8.441884] mount_root: loading kmods from internal overlay
[    8.475962] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    8.486375] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[    8.704743] jffs2: notice: (545) jffs2_build_xattr_subsystem: complete building xattr subsystem, 14 of xdatum (0 unchecked, 9 orphan) and 15 of xref (9 dead, 0 orphan) found.
[    8.721401] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    8.733209] block: extroot: not configured
[    8.763292] jffs2: notice: (543) jffs2_build_xattr_subsystem: complete building xattr subsystem, 14 of xdatum (0 unchecked, 9 orphan) and 15 of xref (9 dead, 0 orphan) found.
[    8.879569] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    8.890309] block: extroot: not configured
[    8.896078] mount_root: switching to jffs2 overlay
[    8.905338] overlayfs: upper fs does not support tmpfile.
[    8.918517] urandom-seed: Seeding with /etc/urandom.seed
[    8.939327] random: crng init done
[    8.942934] random: 7 urandom warning(s) missed due to ratelimiting
[    9.024952] mt7530 mdio-bus:1f lan1: Link is Down
[    9.040912] procd: - early -
[    9.044085] procd: - watchdog -
Failed to connect to ubus
[    9.680782] procd: - watchdog -
[    9.686680] procd: - ubus -
[    9.855867] procd: - init -
Please press Enter to activate this console.
[   11.033006] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.273201] urngd: v1.0.2 started.
[   11.337179] NET: Registered protocol family 8
[   11.341665] NET: Registered protocol family 20
[   11.368237] l2tp_core: L2TP core driver, V2.0
[   11.374858] l2tp_netlink: L2TP netlink interface
[   11.383117] gre: GRE over IPv4 demultiplexor driver
[   11.391554] ip_gre: GRE over IPv4 tunneling driver
[   11.413806] PPP generic driver version 2.4.2
[   11.438722] usbcore: registered new interface driver cdc_acm
[   11.444458] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   11.455325] usbcore: registered new interface driver cdc_wdm
[   11.463637] Loading modules backported from Linux version v5.15.58-0-g7d8048d4e064
[   11.471405] Backport generated by backports.git v5.15.58-1-0-g42a95ce7
[   11.483466] usbcore: registered new interface driver ipheth
[   11.517624] PPP MPPE Compression module registered
[   11.524849] NET: Registered protocol family 24
[   11.532105] PPTP driver version 0.8.5
[   11.539500] usbcore: registered new interface driver ums-alauda
[   11.548735] usbcore: registered new interface driver ums-cypress
[   11.557216] usbcore: registered new interface driver ums-datafab
[   11.565480] usbcore: registered new interface driver ums-freecom
[   11.574098] usbcore: registered new interface driver ums-isd200
[   11.583204] usbcore: registered new interface driver ums-jumpshot
[   11.591958] usbcore: registered new interface driver ums-karma
[   11.600574] usbcore: registered new interface driver ums-sddr09
[   11.609018] usbcore: registered new interface driver ums-sddr55
[   11.617446] usbcore: registered new interface driver ums-usbat
[   11.630328] usbcore: registered new interface driver cdc_ether
[   11.639784] usbcore: registered new interface driver cdc_ncm
[   11.671395] usbcore: registered new interface driver huawei_cdc_ncm
[   11.683157] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   11.970925] usbcore: registered new interface driver qmi_wwan
[   11.979699] usbcore: registered new interface driver rndis_host
[   12.000564] usbcore: registered new interface driver sierra_net
[   12.161470] usb 1-1: reset high-speed USB device number 2 using xhci-mtk
[   12.346715] mt76x0u 1-1:1.0: ASIC revision: 76100002 MAC revision: 76502000
[   13.366307] mt76x0u 1-1:1.0: EEPROM ver:02 fae:04
[   13.402939] usbcore: registered new interface driver mt76x0u
[   13.428106] usbcore: registered new interface driver rt2800usb
[   13.435074] kmodloader: done loading kernel modules from /etc/modules.d/*
[   22.716523] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   22.756422] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   22.764782] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   22.775600] br-lan: port 1(eth0) entered blocking state
[   22.781035] br-lan: port 1(eth0) entered disabled state
[   22.787012] device eth0 entered promiscuous mode
[   22.800271] br-lan: port 1(eth0) entered blocking state
[   22.805808] br-lan: port 1(eth0) entered forwarding state
[   22.848203] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   22.855606] 8021q: adding VLAN 0 to HW filter on device lan1
[   22.868925] br-lan: port 2(lan1) entered blocking state
[   22.874321] br-lan: port 2(lan1) entered disabled state
[   22.884767] device lan1 entered promiscuous mode
[   24.884700] br-lan: port 3(wlan0) entered blocking state
[   24.890054] br-lan: port 3(wlan0) entered disabled state
[   24.896674] device wlan0 entered promiscuous mode
[   24.949479] mt7530 mdio-bus:1f lan1: Link is Up - 100Mbps/Full - flow control rx/tx
[   24.957582] br-lan: port 2(lan1) entered blocking state
[   24.963052] br-lan: port 2(lan1) entered forwarding state
[   25.708903] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   25.715832] br-lan: port 3(wlan0) entered blocking state
[   25.721279] br-lan: port 3(wlan0) entered forwarding state
wifi status
{
        "radio0": {
                "up": true,
                "pending": false,
                "autostart": true,
                "disabled": false,
                "retry_setup_failed": false,
                "config": {
                        "path": "platform/1e1c0000.xhci/usb1/1-1/1-1:1.0",
                        "channel": "36",
                        "band": "5g",
                        "htmode": "VHT80",
                        "cell_density": 0,
                        "txpower": 4
                },
                "interfaces": [
                        {
                                "section": "default_radio0",
                                "ifname": "wlan0",
                                "config": {
                                        "mode": "ap",
                                        "encryption": "none",
                                        "wmm": false,
                                        "ssid": "linktechs.net",
                                        "disassoc_low_ack": false,
                                        "skip_inactivity_poll": true,
                                        "network": [
                                                "lan"
                                        ],
                                        "mode": "ap"
                                },
                                "vlans": [

                                ],
                                "stations": [

                                ]
                        }
                ]
        }
}

And After wifi command, The SSID appeared

root@OpenWrt:/# wifi
root@OpenWrt:/# [ 2202.993294] device wlan0 left promiscuous mode
[ 2202.998029] br-lan: port 3(wlan0) entered disabled state
[ 2204.089656] br-lan: port 3(wlan0) entered blocking state
[ 2204.095173] br-lan: port 3(wlan0) entered disabled state
[ 2204.101424] device wlan0 entered promiscuous mode
[ 2204.876424] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 2204.883225] br-lan: port 3(wlan0) entered blocking state
[ 2204.888553] br-lan: port 3(wlan0) entered forwarding state