@@ -35,12 +35,23 @@ class Test(unittest.TestCase):
wd.wait_for_object_condition(ordered_network.network_object, condition)
def test_SAE(self):
+ IWD.copy_to_storage("ssidSAE.psk.default", name="ssidSAE.psk")
self.hostapd.wait_for_event("AP-ENABLED")
wd = IWD(True)
self.validate_connection(wd)
def test_SAE_H2E(self):
+ IWD.copy_to_storage("ssidSAE.psk.default", name="ssidSAE.psk")
+ self.hostapd.set_value('sae_pwe', '1')
+ self.hostapd.set_value('sae_groups', '20')
+ self.hostapd.reload()
+ self.hostapd.wait_for_event("AP-ENABLED")
+ wd = IWD(True)
+ self.validate_connection(wd)
+
+ def test_SAE_H2E_password_identifier(self):
+ IWD.copy_to_storage("ssidSAE.psk.identifier", name="ssidSAE.psk")
self.hostapd.set_value('sae_pwe', '1')
self.hostapd.set_value('sae_groups', '20')
self.hostapd.reload()
@@ -51,15 +62,12 @@ class Test(unittest.TestCase):
def setUp(self):
self.hostapd.default()
+ def tearDown(self):
+ IWD.clear_storage()
+
@classmethod
def setUpClass(cls):
cls.hostapd = HostapdCLI(config='ssidSAE.conf')
- IWD.copy_to_storage('ssidSAE.psk')
- pass
-
- @classmethod
- def tearDownClass(cls):
- IWD.clear_storage()
if __name__ == '__main__':
unittest.main(exit=True)
@@ -37,7 +37,7 @@ class Test(unittest.TestCase):
self.validate_connection(wd, 'InvalidSecret')
def test_no_supported_groups(self):
- self.hostapd.set_value('sae_groups', '1')
+ self.hostapd.set_value('sae_groups', '21')
self.hostapd.reload()
wd = IWD(True)
@@ -5,7 +5,8 @@ ssid=ssidSAE
wpa=2
wpa_key_mgmt=SAE
wpa_pairwise=CCMP
-sae_password=secret123|mac=ff:ff:ff:ff:ff:ff
+sae_password=secret123
+sae_password=withidentifier|id=myidentifier
sae_groups=19
ieee80211w=2
sae_pwe=0
similarity index 100%
rename from autotests/testSAE/ssidSAE.psk
rename to autotests/testSAE/ssidSAE.psk.default
new file mode 100644
@@ -0,0 +1,3 @@
+[Security]
+Passphrase=withidentifier
+PasswordIdentifier=myidentifier