i open a new thread about the driver support for the bpi wifi7 card for r4…
bpi source is not compilable by me, also tried mapping the mt76 code with bpi patches into a newer kernel…so the mt76 repo is only for reference (easier than looking through a bunch of patches)
my current state is that i can load the right firmware with mainline-kernel, but i only see 2 interfaces (2.4G and 6G…5GHz is missing).
at least with the right firmware there are no more message timeouts flooding the console
any help is welcome maybe anyone knows why i only see 2 phy
Is it possible that, like the 7916, the 6ghz and 5ghz share the same phy? Have you double checked that the reg domain allows 5ghz where it’s set at? I remember another card having a safety measure where it didn’t allow the 5ghz and 6ghz at the same time, maybe the ax210?
tried up2date openwrt from source and replaced firmware with the 233 variant…there i do not see the trace,but get message timeouts after enabling the wifi in /etc/config/wireless and restarting it (/etc/init.d/network restart) and do only see 1 phy
[ 139.101455] br-lan: port 5(phy1-ap0) entered blocking state
[ 139.107019] br-lan: port 5(phy1-ap0) entered forwarding state
[ 139.113444] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 139.120341] device phy1-ap0 left promiscuous mode
[ 139.125089] br-lan: port 5(phy1-ap0) entered disabled state
[ 141.848340] mt7530-mmio 15020000.switch wan: Link is Up - 1Gbps/Full - flow control rx/tx
[ 159.847385] mt7996e 0000:01:00.0: Message 001a0034 (seq 15) timeout
[ 159.854297] br-wan: port 1(wan) entered blocking state
[ 159.859462] br-wan: port 1(wan) entered forwarding state
[ 159.864886] IPv6: ADDRCONF(NETDEV_CHANGE): br-wan: link becomes ready
[ 180.327388] mt7996e 0000:01:00.0: Message 0012002b (seq 1) timeout
[ 200.807387] mt7996e 0000:01:00.0: Message 0012002b (seq 2) timeout
after a reboot it looks better, but not perfect
11: phy1-ap0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether 00:0c:43:26:60:12 brd ff:ff:ff:ff:ff:ff
12: phy0-ap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 00:0c:43:26:60:10 brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:43ff:fe26:6010/64 scope link
valid_lft forever preferred_lft forever
/* tri-band support */
if (band <= MT_BAND2 && dev->chip_sku)
return true;
thats what i try now and i see 3 interfaces now
10: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:0c:43:26:60:10 brd ff:ff:ff:ff:ff:ff
11: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:0c:43:26:60:11 brd ff:ff:ff:ff:ff:ff
12: wlan2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:0c:43:26:60:12 brd ff:ff:ff:ff:ff:ff
but all bring a warning in mac80211, when i try to set them up
WARNING: CPU: 2 PID: 3234 at net/mac80211/main.c:270 ieee80211_hw_conf_init+0x128/0x130 [mac80211]
in downstream this was added to mt7996_config (main.c)
if (changed & IEEE80211_CONF_CHANGE_CHANNEL) {
+ if (!mt76_testmode_enabled(phy->mt76) && !phy->mt76->test.bf_en) {
+ ret = mt7996_mcu_edcca_enable(phy, true);
+ if (ret)
+ return ret;
+ }
this function is only in downstream, but i do not understand what exactly it does (looks like some checks for reg-domain)…added it with all depencies i found, but still the warning…
it looks like the warning is caused by the mt7996_mcu_set_txpower_sku call in mt7996_config…
Current state is that it looks like that the special firmware for the module (_233) is not compatible with mainline code…contacted mtk (person who upstreamed current firmware)