Skip to content

Conversation

@shahpiyushv
Copy link
Contributor

when already in provisioning mode

Checklist

  • Component contains License
  • Component contains README.md
  • Component contains idf_component.yml file with url field defined
  • Component was added to upload job
  • Component was added to build job
  • Optional: Component contains unit tests
  • CI passing

Change description

If firmware has already called network_prov_mgr_reset_wifi_sm_state_on_failure() or network_prov_mgr_reset_thread_sm_state_on_failure(), the device state is already reset to provisioning mode. The prov-ctrl handler now returns success in this case instead of an invalid state error, allowing phone apps to successfully reset even if the firmware has already performed the reset operation. Without this change, the phone apps get an error unnecessarily since they have no way to know if the firmware has called the reset.

…hen already in provisioning mode

If firmware has already called network_prov_mgr_reset_wifi_sm_state_on_failure()
or network_prov_mgr_reset_thread_sm_state_on_failure(), the device state is already
reset to provisioning mode. The prov-ctrl handler now returns success in this case
instead of an invalid state error, allowing phone apps to successfully reset even
if firmware has already performed the reset operation.
@shahpiyushv shahpiyushv deleted the bugfic/network-prov-ctrl branch December 15, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant