Add WPA3 to sta_connect2.py

Signed-off-by: bealler <alex.beall@netexperience.com>
This commit is contained in:
bealler
2021-04-07 14:17:36 -04:00
parent b810c9165a
commit ead8030183

View File

@@ -29,6 +29,7 @@ OPEN="open"
WEP="wep"
WPA="wpa"
WPA2="wpa2"
WPA3 = "wpa3"
MODE_AUTO=0
class StaConnect2(LFCliBase):
@@ -164,6 +165,8 @@ class StaConnect2(LFCliBase):
self.station_profile.use_security(security_type="wpa", ssid=self.dut_ssid, passwd=self.dut_passwd)
elif self.dut_security == WEP:
self.station_profile.use_security(security_type="wep", ssid=self.dut_ssid, passwd=self.dut_passwd)
elif self.dut_security == WPA3:
self.station_profile.use_security(security_type="wpa3", ssid=self.dut_ssid, passwd=self.dut_passwd)
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
print("Adding new stations ", end="")