Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2531596lqt; Mon, 22 Apr 2024 13:30:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4yrHzyot4vdjjlW6m/J7T/vG0sDvKZ5oC57WHu2ztzFxnhQoNb2w4YxwMMHaSbcipCOYNpweAG51QYDbVptpY61CvEacITV1X1x37NA== X-Google-Smtp-Source: AGHT+IHtycdoBrBzsSGYE/UMYYgSCrgk7oVFuyZYN6dbZKhwklZa2KXG5OrfIQQRquy1pCJZGOSF X-Received: by 2002:ac8:57c8:0:b0:436:969b:abee with SMTP id w8-20020ac857c8000000b00436969babeemr14837636qta.31.1713817844434; Mon, 22 Apr 2024 13:30:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713817844; cv=pass; d=google.com; s=arc-20160816; b=FpI3QbjlRpJBI15Pr5ujplEKCjkGL4+lGl+WFQrL49gHCqnv2OPYjDjnuotN3R+dMW hUiBuCV4G+qWG5UP/c/5X6I9sbhHeWWoka6+pojwirzAiXcjVmr2i+q7oJyCpbBbpVUz E5JUWjGnERDCQack6JY3mCr++drD9/yu3tqMxw6jSv34WCuu500X8Fw/2Cuh+/y2+Zpk vQcehuXskOAWRCNAQpIz4lJ0xiChJaA+l6l0DcCsYAJLO12PjHQ7bwx6//wf+aoczEIe HbtJH7XL6vezXx7gHMmN85IGXeFEkqSYVf/B/bTGiCR0L+bo2lXmrwhFwVSS6L85FpAD A8QQ== 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=0GomIZghFLffr51ynVf3yJ+CpSLkv8zchnlTHz1ijFY=; fh=lP+FyPnTPmJOMA/wP4iC1fr6HzuBVIppIk9dmo9v2y0=; b=dOnQURasMOVF0PfE6Kc9L43LjFdhR5WvGHo3q2uZId54eREAHYT+uX0L8cHWuHkUSZ 6K1XmMAhGQMjy8IaT4H/72NCGhvnbM7VzQKZWK4A9FvIx122VxeddipjIRnfVECjRgL4 wXyahwH++HaPOIdhRUzyaTzem3myxU+/qs5Ah4qmxbz2L9r9X7+pEwS7M4bl9jQdblUW 4D4dhmijY4AWn33YoV8P7V6dkayIt2uIcxbrlqzF4vdjjr8oEVFiVpZl1Lz98FPhgGpx ktEyjU5aeJNGG4qN0IKgTxrEy4xXGmWpGuggrnfIdv16TM9Z8O1v6nWYfX5ji+a0ng68 arhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Nh31reGn; 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-6693-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v18-20020a05622a131200b00434610ed8e8si6856720qtk.803.2024.04.22.13.30.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 13:30:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6693-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Nh31reGn; 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-6693-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6693-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 125651C20C34 for ; Mon, 22 Apr 2024 20:30:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47653804; Mon, 22 Apr 2024 20:30:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Nh31reGn" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 968302F5E for ; Mon, 22 Apr 2024 20:30:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713817841; cv=none; b=ll3x82e5wGXPdpdzV9pi5uCgTfUn6aO6QvjA5Gmup1prw4JU9W5yo+BcKbywRF7VmLacm3AZW5L5vIAglvk4ZnWkqvQl1QPp3FylOfNrODWsJy70WQHGyGGYm5qxERiKr4zzalqjGn8GDgwOl/yYr8yZ3lIDXrMkUrUM1h9+P0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713817841; c=relaxed/simple; bh=DUr+hXEO0ywiunio/rjbAacA17kiBoc69A4DHndLrog=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=MLTQPf/8q7xluSacOlT/sSo3tRj/NXC3+lCp9tkZ9edlo/hZjuy3yijm2P8SHlwa/RBAAYHcnPB+7/ZcJxZs4bAyMxLv+YuGO6Wffcm8fx2zzgyuozIDUfK4VDfec2aRTRMrPL9eS6Nx74n057+X8W7RWRL8pKJ4tixtW2ome+I= 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=Nh31reGn; arc=none smtp.client-ip=205.220.180.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 (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43MELQxO026536; Mon, 22 Apr 2024 20:30:33 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=0GomIZghFLffr51ynVf3yJ+CpSLkv8zchnlTHz1ijFY=; b=Nh 31reGnCdm7pPnH5NR+uz09P5IeIyvif7wlH1awF0k8/WN4OhzadBA7C5NVBY/cTv 5PvTXN1ftDHNOK6i+0cBjakTqQShe6Xmu6YRznR5lVkujD2n5wuooeuMoawuriDu fttmgLf9rvqHNeNsCs8s7shJvp8B4mYqQeXG537KpEYJ42bLGGNktkZPD9rYWjbZ Y1pWfkkOhQIm6HGKBaOWxHnKLxzxDzFwhx3qdZzpcaD1rup0ljsVXzW16FMtsMJq vCqde8/D+9lJOEc9vX/bd21TwT8+wJXz5WXrRjQPZi/BO63DusRxOwp6gU3dhjH8 aOUm1SG26GxKKpsZnE5g== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xnsjggwrp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Apr 2024 20:30:33 +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 43MKUWLG018723 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Apr 2024 20:30:32 GMT Received: from [10.227.110.203] (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; Mon, 22 Apr 2024 13:30:31 -0700 Message-ID: Date: Mon, 22 Apr 2024 13:30:31 -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] wifi: ath11k: move power type check to ASSOC stage when connecting to 6 GHz AP Content-Language: en-US To: Baochen Qiang , CC: References: <20240420015632.2869-1-quic_bqiang@quicinc.com> From: Jeff Johnson In-Reply-To: <20240420015632.2869-1-quic_bqiang@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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-GUID: j0y2MYnm7Xpr-Y6s6BsY63q0pRPgrZQy X-Proofpoint-ORIG-GUID: j0y2MYnm7Xpr-Y6s6BsY63q0pRPgrZQy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-22_14,2024-04-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 phishscore=0 mlxlogscore=999 lowpriorityscore=0 adultscore=0 mlxscore=0 impostorscore=0 spamscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404220086 On 4/19/2024 6:56 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 > > Signed-off-by: Baochen Qiang Acked-by: Jeff Johnson