Hi all,
I've been using a TL-WR902AC v3 as my travel router for a while. It has a second job too: I sometimes take my home AP off the network to do development on it, and on those days the 902AC stands in for it. That's why there's a "home" mode in this build as well.
The problem was that it rebooted randomly under load. I dug into it and it turned out not to be the board but the kernel's watermark boost. With the default vm.watermark_boost_factor=15000, the min watermark ends up at about 24.5 MB on this device (~58 MB usable). So the OOM killer started while 14.6 MB were still free. It killed collectd, then hostapd (Wi-Fi gone), then rpcd, and eventually the device went down. Setting vm.watermark_boost_factor=0 and min_free_kbytes=2048 fixed it, and gave back about 12 MB on its own. I think this probably hits other 64 MB devices too.
From there I kept going and ended up with this build:
- OpenWrt 25.12.6 plus 7 small patches:
- smaller ralink eth DMA rings, mt76x02 RX ring and printk buffer;
- the TXQ limit scaling with RAM (backport of #25733);
- the mt7603 power-save fixes from mt76;
- per-instance oom_score_adj in procd, so hostapd/netifd/dropbear are protected and uhttpd/rpcd go first if memory ever runs out.
- 128K squashfs blocks, full wpad (mbedtls), LuCI over HTTPS, no package manager, no IPv6 userspace, no collectd.
- MemAvailable went from 12 MB (24.10.1, one client) to about 39 MB. No more OOM under a 92 Mbit/s UDP flood, and throughput is unchanged: ~93 Mbit/s bridged, ~90 Mbit/s NAT with software offloading. The image is the same size as stock (6016 KB).
The other half is the mode switch. Every position of the slider gets its own network/wireless/firewall/dhcp config:
- Home (Share ETH): AP on a VLAN trunk (home, mgmt, iot, guest).
- AP (Mobile Hotspot): the travel mode. Its own LAN with DHCP. The uplink is either the hotel cable, or a hotel Wi-Fi you join from LuCI, in which case the port turns into a LAN port. Captive portals work: rebind protection is off in this mode, and you log in once from any device, since the hotel only sees the router.
- RNDIS (AP): Android USB tethering (RNDIS or CDC-NCM).
You change the active mode on the normal LuCI pages and it's saved for that position. There's a small page under System → Mode Switch to look at, apply and edit the others.
One known limit: if a Wi-Fi uplink is configured but out of range, 25.12 doesn't bring up the AP on the same radio. The wired port is LAN in that state, so you can still reach it by cable. Just disable the uplink when you leave.
Everything is here, with patches, build script, CI and a short guide: https://github.com/ysfsvm/openwrt-wr902ac-travel
I'd be happy to turn the procd oom_score_adj and the ring size changes into proper PRs if people think they're useful. Feedback is welcome, and tests on other MT7628 boards too.
I used Claude as an assistant for parts of this; the commits carry Assisted-by tags.

