Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-initialize NCP on driver start after a stop (#352)
This commit contains the following changes: 1) It adds new code to restart the main proptothread from `SpinelNCPInstance::vprocess_event()` when driver is enabled again after a driver disable. This ensures internal state stays in sync with NCP and that the network is resumed if `mAutoResume` feature is enabled. 2) The code changes how the interface is taken offline when driver is disabled. It updates `NCPInstanceBase::handle_ncp_state_change()` to ensure when driver is disabled causing a transition to `COMMISSIONED` state even if `mAutoResume` is enabled, the network interface(s) are taken down. It also removes the call from `vprocess_disabled()` protothread to bring down the interface.
- Loading branch information