Skip to content

mtk-bwmod v2.0

Choose a tag to compare

@Elvandito Elvandito released this 13 Jun 05:51
e481659

[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=0 if no WiFi
  • ip route rebuilt on every boot to ensure correct priority

[24] DSCP Traffic Marking

  • iptables -t mangle marks 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 AP
  • prefer_5ghz=1, prefer_6ghz=1 — band preference
  • ampdu=1 — AMPDU at supplicant level
  • roam_rssi_threshold=-75 — aggressive roam threshold
  • reassociate — 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 queue
  • txq quantum=3028 — fair scheduling quantum
  • retry short=7 long=4 — retry more on busy channels
  • rts 2347 — disable RTS/CTS overhead
  • power_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 class
  • throttle.disable=1 — bypass UE-initiated throttle
  • lte_ul_power_headroom=3 — signal better UE capability to eNB
  • nr_qos_flow=1, nr_reflective_qos=1, nr_fgqos_enable=1 — 5G QoS flow negotiation