]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WPA2-PSK-FT and different OCV capability between APs
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 9 Feb 2022 15:30:02 +0000 (17:30 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 9 Feb 2022 15:30:02 +0000 (17:30 +0200)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_ap_ft.py

index 7e5e2fb3e84d5a6795d38bcf13c39faf481a0ec8..71c5ce096887e776cf9acf7523259174166c726f 100644 (file)
@@ -599,6 +599,27 @@ def test_ap_ft_ocv(dev, apdev):
 
     run_roams(dev[0], apdev, hapd0, hapd1, ssid, passphrase, ocv="1")
 
+def test_ap_ft_ocv_change(dev, apdev):
+    """WPA2-PSK-FT and different OCV capability between APs"""
+    ssid = "test-ft"
+    passphrase = "12345678"
+
+    params = ft_params1(ssid=ssid, passphrase=passphrase)
+    params["ieee80211w"] = "2"
+    params["ocv"] = "1"
+    try:
+        hapd0 = hostapd.add_ap(apdev[0], params)
+    except Exception as e:
+        if "Failed to set hostapd parameter ocv" in str(e):
+            raise HwsimSkip("OCV not supported")
+        raise
+    params = ft_params2(ssid=ssid, passphrase=passphrase)
+    params["ieee80211w"] = "2"
+    params["ocv"] = "0"
+    hapd1 = hostapd.add_ap(apdev[1], params)
+
+    run_roams(dev[0], apdev, hapd0, hapd1, ssid, passphrase, ocv="1")
+
 def test_ap_ft_over_ds(dev, apdev):
     """WPA2-PSK-FT AP over DS"""
     ssid = "test-ft"