From 8b7a48a6ec33c28eb8a59767b9d5bf715f04c9f0 Mon Sep 17 00:00:00 2001 From: jitendra-kushavah Date: Tue, 14 Oct 2025 02:17:08 +0000 Subject: [PATCH] Added OWE support Signed-off-by: jitendra-kushavah --- py-scripts/sta_connect2.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/py-scripts/sta_connect2.py b/py-scripts/sta_connect2.py index e4e9d83a..5efce659 100755 --- a/py-scripts/sta_connect2.py +++ b/py-scripts/sta_connect2.py @@ -62,6 +62,7 @@ WEP = "wep" WPA = "wpa" WPA2 = "wpa2" WPA3 = "wpa3" +OWE = "owe" MODE_AUTO = 0 @@ -334,6 +335,14 @@ class StaConnect2(Realm): 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) + elif self.dut_security == OWE: + self.station_profile.use_security(security_type="owe", ssid=self.dut_ssid, passwd="[BLANK]") + self.station_profile.set_command_flag("add_sta", "use-owe", 1) + self.station_profile.set_command_flag("add_sta", "8021x_radius", 1) + self.station_profile.set_command_param("add_sta", "ieee80211w", 2) + self.station_profile.set_wifi_extra(key_mgmt="OWE") + else: + raise ValueError(f"unknown setting for station security: {self.dut_security}") self.station_profile.set_command_flag("add_sta", "create_admin_down", 1) for security in extra_securities: self.station_profile.add_security_extra(security=security)