mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
Add WPA3 to sta_connect2.py
Signed-off-by: bealler <alex.beall@netexperience.com>
This commit is contained in:
@@ -29,6 +29,7 @@ OPEN="open"
|
|||||||
WEP="wep"
|
WEP="wep"
|
||||||
WPA="wpa"
|
WPA="wpa"
|
||||||
WPA2="wpa2"
|
WPA2="wpa2"
|
||||||
|
WPA3 = "wpa3"
|
||||||
MODE_AUTO=0
|
MODE_AUTO=0
|
||||||
|
|
||||||
class StaConnect2(LFCliBase):
|
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)
|
self.station_profile.use_security(security_type="wpa", ssid=self.dut_ssid, passwd=self.dut_passwd)
|
||||||
elif self.dut_security == WEP:
|
elif self.dut_security == WEP:
|
||||||
self.station_profile.use_security(security_type="wep", ssid=self.dut_ssid, passwd=self.dut_passwd)
|
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)
|
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||||
|
|
||||||
print("Adding new stations ", end="")
|
print("Adding new stations ", end="")
|
||||||
|
|||||||
Reference in New Issue
Block a user