Skip to content

Conversation

scaprile
Copy link
Collaborator

@scaprile scaprile commented Sep 8, 2025

Introduce a mif "protocol" handler to take care of driver events before calling userland.
This allows removing IP address switchover when moving from Access Point mode to Station mode in Wi-Fi devices, to be hidden inside Mongoose, cleaning up user handlers from non-trivial stuff.

Also, add profiling support for this.

Wi-Fi config stuff now belongs to a new struct, driver data structs embed it. This will allow having a single piece of code, though now each driver has its own.

NOTE: Pico W and Pico 2 W tests fail due to Wizard code not including this, we copy this mongoose.[ch] but main.c at the Wizard repo uses the former way of handling Wi-Fi.

@scaprile scaprile requested review from cpq and robertc2000 September 8, 2025 19:20
@scaprile scaprile merged commit c1ef477 into master Sep 9, 2025
59 of 63 checks passed
@scaprile scaprile deleted the wifi branch September 9, 2025 17:29
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.

2 participants