Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp90282ybt; Mon, 6 Jul 2020 04:53:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7pBr2ATsgVSTVylIn079tbbHRVakt4iejjBMraUOHwVCfTvN3dPYh3CvsmC672SPrPSuk X-Received: by 2002:aa7:c583:: with SMTP id g3mr56348699edq.228.1594036391343; Mon, 06 Jul 2020 04:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594036391; cv=none; d=google.com; s=arc-20160816; b=YgQQvO8Kuh9xAAj8cq5mQQHaTP9CETqj619uGMAUPc968KwTBEmuQwGuPoQ457hLYq P9Ni0L5i6u6Pe/c3W7g6cDbqBmRuYWszjeqD0C5sf6xNvdoj0xPTG57fGa07PuxVPdzO AwtakT8NY8/dCJzm1maJkG8Q4kQroBKyFxNCwotDabLteIUpH+t9Iyz7vM6G4pZdxN5J 017mrURxyS+6Fs9NiGmAuZoeippOrMA2DKxCYqLgtIpKTl+oKxVhUlNJoh2d6KuMp6Da m6QV7dwoE68YpWxT/NDwZIHsaXdrIt/gNmyIBqJqphdfqxFq0LPhOkBCtbBkXJmtRfLe W0DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=egziR5APvMGf0Zv/GeJZMGt9H/ieKGAnrB/9ljCGpw0=; b=M5VuNvQtFFBvL9BPJP/uFJO9DrTU6Vsmkz0VvpUqbEaFvKoVK2EMHTfzzfV239qMHv h6An3j+RgoiD3G4sYI76MgdFr7JnehRkXi/kanSDnbi3lJSJghr2WUzM8ET0VEv9/OK5 4ggglkg4dg4wxYv/JUC+d7d9KDl/ccgJL1GaINB7eDP2HCoi+02usZB88DFcBVV+OPm7 G9F+KviANAnx23rpv0KnOdL453ido4asror3NIBUPBesI0vXQhh2ba0/NGYl8i81J6MR hPnRkHjppALiw2XuR7n9AotD/qDty2NQ3FtpXX61OIEeCoyImGAWOhWFrdVxsSSA4488 yrUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si13395694edr.36.2020.07.06.04.52.48; Mon, 06 Jul 2020 04:53:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729027AbgGFLwe (ORCPT + 99 others); Mon, 6 Jul 2020 07:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729000AbgGFLwc (ORCPT ); Mon, 6 Jul 2020 07:52:32 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89B79C08C5E2 for ; Mon, 6 Jul 2020 04:52:32 -0700 (PDT) Received: from [134.101.131.141] (helo=localhost.localdomain) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1jsPfh-000600-U1; Mon, 06 Jul 2020 13:52:30 +0200 From: John Crispin To: Johannes Berg Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, John Crispin Subject: [PATCH V2 05/10] mac80211: propagate multi bssid settings when starting Date: Mon, 6 Jul 2020 13:52:14 +0200 Message-Id: <20200706115219.663650-5-john@phrozen.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706115219.663650-1-john@phrozen.org> References: <20200706115219.663650-1-john@phrozen.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patch extends the bss_config allowing us to propagate the multiple bssid setting down the stack into the driver. Signed-off-by: John Crispin --- include/net/mac80211.h | 2 ++ net/mac80211/cfg.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 67729b8fcdb2..d7dce78e261e 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -607,6 +607,7 @@ struct ieee80211_ftm_responder_params { * @he_oper: HE operation information of the AP we are connected to * @he_obss_pd: OBSS Packet Detection parameters. * @he_bss_color: BSS coloring settings, if BSS supports HE + * @multi_bssid: the multi bssid settings of the AP. */ struct ieee80211_bss_conf { const u8 *bssid; @@ -674,6 +675,7 @@ struct ieee80211_bss_conf { } he_oper; struct ieee80211_he_obss_pd he_obss_pd; struct cfg80211_he_bss_color he_bss_color; + struct ieee80211_multi_bssid multi_bssid; }; /** diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index d315120799c0..e4b1ac89b1c0 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1137,6 +1137,8 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev, sizeof(struct ieee80211_he_obss_pd)); memcpy(&sdata->vif.bss_conf.he_bss_color, ¶ms->he_bss_color, sizeof(struct ieee80211_he_bss_color)); + memcpy(&sdata->vif.bss_conf.multi_bssid, ¶ms->multi_bssid, + sizeof(struct ieee80211_multi_bssid)); sdata->vif.bss_conf.ssid_len = params->ssid_len; if (params->ssid_len) -- 2.25.1