public bool SetInterface(Guid interfaceId) { bool status = false; foreach (WlanClient.WlanInterface intf in AvalibleWlanInterfaces) { if (intf.InterfaceGuid != interfaceId) continue; //We've found the interface WlanInterface = intf; status = true; } return status; }
public bool SetInterface(string interfaceName) { bool status = false; foreach (WlanClient.WlanInterface intf in AvalibleWlanInterfaces) { if (intf.InterfaceDescription != interfaceName) continue; //We've found the interface WlanInterface = intf; status = true; } return status; }