From patchwork Tue May 5 09:36:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilan Peer X-Patchwork-Id: 467998 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 73ADB14090B for ; Tue, 5 May 2015 19:36:28 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 06FF417C16C; Tue, 5 May 2015 05:36:14 -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 p-UNiEYq0h-l; Tue, 5 May 2015 05:36:13 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id CF7E517C174; Tue, 5 May 2015 05:35:22 -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 E0CB517C110 for ; Tue, 5 May 2015 05:35:20 -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 I5D0NOlIaumX for ; Tue, 5 May 2015 05:35:16 -0400 (EDT) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 3608817C0B8 for ; Tue, 5 May 2015 05:35:14 -0400 (EDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 05 May 2015 02:35:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,372,1427785200"; d="scan'208";a="705417690" 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:12 -0700 From: Ilan Peer To: hostap@lists.shmoo.com Subject: [PATCH 03/17] tests: change set_country() to use the global interface to get country event Date: Tue, 5 May 2015 12:36:51 +0300 Message-Id: <1430818625-8690-4-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 This is required for cases that multiple interfaces are used and the event can happen on any of them, for example when a dedicated P2P Device interface is 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 d89159a..779ce92 100644 --- a/tests/hwsim/test_p2p_channel.py +++ b/tests/hwsim/test_p2p_channel.py @@ -26,7 +26,7 @@ def set_country(country, dev=None): time.sleep(0.1) if dev: for i in range(10): - ev = dev.wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=15) + ev = dev.wait_global_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=15) if ev is None: raise Exception("No regdom change event seen") if "type=COUNTRY alpha2=" + country in ev: