tests: Use list_networks with p2p=true in test_p2p_channel
In case that there is a need to list the persistent P2P networks, the global control interface needs to be used. Signed-off-by: Ben Rosenfeld <ben.rosenfeld@intel.com>
This commit is contained in:
parent
9766d403a6
commit
6f27f79084
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ def test_p2p_autogo_pref_chan_not_in_regulatory(dev, apdev):
|
||||||
raise Exception("Unexpected channel selected: " + res['freq'])
|
raise Exception("Unexpected channel selected: " + res['freq'])
|
||||||
dev[0].remove_group(res['ifname'])
|
dev[0].remove_group(res['ifname'])
|
||||||
|
|
||||||
netw = dev[0].list_networks()
|
netw = dev[0].list_networks(p2p=True)
|
||||||
if len(netw) != 1:
|
if len(netw) != 1:
|
||||||
raise Exception("Unexpected number of network blocks: " + str(netw))
|
raise Exception("Unexpected number of network blocks: " + str(netw))
|
||||||
id = netw[0]['id']
|
id = netw[0]['id']
|
||||||
|
|
Loading…
Reference in a new issue