Network Information MAC / SSID

May 27, 2014 at 8:33 PM
I am looking to get the proper network information for networks. Using the below calls which each gives some duplication information but not what I am looking for. There has to be a way to get the MAC from both of them however this is what I am getting:

Wlan.WlanAvailableNetwork[] ntwks = selectedInterface.GetAvailableNetworkList(Wlan.WlanGetAvailableNetworkFlags.IncludeAllAdhocProfiles);

Wlan.WlanBssEntry[] wlanBssEntries = selectedInterface.GetNetworkBssList();

Using the SSID if I foreach both can be incorrect as two or more can have the same name i.e. "linksys". I need to use the mac to join on. However it only seems to exist in the wlanBssEntries as BitConverter.ToString(wlanBssEntry.dot11Bssid)

Is there something I am missing? I would like to get n.dot11DefaultAuthAlgorithm and dot11DefaultCipherAlgorithm for the networks in wlanBssEntries by an unique Id like the MAC. I was thinking of using the name and signal strength or something similar.