Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp643010lqd; Wed, 24 Apr 2024 12:21:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5oQttBuCPyAeZjJYY8Mv/uOlij5e5wcL6iuvc/umQBa7Ca0uVVF2Awt5nuvRZDuBPzREsMiw0oygb/peYKU+ife50basmejNhk54fbw== X-Google-Smtp-Source: AGHT+IFlhGinKpMrlIPSqqoXTNRmW5Bg6zHbsopNaaQ5sR0v2VhQAS3/WX2KI4vWAlUJEaU94fNE X-Received: by 2002:a17:903:1d2:b0:1e3:e081:d29b with SMTP id e18-20020a17090301d200b001e3e081d29bmr3232276plh.45.1713986499288; Wed, 24 Apr 2024 12:21:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713986499; cv=pass; d=google.com; s=arc-20160816; b=RV0MvI4w/Oht9CrZpD4hM169QWmMQCGNN1QPhDGC0b+oNGDJJy8rjFrAOuxVly0Bs+ yc+x+FJihTkxwsirwwtviXb63KFmBsZXoDZOFOUKhndQROq99j1V48ZwLyUS6yMY8IgX IgiV9ldCp3dnclwZdzCY8tUV69/WaLnDCzklrNH1+mFZ71WcCsDG5WnU/eLyr339dcXk q1BDm+mGOyvzhBHJrdvv/wlHClaY4wZ8HAgqXKE9s5j8dRyGrEv24Tg6h7VnsahQM0K3 8QfpKlTO1bmv1RzxCSg5AH845TN8gdEVAxtNxoklnxgO6UUEWL7FGGpiuU5hhwAUL3kQ mMzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=FmEz90mLg+X/Fk3zU+3vWeVOWu5yjEYpf57mGWxtqJw=; fh=lP+FyPnTPmJOMA/wP4iC1fr6HzuBVIppIk9dmo9v2y0=; b=reuE0ieXgsg75g8VM5DC/NPID8DZfDB64cJIHdhIU3uz+HNwzYc5eS9ovflkxqCVeX xvFRE+sT91ZVNMcGloF050qy3UwEwG5sv4Zm44kYy01mb2dKcKk8s5I1FTYawUi/xPpn HnEw0GjADsWQl8zlsJkuaR+OYObSG6sX5lM2B3OsgKh0nEGlKbOrY8XWbd6Q0bOPa6Jw ONc+iXL1j/2PKCSckluFYTPCJHOsWsNY1Fc+W2yJuTLr4d1JCRacgnrTPOqmlzC9pJnb yYXWaRSKPHNhxs+Mwi3Ls2nWWn4iZfe1oE4lNm61ENG1XAD1Gt1J8lS1X+iFLgvG3iOR k9+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fvkNQy0w; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-6783-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6783-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j5-20020a170903028500b001e43db0a261si12020064plr.546.2024.04.24.12.21.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 12:21:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6783-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fvkNQy0w; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-6783-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6783-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E767D2849DD for ; Wed, 24 Apr 2024 19:21:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A282774432; Wed, 24 Apr 2024 19:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="fvkNQy0w" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E4421C6A4 for ; Wed, 24 Apr 2024 19:21:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713986495; cv=none; b=bshOF4Ptrfmwr4aONrR2ZUy1WPZ1s2mCYJlyLANv1q1hIctYq35YVNoTOEfPjTbyrEESCvpkNG16+Gd6ZzrGGAYDIdRGSdzCqBG6pUMQNwhgSAcfIPQh3FWUiltD903uxy0HFZCkPhgTrqotVxXKhOD/CUdSNjbxEfyUht+x1UA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713986495; c=relaxed/simple; bh=Wxq6/RbemoOCDeagjQPLuQhf9i7bOe3n1Cpk4ZIwagA=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=s6RA5ylAaODj23w3NP4FCSR6h04KLaAlQlPtW3RhnzGoBsAVhSrgeQ7ST9aoKWm2ZsoiG/dbmpJzVO0thdbqugEAo8IQbV1ni31PsBbQDieIBF1Dd/4UGmIBYGlWXetJ3N3XQMrBv5TN9fUmeIIn0bApLSX0PIC+BjIxlzcqdJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=fvkNQy0w; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43OImTrH027552; Wed, 24 Apr 2024 19:21:30 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=FmEz90mLg+X/Fk3zU+3vWeVOWu5yjEYpf57mGWxtqJw=; b=fv kNQy0wA9E12T0UPiGzjWD7UW/Zkha0w1tjfKVpP4HMVmLwhfVq6epk7iGvwB7KkI wsgRjEKqLavkqyNYPMdPSTnGfLh+byCKiqrOnWutZxB5hHuU7JZvA/Q1do6MIaPN Q13oTp5W4ccd5BM+qUCU2vn8bku2dA6apoaU0FDnFiSO/UvA+RjkNZ2U75J0V45M lr7Y1n724M4x8f+TT9uZPr9nFn9Pgu0UE/lmTCYG7eFcAX5pGJ9ygQkX/1KUtiX6 udwH2kHY4RpYbI02EgvPwUOLnX9AtdpbiIlgsJkbawkvPPYXVfHpiMkKDq1I2f66 RiBE5cUtJl5+15t+335A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xpv9fj0td-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 19:21:30 +0000 (GMT) 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 43OJLTra029005 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 19:21:29 GMT Received: from [10.110.61.159] (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.1544.9; Wed, 24 Apr 2024 12:21:29 -0700 Message-ID: <470c1d0a-a090-4a50-91f6-b7bab4ea9441@quicinc.com> Date: Wed, 24 Apr 2024 12:21:28 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] wifi: ath11k: move power type check to ASSOC stage when connecting to 6 GHz AP Content-Language: en-US To: Baochen Qiang , CC: References: <20240424064019.4847-1-quic_bqiang@quicinc.com> From: Jeff Johnson In-Reply-To: <20240424064019.4847-1-quic_bqiang@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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-GUID: MTfgmK8p1UtWyLBsgQMA50szj_Tz0kVD X-Proofpoint-ORIG-GUID: MTfgmK8p1UtWyLBsgQMA50szj_Tz0kVD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-24_16,2024-04-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 bulkscore=0 spamscore=0 priorityscore=1501 adultscore=0 phishscore=0 mlxscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404240093 On 4/23/2024 11:40 PM, Baochen Qiang wrote: > With commit bc8a0fac8677 ("wifi: mac80211: don't set bss_conf in parsing") > ath11k fails to connect to 6 GHz AP. > > This is because currently ath11k checks AP's power type in > ath11k_mac_op_assign_vif_chanctx() which would be called in AUTH stage. > However with above commit power type is not available until ASSOC stage. > As a result power type check fails and therefore connection fails. > > Fix this by moving power type check to ASSOC stage, also move regulatory > rules update there because it depends on power type. > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.30 > > Fixes: bc8a0fac8677 ("wifi: mac80211: don't set bss_conf in parsing") > Signed-off-by: Baochen Qiang Acked-by: Jeff Johnson