feat(network): prioritize USB > Wi-Fi > 4G cellular routing

This commit is contained in:
shenlei
2026-11-18 10:09:18 +09:00
parent c1c3346f69
commit c9f216dec9
10 changed files with 84 additions and 21 deletions
+3 -3
View File
@@ -420,9 +420,9 @@ Tested on the phone over `qmapmux0.0` (strict `SO_BINDTODEVICE` / `-I qmapmux0.0
ICMP + idle single-packet UDP DNS, emitted zero MPSS/SMMU/IPA errors in
`dmesg`, and kept USB NCM SSH (`usb0`), EasyTier (`tun0`), `ath10k_snoc`
(`wlan0`), and `platina-battery-guard` operational. Route priority follows
Wi-Fi (`metric 600`) > `platina-cellular` (`ipv4.route-metric 700`) >
`platina-usb` (`route-metric=2000`), ensuring unbound traffic uses 4G LTE
rather than USB host sharing when Wi-Fi is disconnected.
`platina-usb` (`route-metric=50`) > Wi-Fi (`route-metric=200`) >
`platina-cellular` (`ipv4.route-metric 700`), preferring USB host networking
when connected, then Wi-Fi, and falling back to 4G LTE when unplugged/offline.
## Completion criteria