tests: Verify WPS information in hostapd STA command
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b1448311c2
commit
097cd9cd4d
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ def test_ap_wps_conf(dev, apdev):
|
||||||
if status['key_mgmt'] != 'WPA2-PSK':
|
if status['key_mgmt'] != 'WPA2-PSK':
|
||||||
raise Exception("Unexpected key_mgmt")
|
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):
|
def test_ap_wps_twice(dev, apdev):
|
||||||
"""WPS provisioning with twice to change passphrase"""
|
"""WPS provisioning with twice to change passphrase"""
|
||||||
ssid = "test-wps-twice"
|
ssid = "test-wps-twice"
|
||||||
|
|
Loading…
Reference in a new issue