private string GetRelatedMacAddress() { var wlanClient = _interface.GetWlanClient(); if (wlanClient.Interfaces == null) { return(string.Empty); } foreach (var wlanInterface in wlanClient.Interfaces) { var wlanBssEntries = wlanInterface.GetNetworkBssList(); foreach (var wlanBssEntry in wlanBssEntries) { if (IsSsidTheSame(wlanBssEntry.dot11Ssid.SSID)) { var macAddr = wlanBssEntry.dot11Bssid; return(ConvertMacAddressToStr(macAddr)); } } } return(string.Empty); }