Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
service: Do complete state transition on disconnect with error code.
Normally, connman_agent_report_error() will report -EINPROGRESS. In this case we return early from service_indicate_state() and miss to call __connman_notifier_disconnect(). By missing to call __connman_notifier_disconnect() we end up in an inconsistent state machine. This was observed when wpa_supplicant reported a disconnect with reason code 1 (blocked) and connman_agent_reported_error() return -EINPROGRESS. Reported and tested by Henrik Persson.
- Loading branch information