From: Jouni Malinen Date: Wed, 27 Aug 2014 13:22:53 +0000 (+0300) Subject: tests: Verify that sec_dev_type gets reported for P2P peer X-Git-Tag: hostap_2_3~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6df0d7e621904d46e197725aea83d129fa397ac;p=thirdparty%2Fhostap.git tests: Verify that sec_dev_type gets reported for P2P peer Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_discovery.py b/tests/hwsim/test_p2p_discovery.py index bc1fad3f8..a3700dda9 100644 --- a/tests/hwsim/test_p2p_discovery.py +++ b/tests/hwsim/test_p2p_discovery.py @@ -148,6 +148,9 @@ def test_discovery_dev_type(dev): ev = dev[0].wait_event(['P2P-DEVICE-FOUND'], timeout=2) if ev is None: raise Exception("P2P device not found") + peer = dev[0].get_peer(dev[1].p2p_dev_addr()) + if "1-0050F204-2" not in peer['sec_dev_type']: + raise Exception("sec_device_type not reported properly") def test_discovery_dev_type_go(dev): """P2P device discovery with Device Type filter on GO"""