pub unsafe extern "C" fn otPlatInfraIfStateChanged(
aInstance: *mut otInstance,
aInfraIfIndex: u32,
aIsRunning: bool,
) -> otError
Expand description
The infra interface driver calls this method to notify OpenThread of the interface state changes.
It is fine for the platform to call to method even when the running state of the interface hasn’t changed. In this case, the Routing Manager state is not affected.
@param[in] aInstance The OpenThread instance structure. @param[in] aInfraIfIndex The index of the infrastructure interface. @param[in] aIsRunning A boolean that indicates whether the infrastructure interface is running.
@retval OT_ERROR_NONE Successfully updated the infra interface status. @retval OT_ERROR_INVALID_STATE The Routing Manager is not initialized. @retval OT_ERROR_INVALID_ARGS The @p aInfraIfIndex doesn’t match the infra interface the Routing Manager are initialized with.