Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1283489rdh; Mon, 25 Sep 2023 08:15:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGE5KCVycchYgESUg0fDpFuwm9WtFvq7/ERKINBMxaZFLm00x57U8DPlnYAcweHiRdwtLA X-Received: by 2002:a9d:7556:0:b0:6b8:6785:ed0b with SMTP id b22-20020a9d7556000000b006b86785ed0bmr8469851otl.30.1695654913419; Mon, 25 Sep 2023 08:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695654913; cv=none; d=google.com; s=arc-20160816; b=P+zGKzk36J1WW22/3jk52Dcs2UB2DkK2VrMwOv2E1JMf27iOfdASVfHvUGGbV3R2dK 87yhBzY4aoCLmkwYpYm5VNC3Zx+PN5lorBP0DwBT9GbNP0O35ec2/KQC3cBWIyfhR8le D6HTXyEb7yf2+bc3BngKhqVtkyrJ1aHREmL554gCHq/nIuSY6QHa9KhuAOmNrhXeVk72 yqzg8k84FPmp44U+Eg2h36aWtN7Jah+EuY3UBJRKTKB00znu8u9yF8nZe0rErHxLy467 1Vu/ogRsBgGjO3PLc20lrj3pjN7HqAZrt2QlLFiCk8ArIwijMa+m1UM7Rlzk4BDn6Gwm kcpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kH2BXfAPrm7TQ7VktIozGJE73v9t0Nm9tLO71EuhCSQ=; fh=75CDHJDuowxspHrWYGyFkxqtTsCAv36FxKet5aSzFkk=; b=z3TX/jRZCPFdV0y7DGz2ERmA/0hsNyuDHAznqfTQDHwUJheHmLMyoWjP4tEpkAXBYj o0NH4tUagUG8YLeQG9mA42wPv2mbFK22ks/XEOCFjkNIuWNjRzjpi23GqWKXpL2iTuhd KMtS2KJUa48T/3wXkVMzRkbf7zyItgMOhdvCBF/bhlYx0mbC7ugfo5SwSCkkQHB02IWt jjj9IMvK64ZvdjNl1gXzYGqWyRxkvoWwAAT84bRzzj+ZSygnNtaJFKKk2pgAdbax8Pbd ZgLVjKZWfvzEyUXqjKCHswL9s44ybvqRwMUvhS2f4g2rZiVpB0c9+mL0R1AUkJ/kwk61 sw6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gKX0chG9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x64-20020a638643000000b00578d71ef3d7si8215741pgd.733.2023.09.25.08.15.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 08:15:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gKX0chG9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0D32381DAAF4; Mon, 25 Sep 2023 03:53:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229899AbjIYKxN (ORCPT + 56 others); Mon, 25 Sep 2023 06:53:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjIYKxM (ORCPT ); Mon, 25 Sep 2023 06:53:12 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1127CAB for ; Mon, 25 Sep 2023 03:53:06 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38P8eBWi007206; Mon, 25 Sep 2023 10:53:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=kH2BXfAPrm7TQ7VktIozGJE73v9t0Nm9tLO71EuhCSQ=; b=gKX0chG9aLEB/tBAsm7qK4VB1Kp4mSMBk/rXfqNjWF1N1BGtpusEK4nMpgfyfdM9vEuF gfFU7OB/7Wa72X+x4ECqUgyqn50DWNNxj43A+OCKDEkuefb8xzdnTMQ3QsjWDFmf1XwQ wEZhtSoA9TuPTcwfikqaYWv6xPT+HWXb+ouzMatBWrUSAhf2Kxy1u/I1PlMqt026TU3+ NRkfL4Fk9drN/kaGE4caDW1dQyJXa8rhH7JeZKQ52Ruj4wBTjHC9RkdX4n9MeNxOd+/E 892NEVm2sdtKs6mibUcTr8zrkzWtB3VjbUaffY8vr0mlTl6GWbukkWSUv/hQipg+vH7B DQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tb5n88e95-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 10:53:01 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38PAr11o013459 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 10:53:01 GMT Received: from [10.201.207.136] (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.1118.36; Mon, 25 Sep 2023 03:52:59 -0700 Message-ID: <5f95f931-e75f-459b-a7c7-b175ba12f981@quicinc.com> Date: Mon, 25 Sep 2023 16:22:44 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 05/13] wifi: ath11k: update regulatory rules when connect to AP on 6 GHz band for station To: Wen Gong , CC: , , References: <20230920082349.29111-1-quic_wgong@quicinc.com> <20230920082349.29111-6-quic_wgong@quicinc.com> <5e9439c5-fc02-4a18-8cc8-c76998bfcbc6@quicinc.com> <1f739d62-d5c0-a64b-ef9b-d5fd7b79755e@quicinc.com> <47e2ce79-2885-489c-b567-fdbcb120d056@quicinc.com> <2aae986b-1d16-3b75-d2c9-a740f6817650@quicinc.com> Content-Language: en-US From: Aditya Kumar Singh In-Reply-To: <2aae986b-1d16-3b75-d2c9-a740f6817650@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: h0IsI7vet3y_yPwrmRPwC7Vd4RR9hiSg X-Proofpoint-GUID: h0IsI7vet3y_yPwrmRPwC7Vd4RR9hiSg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-25_08,2023-09-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxscore=0 adultscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 spamscore=0 clxscore=1015 malwarescore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309250080 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 03:53:09 -0700 (PDT) On 9/25/23 16:13, Wen Gong wrote: > On 9/22/2023 9:18 PM, Aditya Kumar Singh wrote: >> On 9/22/23 15:32, Wen Gong wrote: >>> On 9/22/2023 5:39 PM, Aditya Kumar Singh wrote: >>>> On 9/20/23 13:53, Wen Gong wrote: >>>> >>>>> +    if (ath11k_mac_supports_6ghz_cc_ext(ar) && >>>>> +        ctx->def.chan->band == NL80211_BAND_6GHZ && >>>>> +        arvif->vdev_type == WMI_VDEV_TYPE_STA) { >>>>> +        reg_info = &ab->reg_info_store[ar->pdev_idx]; >>>>> +        power_type = vif->bss_conf.power_type; >>>>> +        ath11k_dbg(ab, ATH11K_DBG_MAC, "mac chanctx power type %d\n", >>>>> +               power_type); >>>>> +        if (power_type == IEEE80211_REG_UNSET_AP) >>>>> +            power_type = IEEE80211_REG_LPI_AP; >>>> Why having _UNSET_ power type in vif->bss_conf.power_type is fine? >>>> Typically, during association, we would be setting this from the >>>> beacon/association response frame's HE 6 GHz Operation Info Field. >>>> So is it fine if the field is carrying some info which we don't know >>>> (or may be don't support it yet)? Why are we masking it with _LPI_ >>>> mode? >>>> >>>> Also, I see that currently mac80211 only sets LPI or SP. So let's >>>> say STA is trying to connect to VLP AP, mac80211 will set it as >>>> _UNSET_. And then here, we will be treating it as LPI AP. Is that fine? >>> >>> Currently only SP/LPI are defined in "Table E-12—Regulatory Info >>> subfield encoding in the United States" of IEEE Std 802.11ax™‐2021. >>> >>> So maybe I need to set power_type to VLP when it is UNSET here. >> Yeah, or may be deny association if we don't support that mode? I >> would let others comment on this. > Do you know how to check which mode support by ath11k? IMHO we should not maintain two different supported modes, one in driver and another in mac80211. I mean w.r.t mac80211 we should try to match it as far as possible. In this case, we can return error from mac80211 itself when a non-supported mode (as in VLP) is trying to associate? Since as you have quoted, VLP is not yet defined in spec IEEE Std 802.11ax‐2021 so why to mask the mode and continue in mac80211 itself? If we do like this, then mac80211 will not simply set _UNSET_ for 6 GHz client interface and in driver if we see its still _UNSET_ then we can be sure that something has gone wrong and we can take steps accordingly.