openmrn
openmrn copied to clipboard
Ensures that we don't start STA wifi when AP-only is requested.
This PR fixes codepaths that accidentally started STA mode wifi when AP-only mode was requested.
That's fine, but then if you want to scan, you need to start in APSTA mode, not in AP mode.
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.