]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: wdev_id in STATUS-DRIVER
authorJouni Malinen <j@w1.fi>
Sat, 20 Dec 2014 19:18:26 +0000 (21:18 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Dec 2014 19:18:26 +0000 (21:18 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_p2p_device.py

index e0cfa614bc6aa451cc7fa8488ad04de1ae33b4de..cfea9b3fc65a3f69db98b191be3534af7a27d65f 100644 (file)
@@ -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):