mtk-bwmod v2.0
[v2.0] — Bandwidth Priority & AP/BS Negotiation
Added
[23] Route Metric Priority
- WiFi preferred:
wlan0 metric=0,rmnet metric=200 - Mobile-only fallback:
rmnet metric=0if no WiFi ip routerebuilt on every boot to ensure correct priority
[24] DSCP Traffic Marking
iptables -t manglemarks outgoing packets per traffic class- AP/router reads DSCP and queues accordingly
| Class | DSCP | Ports | Traffic |
|-------|------|-------|---------|
| EF | 46 | 5060/5061 SIP, 53 DNS, 443 QUIC, RTP 16384-32767 | VoIP, video call |
| AF41 | 34 | 80/443/8080 HTTP/S | Streaming, bulk TCP |
[25] wpa_cli AP Negotiation
Forces wpa_supplicant to re-negotiate with AP at boot:
rrm_neighbor_rep_request— 802.11k neighbor report from APprefer_5ghz=1,prefer_6ghz=1— band preferenceampdu=1— AMPDU at supplicant levelroam_rssi_threshold=-75— aggressive roam thresholdreassociate— re-associate with updated parameters
[26] iw Kernel WiFi Driver Tuning
Direct nl80211 commands bypassing WiFi HAL:
txq limit=65536,txq memory_limit=32MB— larger TX queuetxq quantum=3028— fair scheduling quantumretry short=7 long=4— retry more on busy channelsrts 2347— disable RTS/CTS overheadpower_save off— confirmed at driver level
[27] Mobile Data BS Negotiation
MTK RIL + NR QoS props:
pdn.rebuild=1— force re-setup PDN with best QoS classthrottle.disable=1— bypass UE-initiated throttlelte_ul_power_headroom=3— signal better UE capability to eNBnr_qos_flow=1,nr_reflective_qos=1,nr_fgqos_enable=1— 5G QoS flow negotiation