From: Jouni Malinen Date: Sat, 20 Dec 2014 19:18:26 +0000 (+0200) Subject: tests: wdev_id in STATUS-DRIVER X-Git-Tag: hostap_2_4~718 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f86868c253b2e2a4c79b7580be1a6ef51cbe49a1;p=thirdparty%2Fhostap.git tests: wdev_id in STATUS-DRIVER Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_device.py b/tests/hwsim/test_p2p_device.py index e0cfa614b..cfea9b3fc 100644 --- a/tests/hwsim/test_p2p_device.py +++ b/tests/hwsim/test_p2p_device.py @@ -24,6 +24,20 @@ def test_p2p_device_grpform(dev, apdev): check_grpform_results(i_res, r_res) remove_group(dev[0], wpas) + res = wpas.global_request("IFNAME=p2p-dev-" + iface + " STATUS-DRIVER") + lines = res.splitlines() + found = False + for l in lines: + try: + [name,value] = l.split('=', 1) + if name == "wdev_id": + found = True + break + except ValueError: + pass + if not found: + raise Exception("wdev_id not found") + def test_p2p_device_grpform2(dev, apdev): """P2P group formation with driver using cfg80211 P2P Device (reverse)""" with HWSimRadio(use_p2p_device=True) as (radio, iface):