Skip to content

src/cyw43_ctrl: Fix STA teardown to deinit tcpip & clear itf_state.#145

Merged
dpgeorge merged 1 commit intogeorgerobotics:mainfrom
saramaxyz:main
Feb 20, 2026
Merged

src/cyw43_ctrl: Fix STA teardown to deinit tcpip & clear itf_state.#145
dpgeorge merged 1 commit intogeorgerobotics:mainfrom
saramaxyz:main

Conversation

@prafulfillment
Copy link
Copy Markdown
Contributor

Previously the deactivate branch of cyw43_wifi_set_up() only handled AP teardown.

Deactivating STA left itf_state bit 0 set and skipped cyw43_cb_tcpip_deinit(), so re-activating STA after AP mode would not call cyw43_cb_tcpip_init() or netif_set_default(), causing EHOSTUNREACH.

Previously the deactivate branch of cyw43_wifi_set_up() only handled AP teardown.

Deactivating STA left itf_state bit 0 set and skipped cyw43_cb_tcpip_deinit(),
so re-activating STA after AP mode would not call cyw43_cb_tcpip_init()
or netif_set_default(), causing EHOSTUNREACH.

Signed-off-by: Praful Mathur <praful.mathur@gmail.com>
@kwagyeman
Copy link
Copy Markdown

@dpgeorge

Copy link
Copy Markdown

@dpgeorge dpgeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, this is the right fix.

I tested on RPI_PICO2_W and PYBD_SF6 and did not see any issues.

@dpgeorge dpgeorge merged commit 055d642 into georgerobotics:main Feb 20, 2026
3 of 5 checks passed
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.

3 participants