From patchwork Thu Apr 7 05:38:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz.Dziedzic@tieto.com X-Patchwork-Id: 607243 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qgWcP2qdvz9t5V for ; Thu, 7 Apr 2016 15:39:17 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=tieto.com header.i=@tieto.com header.b=hMDMV7RO; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ao2ek-00053S-Fa; Thu, 07 Apr 2016 05:39:02 +0000 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ao2ef-0004ww-Jr for hostap@lists.infradead.org; Thu, 07 Apr 2016 05:38:59 +0000 Received: by mail-lf0-x22a.google.com with SMTP id j11so48842374lfb.1 for ; Wed, 06 Apr 2016 22:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3/GLs+9b60uCOkHiHk7U/U6TCQFytlLRw/nN0idLtaQ=; b=hMDMV7RObUJFAJB3jpEXmv6HBJrxXn0EDlge/6jIxXFdtSJPDlXZNkDZMiwN55Tu/Y LbWNIvirGt/q3Mc+Rd6qZUpCYG2Pp/Ki2NbFS0HFw41wZEOy9IZ0jXN8NXyx7BumVI/R 9lH1vOCnDjBgYcMXzq8ZjcipB1BwXzvkoIIhw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3/GLs+9b60uCOkHiHk7U/U6TCQFytlLRw/nN0idLtaQ=; b=lDRYy87gRro3jV5Q0x1w0vgdsYoNyqodPxK+/Fx3hdt7I5VpB5VZoCDTJWRamJiZA9 k3OpD27NpCOqV0U0Vocqsw9WG/DVwksiolm0J1qcZynHMPBMJZPAVf7p3jAVtMUQ5AZe lhYxPVYPANfQjOyLf7pnasIWDDpM42c0EWIXng12PvcwZyWgy5oJrsL2PybhhBg/PtXS KY8t/g2adMPCORDP4sgb8wvVe1kFY48VDlR8IAt9vtAN1TjDdWW9xwfKlV17HsHe5+qy daKEqdRwreTTqY8XF8apnKTz2LdJLozu+vPh5nb1537zLQMjELNHt3IAR6EY6DPEfoOd KcmQ== X-Gm-Message-State: AD7BkJIbknEypAaUlQ4A3P/xGS2hGrH+0ulr2tum1RU7OZ1ESsZirO7JKdctVvABR3eyTvHoI2LSCNOo5DOGFR/svCueuIHNy1tJwxhvPQaBHkJ0wXWPthc+UhSUaose13dC9+dhCl32BM9RJFCg1eLs2/isaAvcSStbp5uvZnFJ2a9QOm++jLLonFkXyn3Oqyfk X-Received: by 10.25.141.82 with SMTP id p79mr518827lfd.89.1460007515759; Wed, 06 Apr 2016 22:38:35 -0700 (PDT) Received: from localhost.localdomain ([213.192.73.50]) by smtp.gmail.com with ESMTPSA id f134sm938018lff.34.2016.04.06.22.38.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Apr 2016 22:38:35 -0700 (PDT) From: Janusz Dziedzic To: hostap@lists.infradead.org Subject: [PATCH v2 06/17] tests: return hapd when add_bss() and add_iface() Date: Thu, 7 Apr 2016 07:38:04 +0200 Message-Id: <1460007495-17921-6-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460007495-17921-1-git-send-email-janusz.dziedzic@tieto.com> References: <1460007495-17921-1-git-send-email-janusz.dziedzic@tieto.com> X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160406_223858_035076_2F9A1E9A X-CRM114-Status: UNSURE ( 8.89 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:22a listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: j@w1.fi, Janusz Dziedzic MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org return hapd from add_bss() and add_iface() while we can next use it. Signed-off-by: Janusz Dziedzic --- tests/hwsim/hostapd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hwsim/hostapd.py b/tests/hwsim/hostapd.py index 44035b3..a7d6424 100644 --- a/tests/hwsim/hostapd.py +++ b/tests/hwsim/hostapd.py @@ -413,6 +413,7 @@ def add_bss(apdev, ifname, confname, phy=None, ignore_error=False): hapd = Hostapd(ifname, hostname=hostname, port=port) if not hapd.ping(): raise Exception("Could not ping hostapd") + return hapd def add_iface(apdev, confname, ifname=None): if ifname == None: @@ -431,6 +432,7 @@ def add_iface(apdev, confname, ifname=None): hapd = Hostapd(ifname, hostname=hostname, port=port) if not hapd.ping(): raise Exception("Could not ping hostapd") + return hapd def remove_bss(apdev, ifname=None): if ifname == None: