]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify WPS information in hostapd STA command
authorJouni Malinen <j@w1.fi>
Sun, 29 Dec 2013 15:32:43 +0000 (17:32 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Dec 2013 15:33:02 +0000 (17:33 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/test_ap_wps.py

index 99af6ad23cd876bbd011b0614d0026a3e6245ecc..546d9d3061d8693cb43b915bf63017732a3500d0 100644 (file)
@@ -130,6 +130,10 @@ def test_ap_wps_conf(dev, apdev):
     if status['key_mgmt'] != 'WPA2-PSK':
         raise Exception("Unexpected key_mgmt")
 
+    sta = hapd.get_sta(dev[0].p2p_interface_addr())
+    if 'wpsDeviceName' not in sta or sta['wpsDeviceName'] != "Device A":
+        raise Exception("Device name not available in STA command")
+
 def test_ap_wps_twice(dev, apdev):
     """WPS provisioning with twice to change passphrase"""
     ssid = "test-wps-twice"