Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5980643rwb; Mon, 14 Nov 2022 12:21:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf7zXPhYsyx9Q9poy+4keXmIuNOz3VqT//+uAOwib+hryOGbt/8oHUb0RMbx9V2GkiqYYkoJ X-Received: by 2002:a17:90a:d182:b0:200:462f:6419 with SMTP id fu2-20020a17090ad18200b00200462f6419mr15302805pjb.135.1668457261490; Mon, 14 Nov 2022 12:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668457261; cv=none; d=google.com; s=arc-20160816; b=RBBOrfUS3w4BOoUkUia2xzZnZHgeHmwxAD5Rx5nQ0oPBa5YW78+eFh04dZPcGQzVbk B9NTJc4AuioVI402yJjNe1HtEp5NlfNvBsC4npEyfk27dDnN7MAze37bsds5QbXxAqQO CrGP/l1ybDCX+361yjwCHIQzMxcFKx3WUkIE+UXM62oGCkKpNm6YLSZLetYVD7ZD9q1x j44NIUDhjhBz+ylwbbpSGXsn97U6e/IzLzVBfi4v3LJztBtosR2fgq8zmm0+TMJ2DenY VIB8rmU15uZ8DAzjRP3g4KMf5Tky4jQKn8Ef52GdYqdRqJXTbtwHRd6s+JJQj8Pztwe3 tgWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=t0vWIr9SmkMN7Aun78v+4xl2IPVSIkVX9lkyNjutuSk=; b=U1ibu4emOqWxJDJkf3g3hiJou4KJbg0xg12xl/xTPAD1gP+D9CFx1aAsNJGPX69IeJ 7El62RuK/AOQPRZ2nN3R4OOCLAXsItKN8OgYjxz1gUi6HyLKxRY9gdS72Jw4xGu33IrD CNkNoy1gf8f4BBWPYIQFMMib7E9EGPKCWPj2VM/p97fce/XL2/eJbVOC8v76HLd6pViE O4loX/uE6U2ZBVml0pJNtd2dpIqoGp7uCTQO/To5jx+EOpMIB6LeAJIE8jp+7ib5X1JM fH1Na8gAh/OIlHQPnqUXoQ1K59LGAM3YxQTkV5GbzJyrTrrbUTukCSWb3vVZbgwJfYcv fMmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Dth3vHe2; 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 z21-20020a1709028f9500b00186a43ad5d0si9568309plo.604.2022.11.14.12.20.53; Mon, 14 Nov 2022 12:21:01 -0800 (PST) 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=qcppdkim1 header.b=Dth3vHe2; 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 S237554AbiKNUTh (ORCPT + 66 others); Mon, 14 Nov 2022 15:19:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237540AbiKNUT3 (ORCPT ); Mon, 14 Nov 2022 15:19:29 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D203CF7 for ; Mon, 14 Nov 2022 12:19:28 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AEJHHf3026397; Mon, 14 Nov 2022 20:19:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=t0vWIr9SmkMN7Aun78v+4xl2IPVSIkVX9lkyNjutuSk=; b=Dth3vHe2+l7psnZbBk0g3c0TuQe7pfoEicIo/8XYyQ6h5OrgbA0V34d1o3X57ZaDHO1m DjK31d3oZGmuSw2wY3/pLMY4EijhonILt127q58bhN+xPRvfzmXDlEm3wsqS/ZFm15sH 4MKpn30GnYre2OUHDjVTTX815qDsVByoQCGgUF36e6CHZAeoUU46Djvv0Sm9dcUyiUA1 DxCLkmSTWbum4kc4wc0HsKQflpEynetiy9mVScnf5sNYLoON3VDISrKVU2oI/cNv9kBL oo3yf+YGbLJqeSrE48GzsXmNTTQBDv+YOCNektW5q2SmjIVelLG/xmEQigafv6Nbq5le iA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kustpggbd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Nov 2022 20:19:24 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2AEKJN52028462 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Nov 2022 20:19:23 GMT Received: from alokad-linux.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Mon, 14 Nov 2022 12:19:22 -0800 From: Aloka Dixit To: , Subject: [PATCH v2 03/10] ath11k: set MBSSID and EMA driver capabilities Date: Mon, 14 Nov 2022 12:19:05 -0800 Message-ID: <20221114201912.22893-4-quic_alokad@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221114201912.22893-1-quic_alokad@quicinc.com> References: <20221114201912.22893-1-quic_alokad@quicinc.com> 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 nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 2IYQGPiJKoYGHW6Q0EJ7AEQlpV2ejxjW X-Proofpoint-ORIG-GUID: 2IYQGPiJKoYGHW6Q0EJ7AEQlpV2ejxjW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-14_13,2022-11-11_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211140143 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 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. Tested-on : IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 Signed-off-by: Aloka Dixit Co-developed-by: John Crispin Signed-off-by: John Crispin --- v2 - Rebase only 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 6426a38f8961..26616a7fc7e6 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -8858,19 +8858,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[] = { @@ -9099,6 +9103,9 @@ static int __ath11k_mac_register(struct ath11k *ar) wiphy_ext_feature_set(ar->hw->wiphy, NL80211_EXT_FEATURE_SET_SCAN_DWELL); + 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.17.1