fix(reliability): converge runtime on uplink revert; bound health endpoint cost (I3,I4)

This commit is contained in:
2026-08-22 16:52:29 -06:00
parent b25c98b7c7
commit 60db235f0b
5 changed files with 104 additions and 2 deletions
@@ -94,6 +94,11 @@ def set_role(role, ssid=None, psk=None):
break
if not assoc:
disable_uplink()
# UCI alone does not converge runtime: without a reload wlan1up
# keeps scanning/authenticating and pins phy1 until some unrelated
# future reload, while current_role() already reports idle.
# Converge now like the idle branch, then reapply the hop policy.
device_run(['wifi', 'reload'], timeout=60)
_resume_hop()
return {'ok': False, 'error': 'association failed; reverted'}
return {'ok': True, 'role': 'uplink', 'assoc': assoc}