From: Jouni Malinen Date: Sun, 29 Dec 2013 15:32:43 +0000 (+0200) Subject: tests: Verify WPS information in hostapd STA command X-Git-Tag: hostap_2_1~293 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=097cd9cd4de8028263f9666f951d0672e23f39ae;p=thirdparty%2Fhostap.git tests: Verify WPS information in hostapd STA command Signed-hostap: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 99af6ad23..546d9d306 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -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"