]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use list_networks with p2p=true in test_p2p_channel
authorBen Rosenfeld <ben.rosenfeld@intel.com>
Tue, 5 May 2015 09:37:03 +0000 (12:37 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 8 May 2015 15:31:05 +0000 (18:31 +0300)
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>
tests/hwsim/test_p2p_channel.py

index 779ce9237c93a11cfe85cbefaf4fbb44ae4564b8..3011d392d1d85469dc6b4d02e606070b6d29036b 100644 (file)
@@ -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']