Adding OpenWrt support for Xiaomi AX3600 (Part 1)

@Ansuel, is there any problem with ipq807x-5.15-pr-wifi-offload patches? I want to combine it with bitthief offload patches. Will there be any problems? Or is it an unrealizable task for now?

Hi guys,

i'm new on this device and i just installed openwrt on my xiaomi but i don't have any funcion like WireGuard or Openvpn. When i try to install it it say "KMTUNE TAP NOT AVAILABLE" and when i try to install gives an error. can someone explain how to fix that?

Thanks

hello when i compile openwrt from bithief with shorcut-fe patch i have an error. Possible to send me your compilation that I look which patch is not correct I have the following error

thank you very much everyone

Sorry for my english

net/bridge/br_if.c:896:6: error: redefinition of 'br_dev_update_stats'

[ br_dev_update_stats(struct net_device *dev,

| ^~~~~~~~~~~~~~~~~~~

[net/bridge/br_if.c:790:6: note: previous definition of 'br_dev_update_stats' with type 'void(struct net_device *, struct rtnl_link_stats64 *)'

)make[7]: *** [scripts/Makefile.build:289: net/bridge/br_if.o] Error 1

look personally i don't think qca is the way to go ... no docs + huge effort to bring it to the latest ! .. i just found through looking their code that wifi ecm support is there however libraries are missing ! most likely because these people just not interested in documenting anything!!! so everyone just stick with @robimarko repo unless you want to have some fun fixing the spaghetti QCA mess

been having an open mind but really is overwhelming the shit they produce .... most likely as there are no docs etc!!! so keep away .. still hoping in exploiting additional nss cores and wifi acceleration though ...

Just what I said. Forget about QCA, go with Mediatek

U need to delete changes to the net/bridge/br_if.c, it was patched by another patch.

--- a/953-net-patch-linux-kernel-to-support-shortcut-fe.patch	2022-11-06 19:55:46.843435909 +0800
+++ b/953-net-patch-linux-kernel-to-support-shortcut-fe.patch	2022-11-18 22:28:46.581659095 +0800
@@ -59,37 +59,6 @@
  config ETHTOOL_NETLINK
  	bool "Netlink interface for ethtool"
  	default y
---- a/net/bridge/br_if.c
-+++ b/net/bridge/br_if.c
-@@ -777,6 +777,28 @@ void br_port_flags_change(struct net_bri
- 		br_offload_port_state(p);
- }
- 
-+void br_dev_update_stats(struct net_device *dev,
-+			 struct rtnl_link_stats64 *nlstats)
-+{
-+	
-+	struct pcpu_sw_netstats *stats;
-+
-+	/* Is this a bridge? */
-+	if (!(dev->priv_flags & IFF_EBRIDGE))
-+		return;
-+
-+	
-+	stats = this_cpu_ptr(dev->tstats);
-+
-+	u64_stats_update_begin(&stats->syncp);
-+	stats->rx_packets += nlstats->rx_packets;
-+	stats->rx_bytes += nlstats->rx_bytes;
-+	stats->tx_packets += nlstats->tx_packets;
-+	stats->tx_bytes += nlstats->tx_bytes;
-+	u64_stats_update_end(&stats->syncp);
-+}
-+EXPORT_SYMBOL_GPL(br_dev_update_stats);
-+
- bool br_port_flag_is_set(const struct net_device *dev, unsigned long flag)
- {
- 	struct net_bridge_port *p;
 --- a/net/core/dev.c
 +++ b/net/core/dev.c
 @@ -3584,9 +3584,17 @@ static int xmit_one(struct sk_buff *skb,

Merci beaucoup

I had try @Ansuel's wifi-offload patches ,but bitthief's repo using 6.1 backport. so serval patches fault.

First of all, thanks a lot of the amazing work and effort for adding openwrt support to ax3600 router.
I am quite new to openwrt, I tried to find online but didn't get to any conclusion.

Does anyone know how to activate the "Network -> Switch" option in luci dashboard?
AX3600 has VLANs support, but I don't have that option.

TLDR; OpenWRT has moved to DSA.

2 Likes

Not really, ipq807x is not DSA compatible yet - what you see is the QCA driver faking independent network cards, while they are actually on a switch. For the purpose of the old swconfig based 'switch menu', it's (almost) the same story though, there are no swconfig compatible drivers for this hardware either.

2 Likes

hi can someone teach me how to fix the problem im encountering on ax3600 stock firmware

after an auto update it is stuck to orange light already tried auto fix tool but did not work here is the log

Complex DNS request : ignored [21/11 11:03:27.742]
Message truncated (length was 8) [21/11 11:03:27.762]
Complex DNS request : ignored [21/11 11:04:30.871]
Message truncated (length was 8) [21/11 11:04:30.875]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 00:00:00:00:14:FF [21/11 12:22:22.012]
DHCP: proposed address 192.168.31.101 [21/11 12:22:22.155]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 00:00:00:00:14:FF [21/11 12:22:25.450]
DHCP: proposed address 192.168.31.101 [21/11 12:22:25.513]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 00:00:00:00:14:FF [21/11 12:22:29.456]
DHCP: proposed address 192.168.31.101 [21/11 12:22:29.554]
Complex DNS request : ignored [21/11 12:22:29.934]
Message truncated (length was 8) [21/11 12:22:29.941]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 00:00:00:00:14:FF [21/11 12:22:54.447]
DHCP: proposed address 192.168.31.101 [21/11 12:22:54.469]
Rcvd DHCP Rqst Msg for IP 0.0.0.0, Mac 00:00:00:00:14:FF [21/11 12:22:54.503]
Previously allocated address 192.168.31.101 acked [21/11 12:22:54.528]
Rcvd DHCP release Msg for IP 192.168.31.101, Mac 00:00:00:00:14:FF [21/11 12:24:06.908]
item 00:00:00:00:14:FF released [21/11 12:24:06.949]
Complex DNS request : ignored [21/11 12:26:45.491]
Message truncated (length was 8) [21/11 12:26:45.497]
Complex DNS request : ignored [21/11 12:28:55.876]
Message truncated (length was 8) [21/11 12:28:55.881]
Complex DNS request : ignored [21/11 12:31:10.205]
Message truncated (length was 8) [21/11 12:31:10.211]
Complex DNS request : ignored [21/11 12:31:22.390]
Message truncated (length was 8) [21/11 12:31:22.395]
Complex DNS request : ignored [21/11 12:34:21.799]
Message truncated (length was 8) [21/11 12:34:21.804]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 00:00:00:00:14:FF [21/11 12:39:30.375]
DHCP: proposed address 192.168.31.101 [21/11 12:39:30.413]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 00:00:00:00:14:FF [21/11 12:39:35.340]
DHCP: proposed address 192.168.31.101 [21/11 12:39:35.354]
Complex DNS request : ignored [21/11 12:39:38.347]
Message truncated (length was 8) [21/11 12:39:38.368]
Complex DNS request : ignored [21/11 12:40:44.072]
Message truncated (length was 8) [21/11 12:40:44.082]
Complex DNS request : ignored [21/11 12:41:15.706]
Message truncated (length was 8) [21/11 12:41:15.711]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 28:D1:27:4D:32:44 [21/11 17:27:27.398]
DHCP: proposed address 192.168.31.104 [21/11 17:27:27.460]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 28:D1:27:4D:32:44 [21/11 17:27:28.786]
DHCP: proposed address 192.168.31.104 [21/11 17:27:28.827]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 28:D1:27:4D:32:44 [21/11 17:27:30.795]
DHCP: proposed address 192.168.31.104 [21/11 17:27:30.819]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 28:D1:27:4D:32:44 [21/11 17:27:32.792]
DHCP: proposed address 192.168.31.104 [21/11 17:27:32.819]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac 28:D1:27:4D:32:44 [21/11 17:27:34.784]
DHCP: proposed address 192.168.31.104 [21/11 17:27:34.855]
Complex DNS request : ignored [21/11 17:27:35.620]
Message truncated (length was 8) [21/11 17:27:35.625]
Complex DNS request : ignored [21/11 17:29:19.339]
Message truncated (length was 8) [21/11 17:29:19.344]

I am pressing the reset button for approximately 8 seconds until the system LED is flashing quickly.

After a couple of seconds the flashing stops and the LED is steady orange.

But nothing happens on the screen.

When I press the button on the lower right corner the MiWiFiRepairTool just closes.

I have a problem with dropping clients with the AX3600. Anybody else having these issues? I opened a thread for that problem --> Client drops AX3600 connection . Has anybody some suggestions?

This is a little o/t in this thread, but as a quick reminder: The "Network->Switch" configuration menu was retired in OpenWrt 21. It's all done in "Network->Interfaces" and "Network->Devices" now.

OneMarcFifty's Youtube video on this topic was useful to me, it's here: https://www.youtube.com/watch?v=qeuZqRqH-ug This still works the same in OpenWrt 22.

2 Likes

Hi everyone,

Can anyone comment on the Wifi performance? I've installed this build several times but my 5G connection in a close range never goes beyond 100Mbps. However, the same distance from an stock router yields 400+Mbps. Have anyone tested wireless speeds? Is this expected?

Speed has been measured from WLAN to LAN with iperf3

I use my AX3600 (s plural) as dumb access points with a more capable (x86) router doing all the hard work.

My iperf3 numbers look good, up and down, for what I expect a WPA3 encrypted wireless device to carry across that connection. I expect much less than 20% decrease in performance vs unencrypted, btw.

All of them are far better than 300Mbit/s to the "real" router, all currently at OpenWrt SNAPSHOT r0-49ccb29.

I have no opinion on this device as a single access point or home router.

Hello, i followed your guide and all is good and now i have the 174mb partition, thank you.
From now on, in order to upgrade my device to your latest build should i use the file named sysupgrade am i correct? Thanks

I got about 700Mbps with an android pad (test with iperf3)

-----------------------------------------------------------
Server listening on 5201 (test #1)
-----------------------------------------------------------
Accepted connection from 192.168.1.179, port 36048
[  5] local 192.168.1.1 port 5201 connected to 192.168.1.179 port 36050
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  79.9 MBytes   671 Mbits/sec                  
[  5]   1.00-2.00   sec  85.6 MBytes   718 Mbits/sec                  
[  5]   2.00-3.00   sec  83.4 MBytes   700 Mbits/sec                  
[  5]   3.00-4.00   sec  85.2 MBytes   715 Mbits/sec                  
[  5]   4.00-5.00   sec  84.3 MBytes   707 Mbits/sec                  
[  5]   5.00-6.00   sec  84.5 MBytes   709 Mbits/sec                  
[  5]   6.00-7.00   sec  81.0 MBytes   679 Mbits/sec                  
[  5]   7.00-8.00   sec  86.3 MBytes   724 Mbits/sec                  
[  5]   8.00-9.00   sec  91.3 MBytes   765 Mbits/sec                  
[  5]   9.00-10.00  sec  90.1 MBytes   756 Mbits/sec                  
[  5]  10.00-10.01  sec  1.04 MBytes   723 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.01  sec   853 MBytes   714 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201 (test #2)
-----------------------------------------------------------
1 Like

yep correct

hi have you fixed your ax3600? how please teach me