Skip to content

wifi: rekey the GTK every 10 min (repeater lost broadcasts after its own reboot) - #185

Merged
Cd1s merged 2 commits into
mainfrom
fix/wifi-gtk-rekey-repeater
Nov 19, 2026
Merged

Cd1s merged 2 commits into
mainfrom
fix/wifi-gtk-rekey-repeater

Conversation

@Cd1s

@Cd1s Cd1s commented Nov 19, 2026

Copy link
Copy Markdown
Owner

A MAC-translating repeater (RAX40) on the 5 GHz AP lost group-addressed frames after its own reboot and re-associations: its wired clients saw no DHCP OFFER and no broadcast ARP reply, while unicast kept working. Once it healed by itself after ~2.5 min; once it lasted until rc-service mr-hostapd restart (fresh association + new GTK). hostapd's CCMP default rekeys the GTK once a day.

  • mr renders wpa_group_rekey=600 in every encrypted BSS (hostapd's default before 2.10): a new GTK every 10 min, the restart-free half of that remedy; stations stay associated.
  • Ruled out on the live router: image version (Wi-Fi files byte-identical v0.5.0/v0.5.1), AP uptime, AKM 6 / PMF, beacon protection, GTK RSC (mt76 has no get_key_seq). An AP-side deauth with an unchanged GTK reconnects fine.
  • Verified live: four rekeys, every station (repeater included) completed the group key handshake, none dropped; broadcasts behind the repeater stayed up for 30+ min.
  • Tests: home goldens + lab render check (fail without the fix); sh tools/ci.sh green.
  • Docs: troubleshooting note in docs/modules/wifi.md.

🤖 Generated with Claude Code

Cd1s and others added 2 commits November 19, 2026 00:18
…s broadcasts back

A MAC-translating repeater (RAX40) that re-associates without rebooting is handed
the GTK it already holds and then drops every group-addressed frame: its wired
clients see DHCP OFFERs stop arriving and broadcast ARP gets no reply, while
unicast keeps working. hostapd's CCMP default rekeys once a day, so only a hostapd
restart (new GTK) brought them back.

Render wpa_group_rekey=600 (hostapd's default before 2.10) in every encrypted BSS.
That bounds the outage to one rekey interval, with no restart and no client drop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The live repro on 2026-11-18 showed that the repeater does not lose broadcasts
just from re-associating with an unchanged GTK: an AP-side deauth plus reconnect
stayed fine. The loss follows the repeater's own reboot and re-associations. Once
it lasted ~2.5 min and healed by itself; once it lasted until a hostapd restart
(fresh association + new GTK). Comment, test comment and the troubleshooting
note now say that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Cd1s
Cd1s merged commit b818209 into main Nov 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant