/// <summary> /// Attempt to connect to the access point using an existing profile. /// </summary> public void Connect(string profileXML) { if (HasProfile) { _interface.DeleteProfile(Name); } _interface.SetProfile(WlanProfileFlags.AllUser, profileXML, true); _interface.Connect(WlanConnectionMode.Profile, _network.dot11BssType, Name); }
internal bool Process() { if (!IsPasswordValid) { return(false); } string profileXML = ProfileFactory.Generate(_network, Password); _interface.SetProfile(WlanProfileFlags.AllUser, profileXML, true); return(!_isEAPStore || SaveToEAP()); }
/// <summary> /// Crates the wireless network profile and saves /// </summary> /// <returns>Returns true if it is successfully else returns false</returns> internal bool Process() { if (!IsPasswordValid) { return(false); } string profileXML = ProfileFactory.Generate(_network, Password); _wlanInterface.SetProfile(WlanProfileFlags.AllUser, profileXML, true); if (IsDomainSupported && !SaveToEAP()) { return(false); } return(true); }
internal bool Process() { if (!IsPasswordValid) { return(false); } string profileXML = ProfileFactory.Generate(_network, _password, _ssidBroadcast); _interface.SetProfile(WlanProfileFlags.AllUser, profileXML, true); if (_isEAPStore && !SaveToEAP()) { return(false); } return(true); }
public bool Process() { if (!IsPasswordValid) { return(false); } profileXML = ProfileFactory.Generate(_network, _password); try { _interface.SetProfile(WlanProfileFlags.AllUser, profileXML, true); } catch (Exception e) { // throw new Exception(e.Message); } if (_isEAPStore && !SaveToEAP()) { return(false); } return(true); }