fix(reliability): converge runtime on uplink revert; bound health endpoint cost (I3,I4)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user