From patchwork Wed Feb 4 09:30:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilan Peer X-Patchwork-Id: 436394 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 65AB214014D for ; Thu, 5 Feb 2015 02:32:58 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id C758E17C41F; Wed, 4 Feb 2015 10:32:28 -0500 (EST) 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 WLuKbqSL9j4z; Wed, 4 Feb 2015 10:32:28 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 022AF17C38D; Wed, 4 Feb 2015 10:29:48 -0500 (EST) 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 7BD4717C386 for ; Wed, 4 Feb 2015 10:29:46 -0500 (EST) 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 v3mLXDMu-dKO for ; Wed, 4 Feb 2015 10:29:41 -0500 (EST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id C500217C38D for ; Wed, 4 Feb 2015 10:28:34 -0500 (EST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 04 Feb 2015 07:28:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,518,1418112000"; d="scan'208";a="661466258" Received: from unknown (HELO ipeer-e6430-3.jer.intel.com) ([10.12.217.164]) by fmsmga001.fm.intel.com with ESMTP; 04 Feb 2015 07:28:32 -0800 From: Ilan Peer To: hostap@lists.shmoo.com Subject: [PATCH 13/24] tests: Use get_bss with ifname in test_autogo() Date: Wed, 4 Feb 2015 04:30:25 -0500 Message-Id: <1423042236-25252-14-git-send-email-ilan.peer@intel.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1423042236-25252-1-git-send-email-ilan.peer@intel.com> References: <1423042236-25252-1-git-send-email-ilan.peer@intel.com> 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 Signed-off-by: Ilan Peer --- tests/hwsim/test_p2p_autogo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py index 5f6d6a0..460fa55 100644 --- a/tests/hwsim/test_p2p_autogo.py +++ b/tests/hwsim/test_p2p_autogo.py @@ -41,14 +41,14 @@ def test_autogo(dev): res = connect_cli(dev[0], dev[1]) if "p2p-wlan" in res['ifname']: raise Exception("Unexpected group interface name on client") - bss = dev[1].get_bss("p2p_dev_addr=" + addr0) - if bss['bssid'] != dev[0].p2p_interface_addr(): + bss = dev[1].get_bss("p2p_dev_addr=" + addr0, res['ifname']) + if not bss or bss['bssid'] != dev[0].p2p_interface_addr(): raise Exception("Unexpected BSSID in the BSS entry for the GO") id = bss['id'] - bss = dev[1].get_bss("ID-" + id) - if bss['id'] != id: + bss = dev[1].get_bss("ID-" + id, res['ifname']) + if not bss or bss['id'] != id: raise Exception("Could not find BSS entry based on id") - res = dev[1].request("BSS RANGE=" + id + "- MASK=0x1") + res = dev[1].group_request("BSS RANGE=" + id + "- MASK=0x1") if "id=" + id not in res: raise Exception("Could not find BSS entry based on id range")