Issues with recent mt76

I'm having some issues with my builds for a Unifi 6 lite and I'm hoping somebody can tell me if what I'm seeing is a regression or config related.

One of the commits between 507257778c733749816a8ca611f072d07916a918 and 4fd4e9997a116d7bfc6a21bb5b8eadaa30a3a9e7 is causing issues with the mt7915e.

I first noticed when I tried the mt76 update at b474142fa834e7c3d34a25ab7a46e1e2bc6c0c16.

I haven't seen anyone mention it so I'm thinking it might be just user error. Logs/configs below.

logread (shortened due to character limit)

Fri Jun  4 05:07:47 2021 kern.notice kernel: [    0.000000] Linux version 5.10.41 (snip@snip) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 10.3.0 r16599-43dad22025) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #0 SMP Thu Jun 3 19:07:42 2021
Fri Jun  4 05:07:47 2021 kern.info kernel: [    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
Fri Jun  4 05:07:47 2021 kern.info kernel: [    0.000000] printk: bootconsole [early0] enabled
Fri Jun  4 05:07:47 2021 kern.info kernel: [    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
Fri Jun  4 05:07:47 2021 kern.info kernel: [    0.000000] MIPS: machine is Ubiquiti UniFi 6 Lite
Fri Jun  4 05:07:47 2021 kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrd
Fri Jun  4 05:07:47 2021 kern.info kernel: [    0.000000] VPE topology {2,2} total 4
Fri Jun  4 05:07:47 2021 kern.info kernel: [    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
.....
.....
Fri Jun  4 05:07:47 2021 kern.notice kernel: [    8.215196] random: crng init done
Fri Jun  4 05:07:47 2021 kern.notice kernel: [    8.218635] random: 7 urandom warning(s) missed due to ratelimiting
Fri Jun  4 05:07:47 2021 user.info kernel: [    8.270801] procd: - init -
Fri Jun  4 05:07:47 2021 user.info kernel: [    8.923422] kmodloader: loading kernel modules from /etc/modules.d/*
Fri Jun  4 05:07:47 2021 user.info kernel: [    9.040337] urngd: v1.0.2 started.
Fri Jun  4 05:07:47 2021 kern.info kernel: [    9.049299] Loading modules backported from Linux version v5.10.34-0-g0aa66717f684
Fri Jun  4 05:07:47 2021 kern.info kernel: [    9.056903] Backport generated by backports.git v5.10.34-1-0-g7b5533e1
Fri Jun  4 05:07:47 2021 kern.info kernel: [    9.080042] xt_time: kernel timezone is -0000
Fri Jun  4 05:07:47 2021 kern.info kernel: [    9.149575] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=23
Fri Jun  4 05:07:47 2021 kern.info kernel: [    9.155078] pci 0000:00:00.0: enabling device (0006 -> 0007)
Fri Jun  4 05:07:47 2021 kern.info kernel: [    9.160753] mt7603e 0000:01:00.0: enabling device (0000 -> 0002)
Fri Jun  4 05:07:47 2021 kern.info kernel: [    9.166982] mt7603e 0000:01:00.0: ASIC revision: 76030010
Fri Jun  4 05:07:47 2021 kern.info kernel: [   10.203345] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
Fri Jun  4 05:07:47 2021 kern.info kernel: [   10.208924] mt7603e 0000:01:00.0: Build Time: 20160107100755
Fri Jun  4 05:07:47 2021 kern.info kernel: [   10.251976] mt7603e 0000:01:00.0: firmware init done
Fri Jun  4 05:07:47 2021 kern.debug kernel: [   10.424684] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Fri Jun  4 05:07:47 2021 kern.info kernel: [   10.433680] mt7621-pci 1e140000.pcie: bus=2 slot=1 irq=24
Fri Jun  4 05:07:47 2021 kern.info kernel: [   10.439145] pci 0000:00:01.0: enabling device (0006 -> 0007)
Fri Jun  4 05:07:47 2021 kern.info kernel: [   10.444854] mt7915e 0000:02:00.0: enabling device (0000 -> 0002)
Fri Jun  4 05:07:47 2021 kern.info kernel: [   10.575329] mt7915e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 20201105222230a
Fri Jun  4 05:07:47 2021 kern.info kernel: [   10.575329]
Fri Jun  4 05:07:47 2021 kern.info kernel: [   10.937762] mt7915e 0000:02:00.0: WM Firmware Version: ____000000, Build Time: 20201105222304
Fri Jun  4 05:07:47 2021 kern.info kernel: [   11.137766] mt7915e 0000:02:00.0: WA Firmware Version: DEV_000000, Build Time: 20201105222323
Fri Jun  4 05:07:47 2021 user.info kernel: [   11.317292] kmodloader: done loading kernel modules from /etc/modules.d/*
Fri Jun  4 05:07:48 2021 authpriv.info dropbear[1066]: Not backgrounding
Fri Jun  4 05:07:49 2021 user.notice : Added device handler type: 8021ad
Fri Jun  4 05:07:49 2021 user.notice : Added device handler type: 8021q
Fri Jun  4 05:07:49 2021 user.notice : Added device handler type: macvlan
Fri Jun  4 05:07:49 2021 user.notice : Added device handler type: veth
Fri Jun  4 05:07:49 2021 user.notice : Added device handler type: bridge
Fri Jun  4 05:07:49 2021 user.notice : Added device handler type: Network device
Fri Jun  4 05:07:49 2021 user.notice : Added device handler type: tunnel
Fri Jun  4 05:07:50 2021 daemon.notice wpa_supplicant[1165]: Successfully initialized wpa_supplicant
Fri Jun  4 05:07:50 2021 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/dhcp
Fri Jun  4 05:07:50 2021 user.notice ucitrack: Setting up /etc/config/wireless reload dependency on /etc/config/network
Fri Jun  4 05:07:50 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/luci-splash
Fri Jun  4 05:07:50 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/qos
Fri Jun  4 05:07:50 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/miniupnpd
Fri Jun  4 05:07:50 2021 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/odhcpd
Fri Jun  4 05:07:51 2021 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Fri Jun  4 05:07:51 2021 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Fri Jun  4 05:07:51 2021 daemon.warn netifd: You have delegated IPv6-prefixes but haven't assigned them to any interface. Did you forget to set option ip6assign on your lan-interfaces?
Fri Jun  4 05:07:51 2021 kern.info kernel: [   15.785280] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
Fri Jun  4 05:07:51 2021 kern.info kernel: [   15.801045] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
Fri Jun  4 05:07:51 2021 kern.info kernel: [   15.809325] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Fri Jun  4 05:07:51 2021 kern.info kernel: [   15.813583] mt7530 mdio-bus:1f lan: configuring for phy/gmii link mode
Fri Jun  4 05:07:51 2021 kern.info kernel: [   15.824971] 8021q: adding VLAN 0 to HW filter on device lan
Fri Jun  4 05:07:51 2021 kern.info kernel: [   15.834574] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Fri Jun  4 05:07:51 2021 kern.info kernel: [   15.841785] br-lan: port 1(lan) entered blocking state
Fri Jun  4 05:07:51 2021 kern.info kernel: [   15.847136] br-lan: port 1(lan) entered disabled state
Fri Jun  4 05:07:51 2021 kern.info kernel: [   15.853513] device lan entered promiscuous mode
Fri Jun  4 05:07:51 2021 kern.info kernel: [   15.858111] device eth0 entered promiscuous mode
Fri Jun  4 05:07:51 2021 daemon.notice netifd: Interface 'lan' is enabled
Fri Jun  4 05:07:51 2021 daemon.notice netifd: Interface 'lan' is setting up now
Fri Jun  4 05:07:51 2021 daemon.notice netifd: Interface 'lan' is now up
Fri Jun  4 05:07:51 2021 daemon.notice netifd: Interface 'loopback' is enabled
Fri Jun  4 05:07:51 2021 daemon.notice netifd: Interface 'loopback' is setting up now
Fri Jun  4 05:07:51 2021 daemon.notice netifd: Interface 'loopback' is now up
Fri Jun  4 05:07:51 2021 daemon.notice netifd: Network device 'eth0' link is up
Fri Jun  4 05:07:51 2021 daemon.notice netifd: Network device 'lo' link is up
Fri Jun  4 05:07:51 2021 daemon.notice netifd: Interface 'loopback' has link connectivity
Fri Jun  4 05:07:51 2021 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/luci_statistics
Fri Jun  4 05:07:51 2021 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/dhcp
Fri Jun  4 05:07:51 2021 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Fri Jun  4 05:07:52 2021 daemon.info procd: - init complete -
Fri Jun  4 05:07:52 2021 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Fri Jun  4 05:07:52 2021 kern.info kernel: [   17.323675] br-lan: port 2(wlan0) entered blocking state
Fri Jun  4 05:07:52 2021 kern.info kernel: [   17.329083] br-lan: port 2(wlan0) entered disabled state
Fri Jun  4 05:07:52 2021 kern.info kernel: [   17.335172] device wlan0 entered promiscuous mode
Fri Jun  4 05:07:52 2021 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Fri Jun  4 05:07:52 2021 kern.info kernel: [   17.447757] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Fri Jun  4 05:07:52 2021 kern.info kernel: [   17.454588] br-lan: port 2(wlan0) entered blocking state
Fri Jun  4 05:07:52 2021 kern.info kernel: [   17.459920] br-lan: port 2(wlan0) entered forwarding state
Fri Jun  4 05:07:52 2021 kern.info kernel: [   17.466923] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Fri Jun  4 05:07:52 2021 daemon.notice netifd: bridge 'br-lan' link is up
Fri Jun  4 05:07:52 2021 daemon.notice netifd: Interface 'lan' has link connectivity
Fri Jun  4 05:07:52 2021 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->ENABLED
Fri Jun  4 05:07:52 2021 daemon.notice hostapd: wlan0: AP-ENABLED
Fri Jun  4 05:07:53 2021 daemon.info urandom_seed[1940]: Seed saved (/etc/urandom.seed)
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.734798] ------------[ cut here ]------------
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.739582] WARNING: CPU: 2 PID: 2029 at backports-5.10.34-1/net/mac80211/main.c:114 ieee80211_hw_config+0x354/0x398 [mac80211]
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.751079] control:2097160.001 MHz width:0 center: 5180.000/0 MHz
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.751088] Modules linked in: iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD nf_nat nf_flow_table nf_conntrack mt7915e mt7603e mt76 mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_filter ip_tables compat nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 leds_gpio gpio_button_hotplug
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.802993] CPU: 2 PID: 2029 Comm: iw Not tainted 5.10.41 #0
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.808631] Stack : 809b0000 00000000 00000000 8008079c 80840000 8073b29c 00000000 00000000
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.816979]         828599e4 80990000 8070a18c 816f1568 807ccdc7 00000001 82859988 c186b61f
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.825327]         00000000 00000000 8070a18c 82859828 ffffefff 00000000 ffffffea 00000000
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.833674]         82859834 0000011d 807d2788 ffffffff 80000000 00000001 00000000 80710000
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.842022]         00000009 8084a660 00000000 00000000 00000018 803e6a70 00000008 80990008
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.850368]         ...
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.852809] Call Trace:
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.855270] [<800080e0>] show_stack+0x30/0x100
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.859703] [<80365528>] dump_stack+0x9c/0xcc
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.864064] [<8002d08c>] __warn+0xcc/0x140
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.868144] [<8002d18c>] warn_slowpath_fmt+0x8c/0xac
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.873190] [<82a01e28>] ieee80211_hw_config+0x354/0x398 [mac80211]
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.879481] [<82a238a4>] ieee80211_nan_func_match+0x2624/0x4d20 [mac80211]
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.886371]
Fri Jun  4 05:07:53 2021 kern.warn kernel: [   17.888026] ---[ end trace f7ff418da29c7531 ]---
Fri Jun  4 05:07:53 2021 daemon.notice netifd: radio1 (1492): ./mac80211.sh: eval: line 1: 1=0: not found
Fri Jun  4 05:07:53 2021 daemon.notice netifd: radio1 (1492): ./mac80211.sh: eval: line 1: 1=0: not found
Fri Jun  4 05:07:53 2021 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy1.conf (phy wlan1) --> new PHY
Fri Jun  4 05:07:53 2021 daemon.err hostapd: Could not set interface wlan1 flags (UP): Out of memory
Fri Jun  4 05:07:53 2021 daemon.err hostapd: nl80211: Could not set interface 'wlan1' UP
Fri Jun  4 05:07:53 2021 daemon.notice hostapd: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Fri Jun  4 05:07:53 2021 daemon.err hostapd: nl80211 driver initialization failed.
Fri Jun  4 05:07:53 2021 daemon.notice hostapd: wlan1: CTRL-EVENT-TERMINATING
Fri Jun  4 05:07:53 2021 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan1 wasn't started
Fri Jun  4 05:07:53 2021 daemon.notice netifd: radio1 (1492): Command failed: Invalid argument
Fri Jun  4 05:07:53 2021 daemon.notice netifd: radio1 (1492): Device setup failed: HOSTAPD_START_FAILED
Fri Jun  4 05:07:54 2021 daemon.notice netifd: Network device 'wlan0' link is up
Fri Jun  4 05:07:55 2021 kern.info kernel: [   19.972882] mt7530 mdio-bus:1f lan: Link is Up - 1Gbps/Full - flow control rx/tx
Fri Jun  4 05:07:55 2021 kern.info kernel: [   19.980323] br-lan: port 1(lan) entered blocking state
Fri Jun  4 05:07:55 2021 kern.info kernel: [   19.985499] br-lan: port 1(lan) entered forwarding state
Fri Jun  4 05:07:55 2021 daemon.notice netifd: Network device 'lan' link is up

/etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
        option band '2g'
        option htmode 'HT40'
        option hwmode '11g'
        option country 'AU'
        option cell_density '0'
        option noscan '1'
        option channel '13'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option wds '1'
        option ssid 'snip'
        option encryption 'sae-mixed'
        option key 'snip'
        option ieee80211w '1'
        option wpa_disable_eapol_key_retries '1'

config wifi-device 'radio1'
        option type 'mac80211'
        option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
        option channel '36'
        option band '5g'
        option htmode 'HE80'
        option hwmode '11a'
        option country 'AU'
        option cell_density '0'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option wds '1'
        option ssid 'snip'
        option encryption 'sae-mixed'
        option key 'snip'
        option ieee80211w '1'
        option wpa_disable_eapol_key_retries '1'

/etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option packet_steering '1'
        option ula_prefix 'fdbe:6077:eb6c::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.5'
        option netmask '255.255.255.0'
        option delegate '0'

@nbd any chance you could look at this?

I met these issues too on my CR6606 (MT6721+MT7915e), the same issue is mentioned in here https://github.com/openwrt/mt76/issues/545 by @ptpt52

1 Like

Thanks. I just noticed that too. Added a note to the issue.

Fixed in the latest version

1 Like

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