Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2621228rdb; Fri, 22 Sep 2023 04:15:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7Z1R/1FKfU07BlEVSfAuffzt5PX+cnrJjsGi92s8PdlZrwlLeOJ7kHR9JJvAjbcF5AF2s X-Received: by 2002:a05:6a20:144b:b0:15d:8eea:27a3 with SMTP id a11-20020a056a20144b00b0015d8eea27a3mr3214185pzi.3.1695381354736; Fri, 22 Sep 2023 04:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695381354; cv=none; d=google.com; s=arc-20160816; b=BBqI4OOMBWhtZtc+d0eKMkLI/6ZEMinjY6l1ZZYE03p+zJUIPPrnYw+RSiYhT3+mu1 +jtbP7DHhRSHX5ng2XpmHCb8mJHu5fmiWScRd4P//c4L8ZsI1Oqul0Np0JB4YATuAtYP kHWNboIlPoTKyyELCJJpVcsYcBj4e/t5mYPH0H6wU1O3/txTUCyti+4bb/jeOR3tZKYh Dm7fofI/vH5gDVRnEPotvfQN3zrAX30VkqMReTkJqM84LysLPFBffoT1UOYIgd3KBU4q R8Hn/yulEmD2c2cs6kW09YWXQSzAaz2qx28IhQY31N1ESNpKQr/aZGyXv+NTURvwMDz+ CgAA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=o0Nr3JaK4ACHBQ9cEw/9pzJX41KNkkCuXnAmbNGduk4=; fh=75CDHJDuowxspHrWYGyFkxqtTsCAv36FxKet5aSzFkk=; b=WkNKbCvs4F9Es5sXJCSUZbZ3w2hl70aBzDuaeycU+yDMDwCWYSU9p95mmqkZXLzhyQ lhAldfvpuzq5TPTEhUfmjLJ0mhDDHz7MGB+DLAXZjK7txDlZXj/lorMloEMqmIyZ1w9X VAelThmUvQdX5Yp9zjdm+EYwa1yer82GKctkFN8dJrA5xdWv0Y/0dqnRbg80Xz1vZsFK EMJax8xBPf355bqnKb+9Tlzv1QRFxpdTu3oY4eqayUgyMsn29zAUbnOLp/mlcbTTUBgW HOMWPd3rgtjn5Hcog0b+Xr/4Bgqfp2pqMDkwRrYT51pMDDYt1KA/uLLgih9HZpCB4MhB plCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ErEjijGh; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id by26-20020a056a02059a00b005774978dd75si3942303pgb.175.2023.09.22.04.15.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 04:15:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ErEjijGh; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id A58228072838; Fri, 22 Sep 2023 02:40:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229497AbjIVJkR (ORCPT + 56 others); Fri, 22 Sep 2023 05:40:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232940AbjIVJkP (ORCPT ); Fri, 22 Sep 2023 05:40:15 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F6D819D for ; Fri, 22 Sep 2023 02:40:07 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38M9CIf1013527; Fri, 22 Sep 2023 09:40:01 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=o0Nr3JaK4ACHBQ9cEw/9pzJX41KNkkCuXnAmbNGduk4=; b=ErEjijGhgGDc/zgm1giHPDP72cbwISdaqqpr6rzn7MbfoT+FmRi8XftbREQYeHKjPWSz TAbGKRMiNhVU05kGuMdMOYuttOSEamH1vId5l6h6L/3QlcEK+AqxjtspVNehF0ZOg8Cr oX25DQXBu+z/SBaQC6sBW+tQXAGcuDbG9DTJ3ro0hLI+tgyyTPCpXeDckbOruuaW4btQ QfDnS3cUiMW9KxxtNMK55SS1fEWm/yihYBcIS5pkCsY0UZMkUUjpThMRiWABuYfzdAtr +D9RHNlBDT6wwoj3Oochr0qVNy0JSvZ7vFGe7D5q2co2iY0D6GPIxV5Skq9PLVYDk8ue HA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t8u5n1hpc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 09:40:00 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38M9e0XZ014369 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 09:40:00 GMT Received: from [10.216.13.153] (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; Fri, 22 Sep 2023 02:39:57 -0700 Message-ID: <5e9439c5-fc02-4a18-8cc8-c76998bfcbc6@quicinc.com> Date: Fri, 22 Sep 2023 15:09:54 +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 Content-Language: en-US To: Wen Gong , CC: , , References: <20230920082349.29111-1-quic_wgong@quicinc.com> <20230920082349.29111-6-quic_wgong@quicinc.com> From: Aditya Kumar Singh In-Reply-To: <20230920082349.29111-6-quic_wgong@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 2cd1UFnGnZkTrFlOnNJOA_Kc7zB3VbG5 X-Proofpoint-GUID: 2cd1UFnGnZkTrFlOnNJOA_Kc7zB3VbG5 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-22_07,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 priorityscore=1501 malwarescore=0 spamscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 clxscore=1015 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309220080 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 22 Sep 2023 02:40:13 -0700 (PDT) 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?