From patchwork Mon Jul 6 12:50:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 1323610 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=phrozen.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=iLxjRs7I; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B0lnN732kz9sTH for ; Mon, 6 Jul 2020 22:51:36 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XRwQM79KBZqAAr1IR4nfFvacfp0DReiY81+xEQTTMZ0=; b=iLxjRs7Ihai4yn7BTMXYN91H2 sttKV1UASbCoyj0+0urviF+cdNQUBZKYu+rsuNwEqavNXVZ5bxvl4WNMjPMvwmLUZsa7tojmho7Vh zHvJ1PctwQjBU9YoOL8hvO3N2Rg+3e7NkSEXtuZL+rXBXg5GzZ6rZBFjarvxx5U8XRye5sPcsvRSs pOfR/TT5oMISR7cyXT1li5Axr1MSC/ZPhJZBWdSeFwB9plTGO7xwmktBs6UlQM4bzxfduIj3axCaM B+3QIQUhqDatN2tLRWino3Rlr7+I83HSZ6MEmmm2Dw3rovr4jlVHZdXZbhIW3pTJ8vAm7faVrhOgh I798CpxkA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsQa6-00069p-Hj; Mon, 06 Jul 2020 12:50:47 +0000 Received: from nbd.name ([2a01:4f8:221:3d45::2]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsQZz-00065z-6S for hostap@lists.infradead.org; Mon, 06 Jul 2020 12:50:40 +0000 Received: from [134.101.131.141] (helo=localhost.localdomain) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1jsQZx-0001fi-If; Mon, 06 Jul 2020 14:50:37 +0200 From: John Crispin To: hostap@lists.infradead.org Subject: [PATCH V2 1/7] multiple_bssid: add the config file Date: Mon, 6 Jul 2020 14:50:25 +0200 Message-Id: <20200706125031.668258-2-john@phrozen.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706125031.668258-1-john@phrozen.org> References: <20200706125031.668258-1-john@phrozen.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200706_085039_399037_A3967FC6 X-CRM114-Status: GOOD ( 12.14 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: John Crispin Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This patch adds a new config option to enable this feature. Signed-off-by: John Crispin --- hostapd/config_file.c | 2 ++ src/ap/ap_config.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 1861b5203..97ded78aa 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -4563,6 +4563,8 @@ static int hostapd_config_fill(struct hostapd_config *conf, } bss->mka_psk_set |= MKA_PSK_SET_CKN; #endif /* CONFIG_MACSEC */ + } else if (os_strcmp(buf, "multiple_bssid") == 0) { + conf->multiple_bssid = atoi(pos); } else { wpa_printf(MSG_ERROR, "Line %d: unknown configuration item '%s'", diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index b705c378f..3a363bc4e 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -986,6 +986,8 @@ struct hostapd_config { u8 vht_oper_centr_freq_seg1_idx; u8 ht40_plus_minus_allowed; + u8 multiple_bssid; + /* Use driver-generated interface addresses when adding multiple BSSs */ u8 use_driver_iface_addr;