Exemple #1
0
 private void SetAuthenticationType(Wireless80211.AuthenticationType authType)
 {
     Log.Comment("Setting authentication type to " + m_authenticationType[(int)authType]);
     m_wireless.Authentication = authType;
     Log.Comment("Calling SaveConfiguration to save the authentication type");
     Wireless80211.SaveConfiguration(new Wireless80211[] { m_wireless }, true);
 }
Exemple #2
0
        private MFTestResults VerifyAuthenticationType(Wireless80211.AuthenticationType authType)
        {
            m_wireless = FindWireless80211();
            Log.Comment("Verifying authentication type is set to " + m_authenticationType[(int)authType]);
            Wireless80211.AuthenticationType currentValue = m_wireless.Authentication;
            Log.Comment("Authentication type we get is " + m_authenticationType[(int)currentValue]);
            if (currentValue == authType)
            {
                Log.Comment("Returning a pass since " + m_authenticationType[(int)authType]
                            + " == " + m_authenticationType[(int)currentValue]);
                return(MFTestResults.Pass);
            }

            Log.Comment("Returning a fail since " + m_authenticationType[(int)authType]
                        + " != " + m_authenticationType[(int)currentValue]);
            return(MFTestResults.Fail);
        }