openmrn icon indicating copy to clipboard operation
openmrn copied to clipboard

Ensures that we don't start STA wifi when AP-only is requested.

Open balazsracz opened this issue 1 year ago • 2 comments

This PR fixes codepaths that accidentally started STA mode wifi when AP-only mode was requested.

balazsracz avatar Feb 10 '24 02:02 balazsracz

That's fine, but then if you want to scan, you need to start in APSTA mode, not in AP mode.

balazsracz avatar Feb 10 '24 03:02 balazsracz

That breaks existing user code that expects WiFi scan to work when operating in AP mode. It's not as simple as changing the mode since that would attempt to start STA mode and rightfully crash during init. I'm fine with not creating the AP / STA interface up front but it would still be good to support scanning while in AP mode as part of a reconfiguration tool.

atanisoft avatar Feb 10 '24 03:02 atanisoft