Skip to content

MilkFlint 0.61a

Pre-release
Pre-release

Choose a tag to compare

@OddBlueDog OddBlueDog released this 11 Nov 16:33
· 61 commits to milkflint-25.12 since this release

An update to 0.52a with airtime fairness that keeps a device with a poor link from slowing everyone else down, a shorter hold-back for Wi-Fi 6 devices after a scheduled turn, multi-queue CAKE only where it helps, and eleven Wi-Fi driver fixes. Still OpenWrt 25.12.6 and still an alpha. (0.6a was tagged but never released: 0.61a is it, with the airtime card's last-minute chart timed by the router's clock.)

What's new

  • Airtime fairness by link quality, on by default. OpenWrt's own airtime fairness gives every busy device an equal share of the air, however slow its link, so one device at the edge of range can slow everyone down. MilkFlint now judges each device's link once a second by its useful rate (the rate the router sends to it at, times the share of its frames that get through) and gives the poor ones less: a device with a slow, weak or unanswering link is held back while a device with a better link has traffic waiting. Alone it still gets all of the air, and its voice and video traffic is never held. By default a held-back device's share is worked out as it goes (Auto, balanced): in proportion to its useful rate next to the devices wanting the air at that moment, so it follows the link without steps and shrinks as more devices want the air. Gentle and Strict hold slow devices back less or more, and the shares can also be set by hand. Wi-Fi → Radios & SSIDs has the settings for each band and a card showing who is using the air, each device's link and share, and the last minute, each second placed and labelled by the router's clock.
  • Pacing in the Wi-Fi driver. The firmware takes turns between devices a transmission each, so a device at a low rate holds the air most of the time, whatever its airtime weight. The mt76 fork can now hold a device's ordinary traffic back by time (tx_pace) and give it a number of tries per frame of its own (tx_tries), which airtime fairness uses.
  • A shorter hold-back after a scheduled turn. A Wi-Fi 6 access point tells the devices it schedules how long they must leave the air to it afterwards. OpenWrt's is about two seconds, which can leave a device's own sending stuck for a moment at a time while the router keeps the air busy. MilkFlint sets the shortest on first boot; each band's settings offer OpenWrt's own as well.
  • Multi-queue CAKE goes with the download speed. Each of cake_mq's queues holds its packets to its own share of the speed, so a packet can wait longer than in one CAKE, and the slower the line, the more it shows. Smart Queue's Multi-queue setting is now Automatic, On or Off: Automatic uses cake_mq from 500 Mbit/s of download and one CAKE below it.
  • CAKE drops the large GRO packets of a flow that ignores ECN marks too. It already dropped the smaller ones, but on a fast line a flow's largest packets were only marked, so the fastest flows that ignore ECN were never slowed down.
  • CAKE no longer sets a timer for every packet of a quiet link. Below its rate CAKE runs out of packets after almost every one and set its watchdog each time; now it only does when there's something to wait for.
  • Eleven Wi-Fi driver fixes from a full read of the driver: a reset could cut stations out of the driver's lists or keep a dozing device's frames back, a recovery could leave devices held as dozing, the watchdog kept querying the firmware for a radio that wasn't running, the BSS colour was lost after a firmware restart, a Wi-Fi 5 device's short guard interval was forgotten, statistics and survey queries asked the firmware more than needed, a repeated TWT request whose time had passed wasn't treated as the same agreement, a few debug reads ran without the driver's lock, and on boards without the Wi-Fi LED (GL-MT6000, EX5601-T0) mac80211 counted every frame to blink it anyway.

Where the changes come from

  • MilkFlint's own: the mt76 fork's 0139-0151, with KUnit tests; CAKE's 760-18 and 760-19, with KUnit tests; the airtime fairness service and its settings and card; the hold-back default; and Smart Queue's multi-queue choice.

Known issues

  • kmod-batman-adv isn't available. It doesn't build on this kernel, so it isn't in MilkFlint's kernel module feed and batman-adv mesh networks can't be set up for now. Kernel 6.12.114 renamed a field that the module still chooses by kernel version.

Installing

Don't keep settings. Untick "Keep settings" when you flash if coming from OpenWrt or GL.INets firmware

  • Flash only milkflint-0.61a-r33311-981c978eff-mediatek-filogic-glinet_gl-mt6000-squashfs-sysupgrade.bin below. Never a factory, preloader or bl31-uboot image.
  • From GL.iNet's firmware: System → Upgrade → Local Upgrade at http://192.168.8.1, untick "Keep Settings".
  • From MilkFlint: You can keep settings while updating
  • Then plug a cable into a LAN port and open http://192.168.1.1. There's no password yet: sign in with it empty and set one. Wi-Fi is off until you set it up on the Wi-Fi page.

To go back, flash GL.iNet's firmware the same way, again without keeping settings.

Source

Branch milkflint-25.12 at d937db2fb0. Building it is in the README.

SHA-256 of the image: 05574eebe23cba4ce2e8c1078ca467c5098bbb4621d1e662c3e4e4dfb47e728b