[PATCH 15/17] tests: use list_networks with p2p=true in test_p2p_channel

Ilan Peer ilan.peer at intel.com
Tue May 5 05:37:03 EDT 2015


From: Ben Rosenfeld <ben.rosenfeld at intel.com>

In case that there is a need to list the P2P networks,
the global control interface should be used.

Signed-off-by: Ben Rosenfeld <ben.rosenfeld at intel.com>
---
 tests/hwsim/test_p2p_channel.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py
index 779ce92..3011d39 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']
-- 
1.9.1



More information about the HostAP mailing list