tests: wdev_id in STATUS-DRIVER

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-12-20 21:18:26 +02:00
parent 542452a93d
commit f86868c253

View 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):