Skip to content

MilkFlint 0.3a

Pre-release
Pre-release

Choose a tag to compare

@OddBlueDog OddBlueDog released this 29 Oct 20:42
· 126 commits to milkflint-25.12 since this release

An update to 0.12a for latency under load, Wi-Fi stability and Smart Queue. Still OpenWrt 25.12.6 and still an alpha.

What's new

  • Less delay while something downloads. Packets on their way to Wi-Fi devices waited less for a CPU: the Wi-Fi driver's threads may now use every CPU, and the threads that take in the internet port's packets run as soon as they wake. The internet port's packets are grouped into smaller batches (plain GRO, up to 16 KB) when Smart Queue shapes the download, and its interrupts are held back for at most 40 µs. Pings and calls during a big download stay closer to their idle times, for a little more CPU.
  • Smart Queue tames downloads that ignore congestion signals. Some servers keep sending at full speed even when Smart Queue marks their packets to slow down (ECN). Such a download is now dropped from instead of marked, as one without ECN would be, so its queue stays short. Those downloads can be a little slower; newer low-latency (L4S) traffic is left alone.
  • Changing the Wi-Fi channel or width keeps devices connected. When nothing else changed, the radio switches channel (CSA) instead of restarting, so devices don't have to join again. Backported from OpenWrt's development branch (below).
  • Wi-Fi is steadier: fixes for hostapd crashes and freezes, devices whose join could start over, and radios that didn't come back after a failed start, from OpenWrt, hostap and MilkFlint (all listed below).
  • WPA3 networks refuse a 64-digit hex password, which only works with WPA2 and left WPA3 devices unable to join.
  • UDP connections through flow offloading stay open for 3 minutes when idle, as without offloading, instead of 1.
  • Smart Queue's fraglist GRO batches keep their TTL and ECN marks on every packet when split, and pass its queue whole.
  • For troubleshooting: how many tries each Wi-Fi device's frames needed, per device, in the driver's debugfs (tx_attempts).

Backported

From OpenWrt's development branch (hostapd and wifi-scripts), with the upstream commits:

  • Channel and width changes by channel switch instead of a radio restart, when nothing else in the radio's settings changed: 55b9263 "apply channel/width changes via CSA instead of restart", with 247595e, b0d8ab4, b92df1e, c6d20bb, de79632 (John Crispin), 6a82598, d8a3d44 and part of 9f0bbef (John Crispin). A change into or out of 160 MHz, onto a channel that needs a radar check first, or together with a network change still restarts the radio.
  • hostapd's Wi-Fi network handling, by Felix Fietkau: a network deleted before it started no longer leaves a handle to freed memory (dd12867); a network add that fails early no longer frees an uninitialised pointer (b2755b0); removal events name the interface (139f147); per-device password lists are read correctly (f3ff33c); an unresolvable BSSID conflict restarts the radio as intended (f536d79); stopping wpad no longer leaves AP interfaces and ubus objects behind (06a7b02, 71611b1); a pending interface setup stops when its configuration is removed (f3371c7); a radio left off by a failed start starts again on the next Wi-Fi restart or settings save (68040c2); the ubus reconnect timer is cancelled with its context (cb66fb9).
  • hostapd patches from OpenWrt, by Felix Fietkau: a failed network add in the nl80211 driver is undone instead of being used after it was freed (198); a driver's positive netlink error no longer freezes hostapd (823); when the first network is deleted, the radio's commands go to the new first one (838); a device's repeated association request no longer restarts its 4-way handshake (820); the link state is asked for again after lost link events (074, from 7cc169f).
  • wifi-scripts: a reload during a radio's setup no longer loses or mixes up a network's bridge, isolation and multicast settings (766052b, Felix Fietkau); no more "iw phy set antenna" errors on every reconfigure (0d747a8, Florian Maurer; e21a4ef, Hideo Sumi).

From hostap (hostapd's upstream):

  • Minimum lengths of HE and EHT elements checked in the parser (b908467f46ae, Henry Yen); an out-of-bounds read of a device's HE-MCS map fixed (6cf41afd5, Brandon Arrendondo); the frame length checked before reading the authentication algorithm (8a2611102, Daniel Gabay).

MilkFlint's own hostapd fixes:

  • hostapd no longer crashes on a settings reload (adding a guest network, say) after it restarted an interface by itself, as it does after a radar detection or a failed channel switch.
  • A deleted network tells its devices it's going before it stops, instead of leaving them to notice the missing beacons.
  • A netlink reply that never comes ends the wait after 5 seconds, instead of hostapd waiting, and using a CPU, for ever.

Installing

Don't keep settings. Untick "Keep settings" when you flash, whether the router runs GL.iNet's firmware, OpenWrt or an earlier MilkFlint (from a shell: sysupgrade -n). Settings from another firmware may not match this one.

  • Flash only milkflint-0.3a-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 OpenWrt or MilkFlint: in LuCI, System → Backup / Flash Firmware → Flash image, untick "Keep settings". On MilkFlint, System → Upgrade works too.
  • 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 839e4b46a5. Building it is in the README.

SHA-256 of the image: f0711e46a852ba3b103a662310a75873f30437357236861589cad51aaad13346