We can connect to unknown wifi's using Manged wifi or simple wifi, But the main issue is how we will create profile to connect for diffrent types of wifi. How can we Differentiate wifi authentication type and Encryption type from a Unknown wifi in c#? whether it is wpa2psk or wpapsk like that....
when i tried the below code for my network which is Authentication:WPA2PSK and encryption:AES
Wlan.WlanAvailableNetwork network = networks.Where(x => x.flags.HasFlag(Wlan.WlanAvailableNetworkFlags.Connected)).FirstOrDefault();
var enc = network.dot11DefaultCipherAlgorithm.ToString();
var auth= network.dot11DefaultAuthAlgorithm.ToString();
i got result
auth="RSNA_PSK"
enc="CCMP";
But i was expecting WPA2PSK and AES.
What should i do to get this?