I have a C app on Windows 11 which connects to a wifi Hotspot A without internet connectivity using WlanConnect. It works, the connection is stable. However, let's say there is another Hotspot B in proximity which has internet connectivity and is registered in Windows as an 'auto connect' network.
I have noticed sometimes Windows will switch by itself to Hotspot B. Is this expected behavior, is there any way to diagnose the reason the switch was made? If I disconnect manually from Hotspot and relaunch the app, I get connected again to hotspot A. I just want to golf that connection as long as the hotspot is running.