Message ID | 20241104135625.2151387-1-hyang@freebox.fr |
---|---|
State | New |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=XoRygZcn; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=dvgEMHr+; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XhwnH342Cz1xxW for <incoming@patchwork.ozlabs.org>; Tue, 5 Nov 2024 02:46:41 +1100 (AEDT) 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=QotzS657hEIAHWHfjLloSmSfxZmlqmqk5KXBdLgH5gA=; b=XoRygZcnG4ZZBE JQb4Ssq8rdc+UVKdUxhNKsSDcboCzicImfadIh7cLabRq2OuA2+CnExHD4/6b/3l0LIXEXd1ENOrq S2vyDBeXh7dy4ownytWJAwLZH606CMcBzJ4xo1KCvs2JwGhzylkzYvDNAn598Xpue9hhUJ2vyGKrc 1MMuu1zB3SQW1mjsI5OGnAFNPYnHTH/HFav+XXYmnFeH0oNIWCcrnx49eN1yFYT1uxuCyLSNMwEC8 iZERf0joiwYwgZ/uAXyqtaMMQqBQde5mXMwoo2unmzpV3Eut74DiWpgqDIHfoh4XY0w4+PtEICRBZ s4ESDcUzD64lX6vtraAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t7zHQ-0000000EFw9-0gH5; Mon, 04 Nov 2024 15:46:12 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t7xZs-0000000DxRA-0CLd for hostap@lists.infradead.org; Mon, 04 Nov 2024 13:57:10 +0000 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-37d538fe5f2so2826191f8f.2 for <hostap@lists.infradead.org>; Mon, 04 Nov 2024 05:57:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebox-fr.20230601.gappssmtp.com; s=20230601; t=1730728625; x=1731333425; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+iDGGlUKKPIqCTx1IWePlr6FcB8W6gVN+vUMc6Ww+oo=; b=dvgEMHr+5pOfJeQQV8v0KptNn19YAHQ9Fu/x9iLbaktV1c03HP8uogMsSeR7nTWP8z /edve1EjgvSrI3Rh9uPGuUlEMiCAaFpk5PGPLF815gtucKaB5FB2EZs+Vq97+ZdbdBD5 cnRRSE1L9AJESCvgKxffCXwANcurUwxsvmz4HyVbJwLW3+LSMREhmCADbdlfk6JqKLkI PRYi4UyMeHM0xoBRaFVVv9FvRzOM0kpPuVV5Ii/y36pz34/r+kinrjZxDreAg82zLyvB nvstb8Ozp00qXSYdg6euKAS+At7qrljzkg9a0bg8MK7ejDJRvgywk1p5Qtjm/iPI4hF8 ersg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730728625; x=1731333425; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+iDGGlUKKPIqCTx1IWePlr6FcB8W6gVN+vUMc6Ww+oo=; b=igy85qfhSyOOjLuGroCwIFE6yueA0++9PG/Cmzvtl2uCfuXqWgj8guGWTUsWOvavkE Ediqw1yV6Zhk7Mtj83DJErxNaQxuQqqXuk4Jz863hvuvkJpCVHAOMBIQvW9UrFxZynba vGL2MKdSuoG8DvacX4Ilz0vvOypVmHwmDxoCm+3S+VlEFce/7pvvqbXAurC/abWKvMGu vWfGDJVGCT6vSD3ur26suKFTr4w+U5a/VakV1e66WhMrgbw4orz33rD/Mqkk3JW2asQB 7BMjnR0Rde56VXD2CPBkieJAXI+UWAeF1Pthp4NfJk/gcgk6rlExO/DITWAWYk+rzfvY YFuQ== X-Gm-Message-State: AOJu0Ywye/5fH9pmQo9lI/ufzMgbTOTflHR2lQvfK+tlUAkRV4qgXtLS fToW3UFBENWfKe9SG5XKh4XyDBiSOBDNooDtrAzMyt/b3hs2Ufo1HxyykcOWUenBwhiIPntaAJO Q X-Google-Smtp-Source: AGHT+IFeU7lPWjH80iuwOZXpbLJBBXx+SZfakeJnGZYykGuTPMhO7mMU4eXLwC1sh3VdkWjdS6G2Dw== X-Received: by 2002:a05:6000:1449:b0:37c:f3e0:b436 with SMTP id ffacd0b85a97d-381be7d8f96mr13765822f8f.30.1730728624963; Mon, 04 Nov 2024 05:57:04 -0800 (PST) Received: from hyang-ThinkStation-P620.iliad.local (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381c113e8a8sm13307283f8f.72.2024.11.04.05.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2024 05:57:04 -0800 (PST) From: Hancheng Yang <hyang@freebox.fr> To: hostap@lists.infradead.org Cc: Hancheng Yang <hyang@freebox.fr> Subject: [PATCH] hostapd: Fix 'start_disabled' option being ignored Date: Mon, 4 Nov 2024 14:56:26 +0100 Message-Id: <20241104135625.2151387-1-hyang@freebox.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241104_055708_319811_7A432CA0 X-CRM114-Status: GOOD ( 12.56 ) X-Spam-Score: -1.9 (-) 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: Fix 2 cases where 'start_disabled' were not respected: - when `ieee802_11_set_beacon` is called for a BSS, same operation will be called for all it's colocated BSS(s). Now we set beacon for BSSs have [...] Content analysis details: (-1.9 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:436 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.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 -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
hostapd: Fix 'start_disabled' option being ignored
|
expand
|
diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 2e3d90466..36dc18ad3 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -3227,7 +3227,8 @@ int ieee802_11_set_beacon(struct hostapd_data *hapd) continue; #endif /* CONFIG_IEEE80211BE */ - if (other->bss[i] && other->bss[i]->started) + if (other->bss[i] && other->bss[i]->started && + other->bss[i]->beacon_set_done) __ieee802_11_set_beacon(other->bss[i]); } } diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index c8751a247..85031d673 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -2744,7 +2744,7 @@ dfs_offload: hostapd_neighbor_set_own_report(iface->bss[j]); if (iface->interfaces && iface->interfaces->count > 1) - ieee802_11_set_beacons(iface); + ieee802_11_update_beacons(iface); return 0;