Message ID | 20220801110827.237391-4-raphael.melotte@mind.be |
---|---|
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 Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=PQn4F/Re; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mind.be header.i=@mind.be header.a=rsa-sha256 header.s=google header.b=LUEITvUI; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LxFlw5j63z9sGP for <incoming@patchwork.ozlabs.org>; Mon, 1 Aug 2022 21:10:36 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SMy4Pjxu/8LsmdoZs/reskbGsYxPJcRkCM9RInacug8=; b=PQn4F/ReDPIxKr P1ZlPTgPJAaa7dPCzCFIPEgwvzKrjbCP0+N40g1bqlqFtcOzaiRxgJg3s20AGNJecbWCgiG0MShIS Q3d475Itc6BLz+m1BMkmsIJzdQ+dC93gLifDihGCZPXAD1m6RsbWgywH1Xd+QaDapuU6aQYNMvE7Q AkHpkJY0/SMmK1aEdPGG1Hi+LCdS3+U4SvdSUgmA7D7eyDDy06QUL01/ENoJrgHYOWN+35U5m1BzD AmTF9/N9699dxjqvkVAiUUefmp56eS/wm2fCp9df32Zah9IHRHq8Bb+jcpPHdL6iUpB18SUj/vaJZ KLgs9MocLhe7vOHbxLFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oITIw-005NPJ-5x; Mon, 01 Aug 2022 11:09:46 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oITI9-005N34-0F for hostap@lists.infradead.org; Mon, 01 Aug 2022 11:08:58 +0000 Received: by mail-ed1-x52f.google.com with SMTP id a89so13259203edf.5 for <hostap@lists.infradead.org>; Mon, 01 Aug 2022 04:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=kjqDbIZo5kB6OZDAqAEws8V7p9RS/Udpip4MSDPvTKw=; b=LUEITvUI7J6PCOkO0ZIVtC5pzKeu8kOthFjlmb4bbtBc8Wl6a0WpUQ6asEJcwgQS8j 04FjRibPRVJdh7oI21p8BU6A1hgRtPzll6lS0LntXq78Fmkled8ZsdU9MFY7bO2zKrA8 /S4CgPQEW6rlu6WI8SR1kmTWH/y3h3PIRaywGuhkraSbnz6Ve9Y/B80rykQeWGTnglf0 3vqFCP5v8f2jWYA76m4Kch7Hybdsy1NUPR63tIt4gTO6gj95vgEtpZ4ma3+GLKWwFHYr 7ccQKNhHoPCmyBcXYBB5+AYImL9x8SyNNaxozRj5PphcfCNp0EX73P+hJ1nCsqnm9ZVQ +yjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=kjqDbIZo5kB6OZDAqAEws8V7p9RS/Udpip4MSDPvTKw=; b=VyAUIopZHDz+xyd7mQbvvyZgpHFXP3zgOniPME7d3sKvp+8f+VeZ1DDSuGC8gdCSTE rxM8GMrVwQGcxsL1nsOIBWqIIcNEUNdItQtHTnKXXj81sS2YbIstNfE+fCEj4fvJQvU+ pr3AQdRCqEPhnZ5Bmo/4X2ZYKkET/zrDS2GmAdUBBMF8SOzbOvnY/wdnZQWWCbPRnAjY GERPrJdAL2i/SLO/YJExbLJN06IC2HoQphtXhPlF6PReFzZ0f2+kkpXQAZUThtxBV6Nu 4gLXkz8oyCwc+EJd/Nmo1JdYxBRj2qA1H/IHVTd7H4+Vx0lC58FZOcgziV4BBLCuE2dL np1g== X-Gm-Message-State: AJIora9jGwuTjunsZ4OugkNoftXpJMFdFg/cGh01eoYZMQzj1gGfcosw SAa8e2+nbpQC1DeKQ+XCHMO81HXlSs9FKg== X-Google-Smtp-Source: AGRyM1upjFT8YyDZXpAvKSPqh2gkBgu7z7XWJsPiW/KMp03plGb6Emt4rJBmMeJ2TQslSthTEhQkGw== X-Received: by 2002:a05:6402:3551:b0:43c:375f:6d1 with SMTP id f17-20020a056402355100b0043c375f06d1mr15055666edd.166.1659352134576; Mon, 01 Aug 2022 04:08:54 -0700 (PDT) Received: from debian-hp-1.fritz.box ([212.233.42.58]) by smtp.gmail.com with ESMTPSA id y8-20020aa7c248000000b0043c7efb8badsm6632260edo.61.2022.08.01.04.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 04:08:54 -0700 (PDT) From: =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= <raphael.melotte@mind.be> To: hostap@lists.infradead.org Cc: john@phrozen.org, raphael.melotte@mind.be Subject: [PATCH 3/7] hostapd: Add config_id to get_config() output Date: Mon, 1 Aug 2022 13:08:23 +0200 Message-Id: <20220801110827.237391-4-raphael.melotte@mind.be> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220801110827.237391-1-raphael.melotte@mind.be> References: <20220801110827.237391-1-raphael.melotte@mind.be> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220801_040857_065233_9082D9A0 X-CRM114-Status: GOOD ( 10.79 ) X-Spam-Score: 0.1 (/) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__Signed-off-by=3A_Rapha=C3=ABl_M=C3=A9l?= =?unknown-8bit?q?otte_=3Craphael=2Emelotte=40mind=2Ebe=3E?= =?unknown-8bit?q?_---_hostapd/ctrl=5Fiface=2Ec_=7C_8_++++++++_1_file_changed?= =?unknown-8bit?q?=2C_8_insertions=28+=29_diff?= =?unknown-8bit?q?_--git_a/hostapd/ctrl=5Fiface=2Ec_b/hostapd/ctrl=5Fiface=2E?= =?unknown-8bit?q?c_index_558293095=2E=2Eca96cc2df?= =?unknown-8bit?q?_100644_---_a/hostapd/ctrl=5Fiface=2Ec_+++_b/hostapd/ctrl?= =?unknown-8bit?q?=5Fiface=2Ec_=40=40_-983=2C6_+983=2C14?= =?unknown-8bit?b?IEBAIHN0YXRpYyBpbnQgaG9zdGFwZF9jdHJsX2lmYWNlX2dldF8gWy4u?= =?unknown-8bit?b?Ll0g?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=280=2E1_points=2C_5=2E0_req?= =?unknown-8bit?q?uired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-0=2E0_RCVD=5FIN=5FDNSWL=5FNONE_____RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_no_trust?= =?unknown-8bit?b?IFsyYTAwOjE0NTA6NDg2NDoyMDowOjA6MDo1MmYgbGlzdGVkIGluXQ==?= =?unknown-8bit?b?IFtsaXN0LmRuc3dsLm9yZ10=?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_0=2E0_SPF=5FHELO=5FNONE__________SPF=3A_HELO_does_not_publ?= =?unknown-8bit?q?ish_an_SPF_Record?= =?unknown-8bit?q?_0=2E2_HEADER=5FFROM=5FDIFFERENT=5FDOMAINS_From_and_Envelop?= =?unknown-8bit?q?eFrom_2nd_level?= =?unknown-8bit?q?_mail_domains_are_different?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_author=27s_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 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> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
hostapd: add support for reconfiguring single BSSes
|
expand
|
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 558293095..ca96cc2df 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -983,6 +983,14 @@ static int hostapd_ctrl_iface_get_config(struct hostapd_data *hapd, return pos - buf; pos += ret; + if ((hapd->conf->config_id)) { + ret = os_snprintf(pos, end - pos, "config_id=%s\n", + hapd->conf->config_id); + if (os_snprintf_error(end - pos, ret)) + return pos - buf; + pos += ret; + } + #ifdef CONFIG_WPS ret = os_snprintf(pos, end - pos, "wps_state=%s\n", hapd->conf->wps_state == 0 ? "disabled" :
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be> --- hostapd/ctrl_iface.c | 8 ++++++++ 1 file changed, 8 insertions(+)