fix(reliability): explicit hop baseline restore, immune to stale pager snapshot

This commit is contained in:
2026-08-22 19:37:57 -06:00
parent 712d381093
commit 132cf4d77a
2 changed files with 16 additions and 10 deletions
@@ -4797,14 +4797,18 @@ def health_check():
except Exception:
pass
# Restore the hopping baseline unless a Mark VIII role/attack holds
# the pause intentionally (_resume_hop self-guards against fighting a
# live Pager hop enable).
# the pause intentionally. Deliberately bypasses _resume_hop(): its
# pager-snapshot may carry a stale hop=0 captured while the old boot
# guard forced the value, which would silently keep 5 GHz pinned.
# Baseline policy: idle system => wlan1mon hops.
if not _HOP_PAUSE_HELD:
try:
before = _read_hop()
if before == '0':
if before != '1':
import mk8_events
_resume_hop()
device_run(['uci', 'set', 'pineapd.wlan1mon.hop=1'])
device_run(['uci', 'commit', 'pineapd'])
device_run(['/etc/init.d/pineapd', 'reload'], timeout=30)
mk8_events.log_event(
'guard_fix',
msg='restored wlan1mon.hop baseline (was %s)' % before)