From patchwork Wed Feb 4 09:30:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peer, Ilan" X-Patchwork-Id: 436396 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 58D62140218 for ; Thu, 5 Feb 2015 02:33:26 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id C0C8017C420; Wed, 4 Feb 2015 10:32: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 u3njjmw8w2CY; Wed, 4 Feb 2015 10:32:46 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id BA99417C418; Wed, 4 Feb 2015 10:29:56 -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 C599917C42C for ; Wed, 4 Feb 2015 10:29:55 -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 Nln1RkpbuOmg for ; Wed, 4 Feb 2015 10:29:51 -0500 (EST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 4FD5817C390 for ; Wed, 4 Feb 2015 10:28:37 -0500 (EST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 04 Feb 2015 07:28:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,518,1418112000"; d="scan'208";a="661466276" 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:35 -0800 From: Ilan Peer To: hostap@lists.shmoo.com Subject: [PATCH 15/24] tests: Fix test_ap_psk() to use own_addr Date: Wed, 4 Feb 2015 04:30:27 -0500 Message-Id: <1423042236-25252-16-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> Cc: Ben 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 The test used p2p_dev_addr that can be different from own_addr, i.e., if a dedicated P2P Device interface is used. Signed-off-by: Ben Rosenfeld --- tests/hwsim/test_ap_psk.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index e0c7c96..966b4e8 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -172,9 +172,9 @@ def test_ap_wpa_ccmp(dev, apdev): def test_ap_wpa2_psk_file(dev, apdev): """WPA2-PSK AP with various PSK file error and success cases""" - addr0 = dev[0].p2p_dev_addr() - addr1 = dev[1].p2p_dev_addr() - addr2 = dev[2].p2p_dev_addr() + addr0 = dev[0].own_addr() + addr1 = dev[1].own_addr() + addr2 = dev[2].own_addr() ssid = "psk" pskfile = "/tmp/ap_wpa2_psk_file_errors.psk_file" try: