Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp970472lqp; Thu, 23 May 2024 05:48:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6UUQZyK+ZWsulfv0GJlxgPhA1mHzPEX0odBI+rHkpc1d2ZhTXmU0GYhoXR0aZ3yMQTxKSXAwmoSjS1FagAKZpLDvi967upPSAXVirPQ== X-Google-Smtp-Source: AGHT+IHllO9jRDRFc+Vw0ldcU3yx14+KdkwV4uFNMxJBPmKq1xDoKfqS5Nu8x3GtBLoZoILSN9eM X-Received: by 2002:a17:906:3887:b0:a62:3c94:3bd2 with SMTP id a640c23a62f3a-a623c943e04mr161450566b.73.1716468490306; Thu, 23 May 2024 05:48:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716468490; cv=pass; d=google.com; s=arc-20160816; b=TyF7U2ozmG3VTbwH6Pr9a97nkfML2MmuZOO7Rq4X31OML0kviV7mV/Wd3vRCb8Vo2m O+BtqvZl8X3bC19qi4m7ddXCOVvGdM1ymJxKZXVBKbRA6byriIJdZz5Zysej3GlmmGOD rnLqAIgSB7DIb8IweAfLP8lwR3mEqsIe+cwfDqpDdeWICu5AiXc7vmgR7zTNbsAg5RYT Rzg61vyD5NqL6VeICPVBFhv4hjN6Ww1UxhmamcEWhPdBXf5DHRScUujx8mOgbjKWT2Ty f+vEx14V/uny6aPmdY0Ex8C3wcvsSg0WliMMRMWG4pnCiasmgzZWuxLMQFXUt0TZfBVQ MXqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=QS8NGmRKPyHVeqoNrF/0pqKzSE8vUptW/3HTmYxN59g=; fh=tPHBA95q4A2JsKJMw3mMqQ5Xsp/Qmg3wcY5CiIlDe3k=; b=0rqTZp6U/hj4NdgH8rLK2O7jR04l2vAZjDUxfOoGCUqIvQDHBuWXe2XvdSqzMuCgPr Q4Cqs4EwytiL39Vo0Zf6Bl67tvAISu3/C4C2ijBVohLyTBLtusjBETsgBYbZLQ9A4Nu8 7lb3sMEyy0Wo/DYbjxsIOvXKar7+wzf4w8Q6/ZWSS1XH5Di1a5Y5RjEibSB+D0kZJPbp GaTwR5aoSo8gMKymlsizYTCtO0kP4PyvKik+W0uMaTH0Ph2x1JGNeqA1CAncO6wIz9As cKUJJQoeGYcjZSDATVQ4zWID/hW6Dd2wSlt/3H4I1mf9Lrt9W30viyaGTL4LgLZCoMxW BLLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b1Tppuyf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17946017si1679856466b.97.2024.05.23.05.48.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 05:48:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b1Tppuyf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0E1F71F21BDE for ; Thu, 23 May 2024 12:48:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C040113B5B0; Thu, 23 May 2024 12:48:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b1Tppuyf" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9C0648174C for ; Thu, 23 May 2024 12:48:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716468486; cv=none; b=EhV6V0MWOO70kiO+bdAfB7xNzbhfoLwVikBF6IC1kWGTqmso8wF/5+R7UvVduJtPZWT86becJsv7XI2mC+Ni1k/E+YT16Si+pEneMDPBGAj4pXmthsh6tlgWVDrB7mqa4ewWPip+90dL987+kXjFutNnPj/QOrlQDDVXXw/4u2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716468486; c=relaxed/simple; bh=mw3AjiCutiW5+eW1CEA3+1A3NI+qqQKSV7bBWw+3fjY=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=pvbEKzZ8ArM4bjhJ1qR1OMETGgUe83ihtkSdeqyP+CSFNln7wHaQAZ0Nxubdews/Ck6gnZR3JhAQ58yomXm/NmnuWtT/J3Maq85dE1KrUoyJ9vqVOhGFnqOpVrX9Hzfk49+gMDP/6w9b3e+oNhwlTgsvGGQ5zVm2CVgKh58ijpA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b1Tppuyf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86F49C2BD10; Thu, 23 May 2024 12:48:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716468486; bh=mw3AjiCutiW5+eW1CEA3+1A3NI+qqQKSV7bBWw+3fjY=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=b1TppuyfHaDkLG+zR2kEdUMzGxX7W6VLxyicvyEaietYeTmVXKCxmrNFYPYnScRN5 vjJ/lyjEo7xU+Dx1v+LP4LXgW1PK+TYHtNRuamyM0VMNm7YMGzwV8GPRl5752HLoUl FwQAxtZ0n43T3rYwhNR8eRax+YnrPBkM0vZ/R+tvpAlxTVltVNiOM6RDuvp6i5+L7X UngRfLRK2P1NCbOH8hLT/6/4o+B+ALR2bZGRvWYXwYFlmtMcCdGqH9QExE6O1/OqKy UQ0DNSZW9jNKCLb+s8dc23EDaNCD8K1Z61AGhdTVKblztCBw1XBS3CbnzR4nsQBKE9 LbNBOgSvbJ9jg== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] wifi: ath11k: move power type check to ASSOC stage when connecting to 6 GHz AP From: Kalle Valo In-Reply-To: <20240424064019.4847-1-quic_bqiang@quicinc.com> References: <20240424064019.4847-1-quic_bqiang@quicinc.com> To: Baochen Qiang Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171646848396.213015.14022235573584346331.kvalo@kernel.org> Date: Thu, 23 May 2024 12:48:05 +0000 (UTC) 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 > Signed-off-by: Kalle Valo Patch applied to ath-current branch of ath.git, thanks. 6e16782d6b4a wifi: ath11k: move power type check to ASSOC stage when connecting to 6 GHz AP -- https://patchwork.kernel.org/project/linux-wireless/patch/20240424064019.4847-1-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches