Exemple #1
0
 private void SetEncryptionType(Wireless80211.EncryptionType encryptionType)
 {
     Log.Comment("Setting encryption type to " + m_encryptionType[(int)encryptionType]);
     m_wireless.Encryption = encryptionType;
     Log.Comment("Calling SaveConfiguration to save the encryption type");
     Wireless80211.SaveConfiguration(new Wireless80211[] { m_wireless }, true);
 }
Exemple #2
0
        private MFTestResults VerifyEncryptionType(Wireless80211.EncryptionType encryptionType)
        {
            m_wireless = FindWireless80211();
            Log.Comment("Verifying encryption type is set to " + m_encryptionType[(int)encryptionType]);
            Wireless80211.EncryptionType currentValue = m_wireless.Encryption;
            Log.Comment("Encryption type we get is " + m_encryptionType[(int)currentValue]);
            if (currentValue == encryptionType)
            {
                Log.Comment("Returning a pass since " + m_encryptionType[(int)encryptionType]
                            + " == " + m_encryptionType[(int)currentValue]);
                return(MFTestResults.Pass);
            }

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