From patchwork Tue May 5 09:37:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilan Peer X-Patchwork-Id: 468016 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) by ozlabs.org (Postfix) with ESMTP id D591B14090B for ; Tue, 5 May 2015 19:39:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id C6A2617C19E; Tue, 5 May 2015 05:39:40 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EBHaGvhoYUOu; Tue, 5 May 2015 05:39:40 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 857AE17C237; Tue, 5 May 2015 05:37:14 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 7893417C19C for ; Tue, 5 May 2015 05:37:11 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lobm59MV1emn for ; Tue, 5 May 2015 05:37:06 -0400 (EDT) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 5E1B89C1BF for ; Tue, 5 May 2015 05:35:41 -0400 (EDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 05 May 2015 02:35:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,372,1427785200"; d="scan'208";a="705417928" Received: from unknown (HELO ipeer-dev-3.jer.intel.com) ([10.12.217.173]) by fmsmga001.fm.intel.com with ESMTP; 05 May 2015 02:35:34 -0700 From: Ilan Peer To: hostap@lists.shmoo.com Subject: [PATCH 15/17] tests: use list_networks with p2p=true in test_p2p_channel Date: Tue, 5 May 2015 12:37:03 +0300 Message-Id: <1430818625-8690-16-git-send-email-ilan.peer@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430818625-8690-1-git-send-email-ilan.peer@intel.com> References: <1430818625-8690-1-git-send-email-ilan.peer@intel.com> Cc: Ben Rosenfeld X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com From: Ben Rosenfeld In case that there is a need to list the P2P networks, the global control interface should be used. Signed-off-by: Ben Rosenfeld --- 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']