From patchwork Mon Aug 1 11:08:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= X-Patchwork-Id: 1662505 Return-Path: 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=DL/8zuzQ; 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=b1Tg3E81; 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=) 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 4LxFlZ6Kgbz9sGP for ; Mon, 1 Aug 2022 21:10:18 +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: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:In-Reply-To:References: List-Owner; bh=bze+SGgQCg3gWmXiM74kBrgteqvG6rZJCXKa/enLDak=; b=DL/8zuzQwt70R0 0mezwqHLYdGPJGfyrTvOtlWKK0hS3F+lNbj6QECO0FONdlN1lg1Y689YJ/5FFrv1HID0yr3rxZA0W NGIsKpCgPYxMqrPGTQgCRoBpVrUuTEXhkf+g7NjEp/ch7szEF9IXioYsDm/1kJ92P8HenWmAw2gOo W+J9jCHXUWzZXaag3MVVzafsN0kQk6skh4ru+NVfqLcDnVkGYwHz0gLdt6wgBH55wE1hrY/nzTNlA 5BItegpm90zZU7+C/VPc/17abxkSklMHAXXIgNHDkHJfYuIpKo4Il0lpVzJ3vcL9v6gBP0iTaqzFU KSzjni8H1/Xzg5aZvzHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oITI9-005N2s-Gx; Mon, 01 Aug 2022 11:08:57 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oITI3-005Mzg-3e for hostap@lists.infradead.org; Mon, 01 Aug 2022 11:08:53 +0000 Received: by mail-ed1-x534.google.com with SMTP id b16so5774922edd.4 for ; Mon, 01 Aug 2022 04:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=FNbPzpekFFYWuXmumzqmK4e1ea9Ga4UFFr1PKCLEs4Y=; b=b1Tg3E811cgTmOQZFVIvM1FmdPTzgCHq6kPR9pDwhoDfsgs/weyXuUKP2LMpLDuHPZ Cv7eesbmOkmVSMfWV8GZQMtou+InlZLX6ubMZvR6Q8AC44xRM0lfJDvw3+gzl/uBYjHK RMUc+8VYRtoL9rlbsmCp+QIH02pdC5t5YNyMDHIvwK3GVUr2oO8JZ3BAwgpMVzml/mqH bEJfkt3ve+F0qtGOAaj0jT2emS+GBPvLQXcyeSYfilRGpy6sVxJkRVKcdaTUq5IjmYKL tY74WLkh6vibcFFReql2y7bnOHUyCBu1Wq6rLcgehwDTdbXu4+HrrySb3XFaiSMtt+Vw ZrMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=FNbPzpekFFYWuXmumzqmK4e1ea9Ga4UFFr1PKCLEs4Y=; b=uGRB7AweIxDbA8ndlWLAwrKlfq+RZY30ADIO+OYGHriZpMfX4E5bdrAwFM1uuOIIf4 6Za/jc12TWj7cavGC0o3oU2g9CMeR+b0z7r06H5q+5+5k6MYqLgdBfpobRzI8qTZine7 F8DFz6/OxZuRoFYKoFpRgB/Fu+FlPcOMv2712VDY2qSPA7gSzgKK3BqPTJ5LiqF1uR1/ gDTQqc4xhGrqu6GYd/+jDySPGLEO2WeHZdg3seTpNkicUalypyZ7kyqEQJJqCx0vENrU ah98VeSJLMoQFf+2HgzhdFQayMZBzR+sqyLl0mOdSQ0dQ5sMFEqk+aoTBNqwulFvE+va 5XIg== X-Gm-Message-State: AJIora/xKzf8rH/BLlWoU6kFrs+7jWivojOnuu6pO066GAgJvNi7OPXT MVewGV55F1xe0fD4QgHJBszTURf/OMUDdg== X-Google-Smtp-Source: AGRyM1sRNT0H5AUNLabwSdGQDfyFz9QP6dX9aNy0ihKgv2/sWq4wc665eRJDa81AKmqTblLl7YLmcw== X-Received: by 2002:a05:6402:2753:b0:43a:d6f2:9839 with SMTP id z19-20020a056402275300b0043ad6f29839mr14842292edd.73.1659352127846; Mon, 01 Aug 2022 04:08:47 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 04:08:47 -0700 (PDT) From: =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= To: hostap@lists.infradead.org Cc: john@phrozen.org, raphael.melotte@mind.be Subject: [PATCH 0/6] hostapd: add support for reconfiguring single BSSes Date: Mon, 1 Aug 2022 13:08:20 +0200 Message-Id: <20220801110827.237391-1-raphael.melotte@mind.be> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220801_040851_476393_2D6B28F7 X-CRM114-Status: GOOD ( 13.90 ) X-Spam-Score: 0.1 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello, In some contexts (e.g. multi-ap) it can be needed to reconfigure some BSSes, without disconnecting clients connected to other BSSes on the same radio. This series adds two ways to do that: Content analysis details: (0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:534 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hello, In some contexts (e.g. multi-ap) it can be needed to reconfigure some BSSes, without disconnecting clients connected to other BSSes on the same radio. This series adds two ways to do that: * The first one is when using a configuration file and using SIGHUP to reload it. In that case, a new config_id parameter can be used to decide whether to reload a BSS or not. If set (for example, to a hash of all the BSS parameters, as it's done in OpenWrt), only the BSSes that have a different config_id than in the previous configuration will be reloaded. This change is adapted from an existing patch authored by John Crispin in the OpenWrt repository ([1]). * The second one is when using the SET and RELOAD commands to reconfigure BSSes. For that case, a new RELOAD_BSS command is added to reload only the current BSS. [1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/network/services/hostapd/patches/700-wifi-reload.patch;h=c5ba631a0fc02f70714cb081b42fcf6cb9694450;hb=60fb4c92b6b0d1582d31e02167b90b424185f3a2 Raphaël Mélotte (6): hostapd: split hostapd_clear_old with hostapd_clear_old_bss hostapd: add config_id parameter tests: hwsim: write_hostapd_config: add iface_params and bss_params tests: hwsim: add test_ap_config_reload_on_sighup_config_id hostapd: add reload_bss tests: hwsim: add test_ap_reload_bss_only hostapd/config_file.c | 3 +++ hostapd/ctrl_iface.c | 13 +++++++++ hostapd/hostapd_cli.c | 9 +++++++ src/ap/ap_config.c | 1 + src/ap/ap_config.h | 1 + src/ap/hostapd.c | 48 +++++++++++++++++++++++++--------- src/ap/hostapd.h | 1 + tests/hwsim/test_ap_config.py | 46 +++++++++++++++++++++++++++++++- tests/hwsim/test_ap_dynamic.py | 23 ++++++++++++++++ 9 files changed, 131 insertions(+), 14 deletions(-)