Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1758028imw; Tue, 5 Jul 2022 15:05:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1spWDTGw33+/i+sCs8zb8ANlhtjftHMbCJ0DoS6tQ3D9YZcf/84xQ02eLXpJI8AfSzJOyw0 X-Received: by 2002:a17:906:8455:b0:72a:e927:7756 with SMTP id e21-20020a170906845500b0072ae9277756mr4457178ejy.59.1657058739960; Tue, 05 Jul 2022 15:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657058739; cv=none; d=google.com; s=arc-20160816; b=PMmaPV2yXJMgki6oJb5kkto8v7mKiiUT+SDrmcj4UePZ1hrEJr3HYrZ7mmnrARSc4T Iu4pU2E8uSry9CyULk1PEC8VH5N3tdltzqwDu6r0QfFbUq0W78EAHt86I4mNf7dXODew DAVAsDXtf27zEscNcwHl5LxHItNMnPYok6NzadlL89J/oGJfK/+XGHJMUecazURLft2A CQbFc3YjWbvJhQxBchjRVxDty6KKcRVWow5fBVZzOAsv7PKEs4vOPANuQ9kelmt1GeDe nCiWRaFZFl4JlIk0HXyrJviTLEJ7x9bWJAdHrPrli70kO7uo9Wn8VkKYsLQBmOt1uLFt MFlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=+IhKpC2aYM8AXeVzSJaIMiJe17jT6ZmldsrR1GUt2Oc=; b=KCq9Ik9DtQPujL6s2TkpEhymYqnTLiG1j475Hu04GlU1LrTQ2j0QDQeAx+dypeX3/X JGwJE0va5AHTWmIh2BMU8WfR6ZECRjyOmMZ2H3cUYhb7V/E7bN59cxuE7daAg8qP4oN9 7WHXTO2hJDgdLXtFOSY4f0jtu2/XopxRt5V2Ly9fQQzweVSawLSuOA3aBoghG0n0Ly+Z SPvVGbTn74lsPFddh2ZOeD184dNe8+ebDtT8YijIImvJCFUck68szW65n84LYj1+y2F8 vsp1l84g5oTAqo/azWjlTxQV0nW6iiAZH+W4xhY0trBq/LSNwWW5cd76m3lAulk/gRvf NlMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=f8T9WDxP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m7-20020a509307000000b00435799ce323si16241157eda.190.2022.07.05.15.05.11; Tue, 05 Jul 2022 15:05:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=f8T9WDxP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231280AbiGEWDR (ORCPT + 66 others); Tue, 5 Jul 2022 18:03:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229973AbiGEWDQ (ORCPT ); Tue, 5 Jul 2022 18:03:16 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B06A19286 for ; Tue, 5 Jul 2022 15:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1657058595; x=1688594595; h=from:to:cc:subject:date:message-id:mime-version; bh=+IhKpC2aYM8AXeVzSJaIMiJe17jT6ZmldsrR1GUt2Oc=; b=f8T9WDxPNZdOIFxE/tuxVlrc2Pe/FCK7eQbAoqPJzqp69my+M5a7B8ek T/AXhfcA9/V0doGc8fbSNneEDXvDpyZ2AojCHVbPVEKLS95tVC95PDl/b v9dt6P2E7mvDtmEsou3TCM1Eeml2s+luAnPUSg1yLek8F2m1bMbke9G0H w=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 05 Jul 2022 15:03:14 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2022 15:03:14 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 5 Jul 2022 15:03:14 -0700 Received: from msinada-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 5 Jul 2022 15:03:13 -0700 From: Muna Sinada To: CC: , Muna Sinada Subject: [PATCH v2 1/2] mac80211: Add VHT MU-MIMO related flags in ieee80211_bss_conf Date: Tue, 5 Jul 2022 15:03:05 -0700 Message-ID: <1657058586-4621-1-git-send-email-quic_msinada@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Adding flags for SU Beamformer, SU Beamformee, MU Beamformer and MU Beamformee for VHT. This is utilized to pass MU-MIMO configurations from user space to driver. Signed-off-by: Muna Sinada --- include/net/mac80211.h | 8 ++++++++ net/mac80211/cfg.c | 15 +++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index ebadb2103968..ef4133091d41 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -636,6 +636,10 @@ struct ieee80211_fils_discovery { * @tx_pwr_env_num: number of @tx_pwr_env. * @pwr_reduction: power constraint of BSS. * @eht_support: does this BSS support EHT + * @vht_su_beamformer: does this BSS support operation as an VHT SU beamformer + * @vht_su_beamformee: does this BSS support operation as an VHT SU beamformee + * @vht_mu_beamformer: does this BSS support operation as an VHT MU beamformer + * @vht_mu_beamformee: does this BSS support operation as an VHT MU beamformee */ struct ieee80211_bss_conf { const u8 *bssid; @@ -711,6 +715,10 @@ struct ieee80211_bss_conf { u8 tx_pwr_env_num; u8 pwr_reduction; bool eht_support; + bool vht_su_beamformer; + bool vht_su_beamformee; + bool vht_mu_beamformer; + bool vht_mu_beamformee; }; /** diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index f7896f257e1b..76418bb360fa 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1164,6 +1164,21 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev, prev_beacon_int = sdata->vif.bss_conf.beacon_int; sdata->vif.bss_conf.beacon_int = params->beacon_interval; + if (params->vht_cap) { + sdata->vif.bss_conf.vht_su_beamformer = + !!(ap_vht_cap->vht_cap_info & + cpu_to_le32(IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE)); + sdata->vif.bss_conf.vht_su_beamformee = + !!(ap_vht_cap->vht_cap_info & + cpu_to_le32(IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE)); + sdata->vif.bss_conf.vht_mu_beamformer = + !!(ap_vht_cap->vht_cap_info & + cpu_to_le32(IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE)); + sdata->vif.bss_conf.vht_mu_beamformee = + !!(ap_vht_cap->vht_cap_info & + cpu_to_le32(IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE)); + } + if (params->he_cap && params->he_oper) { sdata->vif.bss_conf.he_support = true; sdata->vif.bss_conf.htc_trig_based_pkt_ext = -- 2.7.4