Message ID | 1457257358-31275-2-git-send-email-eliad@wizery.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> 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 07DC514032A for <incoming@patchwork.ozlabs.org>; Sun, 6 Mar 2016 20:43:17 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wizery-com.20150623.gappssmtp.com header.i=@wizery-com.20150623.gappssmtp.com header.b=j3qF5icQ; 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 1acVDR-0007PO-AC; Sun, 06 Mar 2016 09:43:09 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1acVDP-0007Nk-73 for hostap@lists.infradead.org; Sun, 06 Mar 2016 09:43:07 +0000 Received: by mail-wm0-x244.google.com with SMTP id n186so5851233wmn.0 for <hostap@lists.infradead.org>; Sun, 06 Mar 2016 01:42:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wizery-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=xYZpVLxQE10Zd0VLznuQNbGfA2ycXx7jIJ2LvQrRTNE=; b=j3qF5icQTx/VlKpEGVvdRTNzNFPrp7H2g1OJecYdh9fgCHI8OOXx3eMej/ipgiGpPQ 7zOsquELcd9v0E8QC0s2IkRAsf+xVzOtkj7dHcHM231mu9a7NwM4WmgEpQakBntWO/Nu S/pdDh/DlEKaX8yBZgbdvHnEZkvcjulin9HtnIB46I/GBLdyKuVMpZvXcbupF/3rPb/X dCTH6JSVvobVp7r7MEaRaC2yuihJM6LCnylMBYRIAsKkTy5hVugTawLANV//HMRbiWpG u0uqha1xmjH619sB0okv8Ux6UWRlw3Lagji4+upCU+lyTJjypZ+X+23ezBxsngx76lAY Sb+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=xYZpVLxQE10Zd0VLznuQNbGfA2ycXx7jIJ2LvQrRTNE=; b=CKZGOcnlUsHxJ79249F8yfo9b0V49li/jNULgKHTNP6sSX0tGNHTQ7XUgw6MOQ6fMs A7YpvhnelN3Lvcv54kxfcaz4KiQZEcUqn6dnWLmIZDiF6UD6S1LUwuDZYi1fKUNQKxKn phFzI0CeSlEgLLwiH+5NZR8GuyidzX7pwDse5nxgBBeCXRyKSUz8X9d7yonqQfK9Ib6t +tZCNF2l+twsEDN8pV8clnmp9dfSOmELZai8avOMUUk9CHQs65sSyMnEfwOfk+8Cqr9m KrketiLdjfj3EdEgoN4geUthelkF3KWhFikDrLymj5OFNERBXzxc4LoyqvvLXypFfcHC Q9bw== X-Gm-Message-State: AD7BkJIvwobQKw/ZVhF9KA8s06vAwCMlrlYLBFIqd5rtYNvFPWBPxCixJm0pp5klyCZL5Q== X-Received: by 10.28.221.136 with SMTP id u130mr7008561wmg.40.1457257365672; Sun, 06 Mar 2016 01:42:45 -0800 (PST) Received: from localhost.localdomain (93-172-245-144.bb.netvision.net.il. [93.172.245.144]) by smtp.gmail.com with ESMTPSA id l7sm12136320wjx.14.2016.03.06.01.42.44 for <hostap@lists.infradead.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Mar 2016 01:42:45 -0800 (PST) From: Eliad Peller <eliad@wizery.com> To: hostap@lists.infradead.org Subject: [PATCH 2/2] hostapd: return ifname of current context Date: Sun, 6 Mar 2016 11:42:38 +0200 Message-Id: <1457257358-31275-2-git-send-email-eliad@wizery.com> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1457257358-31275-1-git-send-email-eliad@wizery.com> References: <1457257358-31275-1-git-send-email-eliad@wizery.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160306_014307_401903_51AAAE7B X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -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.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:244 listed in] [list.dnswl.org] X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
diff --git a/hostapd/main.c b/hostapd/main.c index 06aa4b2..25dc20b 100644 --- a/hostapd/main.c +++ b/hostapd/main.c @@ -474,9 +474,8 @@ static void usage(void) static const char * hostapd_msg_ifname_cb(void *ctx) { struct hostapd_data *hapd = ctx; - if (hapd && hapd->iconf && hapd->iconf->bss && - hapd->iconf->num_bss > 0 && hapd->iconf->bss[0]) - return hapd->iconf->bss[0]->iface; + if (hapd && hapd->conf) + return hapd->conf->iface; return NULL; }
In case of multiple bss, return the current interface name, instead of the first one. Signed-off-by: Eliad Peller <eliad@wizery.com> --- hostapd/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)