private void SetRadioType(Wireless80211.RadioType radioType) { Log.Comment("Setting radio type to " + RadioTypeToString(radioType)); m_wireless.Radio = radioType; Log.Comment("Calling SaveConfiguration to save the radio type"); Wireless80211.SaveConfiguration(new Wireless80211[] { m_wireless }, true); }
private MFTestResults VerifyRadioType(Wireless80211.RadioType radioType) { m_wireless = FindWireless80211(); Log.Comment("Verifying radio type is set to " + RadioTypeToString(radioType)); Wireless80211.RadioType currentValue = m_wireless.Radio; Log.Comment("Radio type we get is " + RadioTypeToString(currentValue)); if (currentValue == radioType) { Log.Comment("Returning a pass since " + RadioTypeToString(radioType) + " == " + RadioTypeToString(currentValue)); return(MFTestResults.Pass); } Log.Comment("Returning a fail since " + RadioTypeToString(radioType) + " != " + RadioTypeToString(currentValue)); return(MFTestResults.Fail); }
private string RadioTypeToString(Wireless80211.RadioType radioType) { string type = ""; if (0 != (radioType & Wireless80211.RadioType.a)) { type += "A"; } if (0 != (radioType & Wireless80211.RadioType.b)) { type += "B"; } if (0 != (radioType & Wireless80211.RadioType.g)) { type += "G"; } if (0 != (radioType & Wireless80211.RadioType.n)) { type += "N"; } return(type); }