IPQ4019: Adding support for TP-Link Deco M5

Hello everyone.

I have spend a few hours tonight to try and wrap my head around how to get this working but i am not getting very far. Over the span of almost 3 years this thread has gotten really long and a lot of different github repos are posted. Is there anyone that has or can create a quick sumary of what github repo's should be used for which devices?

I am currently trying to install openwrt on a eu/3.2 but i have no idea what is meant with "The XMC patch from sb0037" in the post i am replying to.


I've compiled this one for my M5 v3 EU version (+ added the XMC patch according to post #299). Everything works great thus far - finally proper DSA networking, with fully functional VLANs (both wireless & LAN). THANK YOU

Now - how do we make it to land in the master branch (and be officially included in OpenWRT)? :slight_smile:


Also compiled m5v3 with the xmc patch and most things work wonderfully. Best yet - a previous build failed to communicate with my modem. No issues this time.

However, i'm struggling to setup a mesh. I've installed dpad-mesh-openssl and have the following on both decos:

config wifi-iface 'mesh'
option network 'lan'
option device 'radio0'
option disabled '0'
option mode 'mesh'
option mesh_id 'my-mesh'
option encryption 'none'
option key 'qwerty1234'
option mesh_fwding '1'
option mesh_rssi_threshold '0'

Deco 2 is set as DHCP Client.
Maximum transmit power shows: Current power: 0 dBm and no sign of any connection between them.

the fact that it is on 0.000 Ghz is probably the issue but i'm not sure how to fix this
Mode: Mesh Point | SSID: ?
BSSID: 60:A4:B7:14:3C:C2
Encryption: None
Channel: 1 (0.000 GHz)
Tx-Power: 0 dBm
Signal: 0 dBm | Noise: -101 dBm
Bitrate: 0.0 Mbit/s

Is this my config, or an issue with the branch?


Please submit all patch to master openwrt branch so we can get automatic build and more community support.

1 Like

Your config looks good as far as I can tell, so it's either missing packages (looking at the system log might help?) or the branch you're using.

On the branch I made (https://github.com/DropDemBits/openwrt/), I'm using wpad-basic-mbedtls and it seems to work well, though I've ran into an issue where decos on the frankveltmans firmware version couldn't connect to the decos on the newer firmware version.

Note that the board names are slightly different (i.e. the common Deco M5 board name has been split into a separate v1 and v3 version) since I made this branch with the hope of eventually upstreaming it and tried to address most of the PR comments on oklona's PR.

1 Like

Thank you, I've compiled and run your branch without any changes and works perfectly with unencrypted mesh. However, when changing to WPA3-SAE it no longer works, i believe this is because the basic doesn't support WPA3-SAE.

I tried using wpad-mesh-mbedtls but it updates a number of other packages which unfortunately stops the mesh working completely

Have you manged an encrypted connection?

Oh! I was wondering why it was saying "Encryption: None" on my mesh wireless network, thanks for noticing!

I haven't managed to get an encrypted connection yet, but at least according to https://openwrt.org/docs/guide-user/network/wifi/mesh/80211s#config the other wpad-* versions should be removed too. I prefer doing this via make menuconfig since I'd need to update all 3 nodes anyway, though a temporary connection over the lan port should suffice too.

Thanks again for your help, I compiled using the wpad-mesh-mbedtls by selecting it in makemenu (and removing the basic). Previously I was loading via Luci System/Software - that didn't work.

So far everything is working perfectly. Flawless. Over the moon. Thank you!

1 Like


This is my first post.
Im a potential new user to openwrt.
I've read this thread with great interest.
I own the m5 v3 eu version and would love to try openwrt on it.

Im confused on the openwrt state of this product.
I see people write about adding it to the main upstream version of openwrt. I even see a accepted commit for it. But people are still compiling different versions.

Will there be a generic firmware in the near future?
Or should i pull up my sleeves and try to learn how to compile and go down the rabbit hole?



hi, for now you'd need to compile. Scroll back for instructions and examples on how to do it, have a happy journey!

I managed to compile a working firmware using DropDemBits repo (https://github.com/DropDemBits/openwrt/) using the default branch (Deco-M5-main) and the build instructions from [OpenWrt Wiki] Build system usage.

When running make menuconfig make the following changes:

  • Set Target Profile to "TP-Link Deco-M5 v1/2/3" (check your version)
  • Go to Network -> WirelessAPD and unselect "wpad-basic" and select "wpad-mesh-mbedtls"

When building has completed your can flash the *-factory.bin file in bin/targets/ipq40xx/generic to your device.

@DropDemBits : i just compiled your build and it is working perfectly so far.

I m using multiple VLAN and SSID

Thank you very much.

1 Like

Nice fix that reduce ping that should be integrated to master : https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=b8e52852bd62236a2a84663b4592d221ebc64cb4

1 Like