Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1722415ioo; Mon, 23 May 2022 01:31:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT+9DXguumVP2xGffpC0wbWw9A/IOI3ZlvbCsm2i5jXE4GlYy0sedQMWxat8/1O1gAJIH7 X-Received: by 2002:a65:400c:0:b0:3f6:5560:a1b0 with SMTP id f12-20020a65400c000000b003f65560a1b0mr16567592pgp.47.1653294687928; Mon, 23 May 2022 01:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653294687; cv=none; d=google.com; s=arc-20160816; b=IzxKnyE6CULrrS0V4xcWbhYLBFpQ8LeT3V9Y/ZS4w81tpRHDoVsEaAgoVCGIByjaBN aMoc0HZX8yz0khwxvFIYYLBLgJASkfUmNtIiwH594TKbAGMyO5B8ysQgfDgr8acqSCes +kY2dC+uh37dac41F69H3rSc/UiAO7zN+lKCaxaB2vCPdUv3T6Huqvydjk0BH1eFE6LQ vrIZUgl+UHfB5gaqKZaGendc7Z6323jIALpEddii9THsHs/eTcadKOLAclvkyCS6VfG5 fNYTou/Fav72mlmH3WxM9O81LjXGARKq2CcznULIqiMUL5yL5GYcspHnVAT6sRg5g3xd lg5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e1kLWLSUVFdxvFvWDCxq9Din9yErolP4oSReUQ0Ke0A=; b=HtDhK8ccEaiFepXiEmJOqnnS/l8D5V9fNmQebfsOkp4EVp9BqehWIfDC6rymcqjwc/ yCcz9OnYZhkxFuwmfjuJ1VrDEEliBcpALESXA0e9SoIUofiTtBgEyuvRVXkYRghu4Zrj KJz2AiFbl1vshjmONMn8Ou91BVBxZR260Hpi13/gTZndlZlrQlJ4wk0/4uiKVl96eSP9 xYemKDgsBBa44pQhSQ2WfzFpdVKZmLqxClrYl99OjvoxrZjgvS0moFlddenYRPDbI/08 xSxOPjzoh3BRb3ErLaqP8IbiRKEaRGdTE++JqmxZ4DCDEf7Rk0ued+fwJ+jmfDgMG8+c fk9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=qxd7t2ZC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a15-20020a056a000c8f00b0050a8f87bf96si13806466pfv.293.2022.05.23.01.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:31:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=qxd7t2ZC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2315718394; Mon, 23 May 2022 00:46:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231254AbiEWHqe (ORCPT + 68 others); Mon, 23 May 2022 03:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbiEWHqb (ORCPT ); Mon, 23 May 2022 03:46:31 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3284618365 for ; Mon, 23 May 2022 00:46:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653291990; x=1684827990; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=e1kLWLSUVFdxvFvWDCxq9Din9yErolP4oSReUQ0Ke0A=; b=qxd7t2ZC40wZ7wyaRmdU/t1sKs7/Xd2YyGDHWavv5EzbMGeOviSh1Dwt jyofemRpV9zASu6AcBeNMrmAEI74+ODKAXCuCs9WV5XS/Oo40TyCFeVHt vyX7LeMx7LHIuwhwQrwzRl1k7wORbn4GMLBmbSdBnXjCjnMg1M0+18JWS I=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 22 May 2022 23:01:27 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2022 23:01:27 -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; Sun, 22 May 2022 23:01:27 -0700 Received: from alokad-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; Sun, 22 May 2022 23:01:26 -0700 From: Aloka Dixit To: , , CC: Aloka Dixit , John Crispin Subject: [PATCH 3/9] ath11k: set MBSSID and EMA driver capabilities Date: Sun, 22 May 2022 23:01:02 -0700 Message-ID: <20220523060108.23982-4-quic_alokad@quicinc.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220523060108.23982-1-quic_alokad@quicinc.com> References: <20220523060108.23982-1-quic_alokad@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Set extended capability bits in ath11k_if_types_ext_capa, ath11k_if_types_ext_capa_sta and ath11k_if_types_ext_capa_ap structures to indicate the driver support for MBSSID and EMA. Configure mbssid_max_interfaces and ema_max_profile_periodicity fields in structure wiphy which are used to advertise maximum number of interfaces and profile periodicity supported by the driver. Signed-off-by: Aloka Dixit Co-developed-by: John Crispin Signed-off-by: John Crispin --- drivers/net/wireless/ath/ath11k/mac.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index ee1590b16eff..075a307797d8 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -8705,19 +8705,23 @@ static int ath11k_mac_setup_iface_combinations(struct ath11k *ar) static const u8 ath11k_if_types_ext_capa[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, + [2] = WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT, [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, }; static const u8 ath11k_if_types_ext_capa_sta[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, + [2] = WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT, [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, [9] = WLAN_EXT_CAPA10_TWT_REQUESTER_SUPPORT, }; static const u8 ath11k_if_types_ext_capa_ap[] = { [0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING, + [2] = WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT, [7] = WLAN_EXT_CAPA8_OPMODE_NOTIF, [9] = WLAN_EXT_CAPA10_TWT_RESPONDER_SUPPORT, + [10] = WLAN_EXT_CAPA11_EMA_SUPPORT, }; static const struct wiphy_iftype_ext_capab ath11k_iftypes_ext_capa[] = { @@ -8938,6 +8942,9 @@ static int __ath11k_mac_register(struct ath11k *ar) NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP); } + ar->hw->wiphy->mbssid_max_interfaces = TARGET_NUM_VDEVS(ab); + ar->hw->wiphy->ema_max_profile_periodicity = TARGET_EMA_MAX_PROFILE_PERIOD; + ath11k_reg_init(ar); if (!test_bit(ATH11K_FLAG_RAW_MODE, &ab->dev_flags)) { -- 2.31.1