From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EFABC433E1 for ; Thu, 4 Jun 2020 07:10:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EBCB7206DC for ; Thu, 4 Jun 2020 07:10:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727889AbgFDHKD (ORCPT ); Thu, 4 Jun 2020 03:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727874AbgFDHKC (ORCPT ); Thu, 4 Jun 2020 03:10:02 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6302BC08C5C2 for ; Thu, 4 Jun 2020 00:10:02 -0700 (PDT) Received: from [46.59.202.224] (helo=localhost.localdomain) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1jgk0l-0001P3-Ox; Thu, 04 Jun 2020 09:09:59 +0200 From: John Crispin To: Johannes Berg Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, John Crispin Subject: [PATCH 06/12] mac80211: propagate multi bssid settings when starting an AP Date: Thu, 4 Jun 2020 09:09:46 +0200 Message-Id: <20200604070952.15481-7-john@phrozen.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200604070952.15481-1-john@phrozen.org> References: <20200604070952.15481-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 1a98b3907aa7..3812adcef7d7 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -606,6 +606,7 @@ struct ieee80211_ftm_responder_params { * @he_operation: 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; @@ -669,6 +670,7 @@ struct ieee80211_bss_conf { struct ieee80211_he_operation he_operation; 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 e4f73567d873..f6f7323c66ab 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1130,6 +1130,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.20.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from nbd.name ([2a01:4f8:221:3d45::2]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jgk0p-0000HP-Bl for ath11k@lists.infradead.org; Thu, 04 Jun 2020 07:10:05 +0000 From: John Crispin Subject: [PATCH 06/12] mac80211: propagate multi bssid settings when starting an AP Date: Thu, 4 Jun 2020 09:09:46 +0200 Message-Id: <20200604070952.15481-7-john@phrozen.org> In-Reply-To: <20200604070952.15481-1-john@phrozen.org> References: <20200604070952.15481-1-john@phrozen.org> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath11k" Errors-To: ath11k-bounces+kvalo=adurom.com@lists.infradead.org To: Johannes Berg Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, John Crispin 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 1a98b3907aa7..3812adcef7d7 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -606,6 +606,7 @@ struct ieee80211_ftm_responder_params { * @he_operation: 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; @@ -669,6 +670,7 @@ struct ieee80211_bss_conf { struct ieee80211_he_operation he_operation; 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 e4f73567d873..f6f7323c66ab 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1130,6 +1130,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.20.1 _______________________________________________ ath11k mailing list ath11k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath11k