]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WPS Application Extension attribute
authorJouni Malinen <j@w1.fi>
Sat, 4 Jan 2020 21:39:40 +0000 (23:39 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 4 Jan 2020 21:39:40 +0000 (23:39 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_wps.py

index 7e5499d4a7e68c29dfff02c9aca8ac284ee02158..adcff630c39cbb92904e004d9db140b8412c977e 100644 (file)
@@ -10258,3 +10258,17 @@ def run_ap_wps_reg_config_and_sae(dev, apdev):
 
     dev[1].connect(new_ssid, psk=new_passphrase, scan_freq="2412", proto="WPA2",
                    key_mgmt="WPA-PSK", ieee80211w="0")
+
+def test_ap_wps_appl_ext(dev, apdev):
+    """WPS Application Extension attribute"""
+    ssid = "test-wps-conf"
+    params = {"ssid": ssid, "eap_server": "1", "wps_state": "2",
+              "wps_application_ext": 16*"11" + 5*"ee",
+              "wpa_passphrase": "12345678", "wpa": "2",
+              "wpa_key_mgmt": "WPA-PSK", "rsn_pairwise": "CCMP"}
+    hapd = hostapd.add_ap(apdev[0], params)
+    pin = dev[0].wps_read_pin()
+    hapd.request("WPS_PIN any " + pin)
+    dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412")
+    dev[0].request("WPS_PIN %s %s" % (apdev[0]['bssid'], pin))
+    dev[0].wait_connected(timeout=30)