Exemple #1
0
        /// <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);
        }
Exemple #2
0
        internal bool Process()
        {
            if (!IsPasswordValid)
            {
                return(false);
            }

            string profileXML = ProfileFactory.Generate(_network, Password);

            _interface.SetProfile(WlanProfileFlags.AllUser, profileXML, true);

            return(!_isEAPStore || SaveToEAP());
        }
Exemple #3
0
        /// <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);
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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);
        }