Rust app that lists all availible wifi networks using the windows api crashes after 1st loop
I want to get a list of the wifi networks around the system in rust on Windows.
I can successfully retrieve the Wifi adapter and scan networks.
However when I want to enumerate the available Wifi networks using WlanGetNetworkBssList
or WlanGetAvailableNetworkList
it reports it has found ~around 10 networks~ everytime but the actual list i get is only 1 item long. Here is my code: