openwrt / openwrt/mt76

mt7915: mt7622: u6lr-v3 mesh network does not come up - Invalid baDirection - StaRec fgIsInUse is already FALSE

Open
#1,008 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
888
Forks
436
PR merge metrics
No merged PRs in 30d

Description

When running wifi on a Ubiquiti UniFi 6 LR v3 on latest openwrt-24.10 (gluon-main), it seems that there is a race condition in the setup of the 5GHz mesh link.
After manually running wifi the 5GHz link works and sees the neighbour.
Normal client wifi works fine on 5GHz all the time.

I did enable mt76 debug in rc.local:

echo 1 > /sys/kernel/debug/ieee80211/wl1/mt76/fw_debug_wa
echo 1 > /sys/kernel/debug/ieee80211/wl1/mt76/fw_debug_wm

and found the following messages with Invalid baDirection and StaRec fgIsInUse is already FALSE, which seem to have a race condition in the initialization or wrong driver state:

[  659.591858] ieee80211 wl1: WA: Invalid baDirection
[  659.597573] ieee80211 wl1: WA: ==>rxmDeleteStaRec, prStaRecord->fgIsInUse = 1
[  659.605549] batman_adv: bat0: Interface deactivated: mesh1
[  659.624940] ieee80211 wl1: WA: ==>rxmDeleteBss, prBssInfo->ucBssIndex = 0
[  659.631840] ieee80211 wl1: WA: ==>rxmDeleteStaRec, prStaRecord->fgIsInUse = 1
[  659.639090] ieee80211 wl1: WA: StaRec fgIsInUse is already FALSE. Do nothing
[  659.666535] ieee80211 wl1: WM: ( 620.814972:36:BSS-E)bssDisableBcnOffloadFunc, BSS (0) Inactived
[  659.675425] ieee80211 wl1: WM: ( 620.815644:37:CMD-E)Rx Hdr Translation enable=0, CheckBssid=0, InsVlan=0, RemVlan=0, QosTid=0, Mode=0
[  659.691781] batman_adv: bat0: Removing interface: mesh1

However, these messages also appear for subsequent wifi restarts, as shown in the full log.
I did not find anything about this elsewhere, so I hope this is the right place to track this issue

dmesg log including wifi restarts
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.6.103 (ffac@ffac-build) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r28789+13-92d4f59709) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Tue Jul 22 13:11:35 2025
[    0.000000] Machine model: Ubiquiti UniFi 6 LR v3
[    0.000000] Memory limited to 495MB
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005efdefff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000005efdefff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005efdefff]
[    0.000000] On node 0, zone DMA: 4129 pages in unavailable ranges
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 18 pages/cpu s34920 r8192 d30616 u73728
[    0.000000] pcpu-alloc: s34920 r8192 d30616 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: ubootver= ramoops.mem_address=0x5efe0000 ramoops.mem_size=131072 ramoops.ecc=1 ramoops.record_size=32768 console=ttyS0,115200n1 mem=507775K ubntbootid=0
[    0.000000] Unknown kernel command line parameters "ubootver= ubntbootid=0", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 124959
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 0MB
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x000000005e540000-0x000000005e5c0000] (0MB)
[    0.000000] Memory: 483772K/507772K available (8640K kernel code, 904K rwdata, 2508K rodata, 448K init, 303K bss, 24000K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 80ns, wraps every 4398046511080ns
[    0.000208] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[    0.000217] pid_max: default: 32768 minimum: 301
[    0.002601] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.002610] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.004684] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.004814] rcu: Hierarchical SRCU implementation.
[    0.004817] rcu: 	Max phase no-delay instances is 1000.
[    0.005176] smp: Bringing up secondary CPUs ...
[    0.005548] Detected VIPT I-cache on CPU1
[    0.005621] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.005687] smp: Brought up 1 node, 2 CPUs
[    0.005692] SMP: Total of 2 processors activated.
[    0.005695] CPU features: detected: 32-bit EL0 Support
[    0.005698] CPU features: detected: CRC32 instructions
[    0.005726] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.005730] CPU: All CPU(s) started at EL2
[    0.005732] alternatives: applying system-wide alternatives
[    0.009979] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009998] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.011202] pinctrl core: initialized pinctrl subsystem
[    0.012219] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.012521] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.012546] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.012567] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.012618] ramoops: using module parameters
[    0.021935] pstore: Using crash dump compression: deflate
[    0.021942] printk: console [ramoops-1] enabled
[    0.027730] pstore: Registered ramoops as persistent store backend
[    0.027829] ramoops: using 0x20000@0x5efe0000, ecc: 16
[    0.028262] thermal_sys: Registered thermal governor 'fair_share'
[    0.028267] thermal_sys: Registered thermal governor 'bang_bang'
[    0.028367] thermal_sys: Registered thermal governor 'step_wise'
[    0.028422] thermal_sys: Registered thermal governor 'user_space'
[    0.028596] ASID allocator initialised with 65536 entries
[    0.028947] ramoops: already initialized
[    0.029003] ramoops: probe of 42ff0000.ramoops failed with error -22
[    0.037510] Modules: 29536 pages in range for non-PLT usage
[    0.037523] Modules: 521056 pages in range for PLT usage
[    0.038300] cryptd: max_cpu_qlen set to 1000
[    0.039289] SCSI subsystem initialized
[    0.039510] libata version 3.00 loaded.
[    0.041216] clocksource: Switched to clocksource arch_sys_counter
[    0.043340] NET: Registered PF_INET protocol family
[    0.043553] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.044592] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.044705] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.044810] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.044936] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.045092] TCP: Hash tables configured (established 4096 bind 4096)
[    0.045490] MPTCP token hash table entries: 512 (order: 1, 12288 bytes, linear)
[    0.045642] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.045769] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.045991] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.046069] PCI: CLS 0 bytes, default 64
[    0.047157] workingset: timestamp_bits=62 max_order=17 bucket_order=0
[    0.051360] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.051420] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.105119] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.115859] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.129218] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.135198] printk: console [ttyS0] disabled
[    0.155657] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 118, base_baud = 1562500) is a ST16650V2
[    0.155813] printk: console [ttyS0] enabled
[    0.881989] 11005000.serial: ttyS1 at MMIO 0x11005000 (irq = 119, base_baud = 1562500) is a ST16650V2
[    0.892255] mtk_rng 1020f000.rng: registered RNG driver
[    0.892423] random: crng init done
[    0.903370] loop: module loaded
[    0.907070] mtk-ecc 1100e000.ecc: probed
[    0.914128] spi-nor spi0.0: w25q512jvq (65536 Kbytes)
[    0.919435] 10 fixed-partitions partitions found on MTD device spi0.0
[    0.926026] OF: Bad cell count for /spi@11014000/flash@0/partitions
[    0.932364] OF: Bad cell count for /spi@11014000/flash@0/partitions
[    0.938894] Creating 10 MTD partitions on "spi0.0":
[    0.943839] 0x000000000000-0x000000040000 : "preloader"
[    0.949890] 0x000000040000-0x000000060000 : "atf"
[    0.954902] 0x000000060000-0x0000000c0000 : "u-boot"
[    0.960160] 0x0000000c0000-0x0000000d0000 : "u-boot-env"
[    0.965748] 0x0000000d0000-0x000000110000 : "factory"
[    0.971094] 0x000000110000-0x000000120000 : "eeprom"
[    0.976389] OF: Bad cell count for /spi@11014000/flash@0/partitions
[    0.982936] 0x000000120000-0x000000130000 : "bs"
[    0.987821] 0x000000130000-0x000000230000 : "cfg"
[    0.992841] 0x000000230000-0x000002110000 : "firmware"
[    0.998457] 2 fit-fw partitions found on MTD device firmware
[    1.004187] Creating 2 MTD partitions on "firmware":
[    1.009241] 0x000000000000-0x000000410000 : "kernel"
[    1.014600] 0x000000420000-0x000001ee0000 : "rootfs"
[    1.019862] mtd: setting mtd10 (rootfs) as root device
[    1.025214] 1 squashfs-split partitions found on MTD device rootfs
[    1.031496] 0x000000c40000-0x000001ee0000 : "rootfs_data"
[    1.037268] 0x000002110000-0x000003ff0000 : "kernel1"
[    1.045176] mtk-spi-nor 11014000.spi: spi frequency: 46666653 Hz
[    1.185646] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc0814e0000, irq 124
[    1.195538] i2c_dev: i2c /dev entries driver
[    1.201254] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.211046] NET: Registered PF_INET6 protocol family
[    1.216918] Segment Routing with IPv6
[    1.220696] In-situ OAM (IOAM) with IPv6
[    1.224736] NET: Registered PF_PACKET protocol family
[    1.229901] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.243258] 8021q: 802.1Q VLAN Support v1.8
[    1.267872] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.274564] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.280451] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    1.548410] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    1.554696] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.560294] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    1.567248] pci_bus 0000:00: scanning bus
[    1.571513] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400
[    1.577757] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x1ffffffff 64bit pref]
[    1.587934] pci_bus 0000:00: fixups for bus
[    1.592200] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    1.599013] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.607204] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.614354] pci_bus 0000:01: scanning bus
[    1.618626] pci 0000:01:00.0: [14c3:7915] type 00 class 0x000280
[    1.624873] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[    1.632318] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[    1.639702] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[    1.647791] pci 0000:01:00.0: supports D1 D2
[    1.652125] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.658873] pci 0000:01:00.0: PME# disabled
[    1.663466] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.701467] pci_bus 0000:01: fixups for bus
[    1.705781] pci_bus 0000:01: bus scan returning with max=01
[    1.711616] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.718376] pci_bus 0000:00: bus scan returning with max=01
[    1.724064] pci 0000:00:00.0: BAR 0: no space for [mem size 0x200000000 64bit pref]
[    1.731769] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x200000000 64bit pref]
[    1.739863] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    1.746750] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit pref]
[    1.754627] pci 0000:01:00.0: BAR 2: assigned [mem 0x20100000-0x20103fff 64bit pref]
[    1.762551] pci 0000:01:00.0: BAR 4: assigned [mem 0x20104000-0x20104fff 64bit pref]
[    1.770465] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.775484] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    1.782491] pcieport 0000:00:00.0: assign IRQ: got 128
[    1.787682] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    1.793887] pcieport 0000:00:00.0: enabling bus mastering
[    1.799402] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x44e950c0
[    1.806894] pcieport 0000:00:00.0: PME: Signaling with IRQ 128
[    1.812852] pcieport 0000:00:00.0: save config 0x00: 0x325814c3
[    1.818864] pcieport 0000:00:00.0: save config 0x04: 0x00100006
[    1.824838] pcieport 0000:00:00.0: save config 0x08: 0x06040000
[    1.830848] pcieport 0000:00:00.0: save config 0x0c: 0x00010000
[    1.836817] pcieport 0000:00:00.0: save config 0x10: 0x0000000c
[    1.842831] pcieport 0000:00:00.0: save config 0x14: 0x00000000
[    1.848796] pcieport 0000:00:00.0: save config 0x18: 0x40010100
[    1.854808] pcieport 0000:00:00.0: save config 0x1c: 0x04200000
[    1.860771] pcieport 0000:00:00.0: save config 0x20: 0x20102000
[    1.866740] pcieport 0000:00:00.0: save config 0x24: 0x00000000
[    1.872753] pcieport 0000:00:00.0: save config 0x28: 0x00000000
[    1.878718] pcieport 0000:00:00.0: save config 0x2c: 0x00000000
[    1.884734] pcieport 0000:00:00.0: save config 0x30: 0x00000000
[    1.890698] pcieport 0000:00:00.0: save config 0x34: 0x00000050
[    1.896711] pcieport 0000:00:00.0: save config 0x38: 0x00000000
[    1.902680] pcieport 0000:00:00.0: save config 0x3c: 0x00020180
[    1.909379] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    1.917225] clk: Disabling unused clocks
[    1.963968] VFS: Mounted root (squashfs filesystem) readonly on device 31:10.
[    1.971353] Freeing unused kernel memory: 448K
[    1.975941] Run /sbin/init as init process
[    1.980081]   with arguments:
[    1.983094]     /sbin/init
[    1.985842]   with environment:
[    1.989068]     HOME=/
[    1.991476]     TERM=linux
[    1.994224]     ubootver=
[    1.996885]     ubntbootid=0
[    3.947750] init: Console is alive
[    3.951392] init: - watchdog -
[    9.062876] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    9.593257] usbcore: registered new interface driver usbfs
[    9.598840] usbcore: registered new interface driver hub
[    9.604298] usbcore: registered new device driver usb
[    9.612653] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    9.630891] usbcore: registered new interface driver usb-storage
[    9.638046] usbcore: registered new interface driver uas
[    9.643739] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    9.653641] init: - preinit -
[   13.641312] mtk_soc_eth 1b100000.ethernet eth0: PHY [mdio-bus:00] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[   13.654816] mtk_soc_eth 1b100000.ethernet eth0: configuring for inband/sgmii link mode
[   16.791658] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   18.237322] mount_root: loading kmods from internal overlay
[   18.252289] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   18.280328] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   24.611843] block: attempting to load /tmp/overlay/upper/etc/config/fstab
[   24.638303] block: unable to load configuration (fstab: Entry not found)
[   24.645180] block: attempting to load /tmp/overlay/etc/config/fstab
[   24.651602] block: unable to load configuration (fstab: Entry not found)
[   24.658387] block: attempting to load /etc/config/fstab
[   24.677119] block: unable to load configuration (fstab: Entry not found)
[   24.683912] block: no usable configuration
[   25.211653] jffs2: notice: (750) jffs2_build_xattr_subsystem: complete building xattr subsystem, 20 of xdatum (18 unchecked, 2 orphan) and 27 of xref (2 dead, 0 orphan) found.
[   25.228315] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   25.256412] block: extroot: not configured
[   25.786436] jffs2: notice: (748) jffs2_build_xattr_subsystem: complete building xattr subsystem, 20 of xdatum (18 unchecked, 2 orphan) and 27 of xref (2 dead, 0 orphan) found.
[   25.806637] mount_root: loading kmods from internal overlay
[   25.845975] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   25.860405] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   31.601955] block: attempting to load /tmp/overlay/upper/etc/config/fstab
[   31.620404] block: extroot: not configured
[   31.624800] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   31.631930] block: extroot: not configured
[   31.637160] mount_root: switching to jffs2 overlay
[   31.701260] overlayfs: upper fs does not support tmpfile.
[   31.725340] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[   31.737461] urandom-seed: Seeding with /etc/urandom.seed
[   31.799782] procd: - early -
[   31.802893] procd: - watchdog -
[   32.504459] procd: - watchdog -
[   32.517162] procd: - ubus -
[   33.113318] procd: - init -
[   36.822333] urngd: v1.0.2 started.
[   37.148360] kmodloader: loading kernel modules from /etc/modules.d/*
[   38.027737] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[   38.044130] GACT probability on
[   38.048055] Mirror/redirect action on
[   38.055977] u32 classifier
[   38.058796]     input device check on
[   38.062554]     Actions configured
[   38.079802] usbcore: registered new interface driver cdc_acm
[   38.085607] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   38.094334] Loading modules backported from Linux version v6.12.44-0-g11a24528d080
[   38.101976] Backport generated by backports.git v6.1.110-1-35-g410656ef
[   38.115168] hso: drivers/net/usb/hso.c: Option Wireless
[   38.120533] usbcore: registered new interface driver hso
[   38.128408] usbcore: registered new interface driver ipheth
[   38.138718] pegasus: Pegasus/Pegasus II USB Ethernet driver
[   38.144540] usbcore: registered new interface driver pegasus
[   38.153227] usbcore: registered new device driver r8152-cfgselector
[   38.159635] usbcore: registered new interface driver r8152
[   38.167765] usbcore: registered new interface driver ums-alauda
[   38.174753] usbcore: registered new interface driver ums-cypress
[   38.182223] usbcore: registered new interface driver ums-datafab
[   38.189336] usbcore: registered new interface driver ums-freecom
[   38.196442] usbcore: registered new interface driver ums-isd200
[   38.203477] usbcore: registered new interface driver ums-jumpshot
[   38.210531] usbcore: registered new interface driver ums-karma
[   38.217604] usbcore: registered new interface driver ums-sddr09
[   38.224602] usbcore: registered new interface driver ums-sddr55
[   38.231713] usbcore: registered new interface driver ums-usbat
[   38.241797] usbcore: registered new interface driver usbserial_generic
[   38.248413] usbserial: USB Serial support registered for generic
[   38.260869] xt_time: kernel timezone is -0000
[   38.266771] usbcore: registered new interface driver asix
[   38.273462] usbcore: registered new interface driver ax88179_178a
[   38.280577] usbcore: registered new interface driver cdc_eem
[   38.287569] usbcore: registered new interface driver cdc_ether
[   38.294972] usbcore: registered new interface driver cdc_ncm
[   38.301982] usbcore: registered new interface driver cdc_subset
[   38.342612] usbcore: registered new interface driver dm9601
[   38.363559] usbcore: registered new interface driver ftdi_sio
[   38.369404] usbserial: USB Serial support registered for FTDI USB Serial Device
[   38.413383] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[   38.516059] mt7622-wmac 18000000.wmac: registering led 'mt76-phy0'
[   38.602764] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   38.634691] mt7915e 0000:01:00.0: assign IRQ: got 128
[   38.639855] mt7915e 0000:01:00.0: enabling device (0000 -> 0002)
[   38.646034] mt7915e 0000:01:00.0: enabling bus mastering
[   38.772332] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x44e950c0
[   39.765844] mt7915e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240429200716a
[   39.765844] 
[   39.771298] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[   39.771298] 
[   41.951471] mt7622-wmac 18000000.wmac: N9 Firmware Version: _reserved_, Build Time: 20220630094834
[   43.671475] mt7915e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20240429200752
[   43.695804] mt7915e 0000:01:00.0: WA Firmware Version: DEV_000000, Build Time: 20240429200812
[   44.155622] mt7915e 0000:01:00.0: registering led 'mt76-phy1'
[   44.203269] usbcore: registered new interface driver pl2303
[   44.208946] usbserial: USB Serial support registered for pl2303
[   44.216550] usbcore: registered new interface driver rndis_host
[   44.224228] usbcore: registered new interface driver smsc95xx
[   44.232598] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   44.240537] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   44.258838] batman_adv: B.A.T.M.A.N. advanced 2024.3-openwrt-6 (compatibility version 15) loaded
[   44.269401] kmodloader: done loading kernel modules from /etc/modules.d/*
[   81.681639] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[   81.741319] mtk_soc_eth 1b100000.ethernet eth0: PHY [mdio-bus:00] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[   81.754531] mtk_soc_eth 1b100000.ethernet eth0: configuring for inband/sgmii link mode
[   81.823115] br-client: port 1(eth0) entered blocking state
[   81.828721] br-client: port 1(eth0) entered disabled state
[   81.834322] mtk_soc_eth 1b100000.ethernet eth0: entered allmulticast mode
[   81.841380] mtk_soc_eth 1b100000.ethernet eth0: entered promiscuous mode
[   82.095319] br-client: port 2(local-port) entered blocking state
[   82.101474] br-client: port 2(local-port) entered disabled state
[   82.107556] local-port: entered allmulticast mode
[   82.112525] local-port: entered promiscuous mode
[   82.161819] br-client: port 2(local-port) entered blocking state
[   82.167954] br-client: port 2(local-port) entered forwarding state
[   82.988031] 8021q: adding VLAN 0 to HW filter on device bat0
[   83.005121] br-client: port 3(bat0) entered blocking state
[   83.010694] br-client: port 3(bat0) entered disabled state
[   83.016354] bat0: entered allmulticast mode
[   83.020759] bat0: entered promiscuous mode
[   83.025080] br-client: port 3(bat0) entered blocking state
[   83.030659] br-client: port 3(bat0) entered forwarding state
[   83.501961] batman_adv: bat0: No IGMP Querier present - multicast optimizations disabled
[   83.510174] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled
[   85.991624] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   86.000235] br-client: port 1(eth0) entered blocking state
[   86.005812] br-client: port 1(eth0) entered forwarding state
[   86.383814] batman_adv: bat0: Adding interface: primary0
[   86.389208] batman_adv: bat0: Interface activated: primary0
[   86.443563] batman_adv: bat0: Interface deactivated: primary0
[   86.461026] batman_adv: bat0: Interface activated: primary0
[   89.240022] batman_adv: bat0: Adding interface: mesh1
[   89.245234] batman_adv: bat0: Interface activated: mesh1
[   92.191375] batman_adv: bat0: IGMP Querier appeared
[   92.196378] batman_adv: bat0: MLD Querier appeared

running wifi:

[  474.155427] ieee80211 wl1: WA: ==>rxmDeleteStaRec, prStaRecord->fgIsInUse = 1
[  474.162658] ieee80211 wl1: WA: StaRec fgIsInUse is already FALSE. Do nothing
[  474.171869] batman_adv: bat0: Removing interface: mesh1
[  474.918214] ieee80211 wl1: WM: ( 436.153840:21:CMD-E)Rx Hdr Translation enable=1, CheckBssid=0, InsVlan=0, RemVlan=0, QosTid=0, Mode=0
[  474.930431] ieee80211 wl1: WM: ( 436.153901:22:CMD-E)Rx Hdr Translation BL Count=1 
[  474.938202] ieee80211 wl1: WM: ( 436.153901:23:CMD-E)Rx Hdr Translation BL setting idx=0, enable=1, ether-type=0x888e 
[  474.949043] ieee80211 wl1: WM: ( 436.154084:24:CMD-S)ProtectCtrl!! Protection Index = 1, DBDC = 0
[  474.958053] ieee80211 wl1: WM: ( 436.154694:25:BSS-E)BSSInfo 0 Active 
[  474.964660] ieee80211 wl1: WM: ( 436.154816:26:BSS-E)ucDbdcIdx 0, ucOwnMacIdx 4, ucHetbRU26Disable 0  
[  474.974077] ieee80211 wl1: WM: ( 436.154938:27:BSS-E)_whCapSetGeneric_Falcon DW0 = 0xe0000, DW1 = 0x0
[  474.999518] ieee80211 wl1: WM: ( 436.237183:28:BSS-E)BSSInfo 0 Active 
[  475.006214] ieee80211 wl1: WM: ( 436.237244:29:BSS-E)ucDbdcIdx 0, ucOwnMacIdx 4, ucHetbRU26Disable 0  
[  475.015691] ieee80211 wl1: WM: ( 436.237366:30:BSS-E)_whCapSetGeneric_Falcon DW0 = 0xe0000, DW1 = 0x0
[  475.028806] ieee80211 wl1: WM: ( 436.266480:31:BSS-E)_whCapSetGeneric_Falcon DW0 = 0x10000, DW1 = 0x0
[  475.038212] ieee80211 wl1: WM: ( 436.266724:32:BSS-E)_whCapSetGeneric_Falcon DW0 = 0x10000, DW1 = 0x0
[  475.047587] ieee80211 wl1: WM: ( 436.266999:33:TXC-E)heACtrlInitStaRec(): prOperMode=401308, u2OperMode=41!
[  475.057469] ieee80211 wl1: WM: ( 436.267029:34:BSS-E)muruAddStaRec, prRuStaRec->u1Bw = 2 eBand = 5000000 BSS BW = 2
[  475.068032] ieee80211 wl1: WM: ( 436.267151:35:BSS-E)_whCapSetGeneric_Falcon DW0 = 0x10000, DW1 = 0x0
[  475.077521] ieee80211 wl1: WA: StaRec fgIsInUse is already FALSE. Do nothing
[  475.359821] batman_adv: bat0: Adding interface: mesh1
[  475.365064] batman_adv: bat0: Interface activated: mesh1
[  501.367607] ieee80211 wl1: WA: Invalid baDirection
[  516.481270] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[  516.488090] br-client: port 1(eth0) entered disabled state
[  519.681627] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[  519.681681] br-client: port 1(eth0) entered blocking state
[  519.695820] br-client: port 1(eth0) entered forwarding state

wifi

[  659.591858] ieee80211 wl1: WA: Invalid baDirection
[  659.597573] ieee80211 wl1: WA: ==>rxmDeleteStaRec, prStaRecord->fgIsInUse = 1
[  659.605549] batman_adv: bat0: Interface deactivated: mesh1
[  659.624940] ieee80211 wl1: WA: ==>rxmDeleteBss, prBssInfo->ucBssIndex = 0
[  659.631840] ieee80211 wl1: WA: ==>rxmDeleteStaRec, prStaRecord->fgIsInUse = 1
[  659.639090] ieee80211 wl1: WA: StaRec fgIsInUse is already FALSE. Do nothing
[  659.666535] ieee80211 wl1: WM: ( 620.814972:36:BSS-E)bssDisableBcnOffloadFunc, BSS (0) Inactived
[  659.675425] ieee80211 wl1: WM: ( 620.815644:37:CMD-E)Rx Hdr Translation enable=0, CheckBssid=0, InsVlan=0, RemVlan=0, QosTid=0, Mode=0
[  659.691781] batman_adv: bat0: Removing interface: mesh1
[  660.555517] ieee80211 wl1: WM: ( 621.747651:38:CMD-E)Rx Hdr Translation enable=1, CheckBssid=0, InsVlan=0, RemVlan=0, QosTid=0, Mode=0
[  660.567768] ieee80211 wl1: WM: ( 621.747712:39:CMD-E)Rx Hdr Translation BL Count=1 
[  660.575583] ieee80211 wl1: WM: ( 621.747742:40:CMD-E)Rx Hdr Translation BL setting idx=0, enable=1, ether-type=0x888e 
[  660.586422] ieee80211 wl1: WM: ( 621.747895:41:CMD-S)ProtectCtrl!! Protection Index = 1, DBDC = 0
[  660.595445] ieee80211 wl1: WM: ( 621.748536:42:BSS-E)BSSInfo 0 Active 
[  660.602065] ieee80211 wl1: WM: ( 621.748658:43:BSS-E)ucDbdcIdx 0, ucOwnMacIdx 4, ucHetbRU26Disable 0  
[  660.611489] ieee80211 wl1: WM: ( 621.753907:44:BSS-E)_whCapSetGeneric_Falcon DW0 = 0xe0000, DW1 = 0x0
[  660.637943] ieee80211 wl1: WM: ( 621.830292:45:BSS-E)BSSInfo 0 Active 
[  660.644600] ieee80211 wl1: WM: ( 621.830353:46:BSS-E)ucDbdcIdx 0, ucOwnMacIdx 4, ucHetbRU26Disable 0  
[  660.654566] ieee80211 wl1: WM: ( 621.846894:47:BSS-E)_whCapSetGeneric_Falcon DW0 = 0xe0000, DW1 = 0x0
[  660.680870] ieee80211 wl1: WA: StaRec fgIsInUse is already FALSE. Do nothing
[  660.688257] ieee80211 wl1: WM: ( 621.872986:48:BSS-E)_whCapSetGeneric_Falcon DW0 = 0x10000, DW1 = 0x0
[  660.698713] ieee80211 wl1: WM: ( 621.891022:49:BSS-E)_whCapSetGeneric_Falcon DW0 = 0x10000, DW1 = 0x0
[  660.716681] ieee80211 wl1: WM: ( 621.903840:50:TXC-E)heACtrlInitStaRec(): prOperMode=401308, u2OperMode=41!
[  660.726580] ieee80211 wl1: WM: ( 621.903901:51:BSS-E)muruAddStaRec, prRuStaRec->u1Bw = 2 eBand = 5000000 BSS BW = 2
[  660.737165] ieee80211 wl1: WM: ( 621.907990:52:BSS-E)_whCapSetGeneric_Falcon DW0 = 0x10000, DW1 = 0x0
[  660.964629] batman_adv: bat0: Adding interface: mesh1
[  660.969756] batman_adv: bat0: Interface activated: mesh1

mesh-radio config:

config wifi-iface 'mesh_radio1'
	option ifname 'mesh1'
	option network 'mesh_radio1'
	option device 'radio1'
	option mesh_fwding '0'
	option mesh_id 'ffac-bat4-mesh'
	option disabled '0'
	option mesh_nolearn '1'
	option mcast_rate '12000'
	option mode 'mesh'
	option macaddr '5e:2c:bd:2d:af:e5'
	list basic_rate '12000'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the 5GHz mesh setup on the Ubiquiti UniFi 6 LR v3 and compare normal startup with manually running wifi. Enable the mt76 debug paths /sys/kernel/debug/ieee80211/wl1/mt76/fw_debug_wa and fw_debug_wm, then trace the Invalid baDirection and StaRec fgIsInUse is already FALSE messages in the mt76/mt7915 path. Done means the mesh link comes up reliably without these failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.