From: Ben Rosenfeld Date: Tue, 5 May 2015 09:37:03 +0000 (+0300) Subject: tests: Use list_networks with p2p=true in test_p2p_channel X-Git-Tag: hostap_2_5~723 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f27f79084511888d3b40d670dc6419c626c27a5;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py index 779ce9237..3011d392d 100644 --- a/tests/hwsim/test_p2p_channel.py +++ b/tests/hwsim/test_p2p_channel.py @@ -523,7 +523,7 @@ def test_p2p_autogo_pref_chan_not_in_regulatory(dev, apdev): raise Exception("Unexpected channel selected: " + res['freq']) dev[0].remove_group(res['ifname']) - netw = dev[0].list_networks() + netw = dev[0].list_networks(p2p=True) if len(netw) != 1: raise Exception("Unexpected number of network blocks: " + str(netw)) id = netw[0]['id']