Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp375025lqd; Wed, 24 Apr 2024 05:20:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHske5sHoZzwSHX5P64UiD9jGZi/KnReu58YZ7vN6F6gbp5vV+bUIt2mIsyJBnGO1iv8INL9vv7Cdzx5tYjl9f/3oW6IfYWN0ELQldrw== X-Google-Smtp-Source: AGHT+IHSCa6NKjvI1vIBAzuJpEw63vFksTp/BAMaWs63NA6w9Ubbq1rbj6NAAEH36YT983aoebxA X-Received: by 2002:a05:6870:a492:b0:239:52f9:80f2 with SMTP id j18-20020a056870a49200b0023952f980f2mr3022909oal.5.1713961242598; Wed, 24 Apr 2024 05:20:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713961242; cv=pass; d=google.com; s=arc-20160816; b=IAzRAyc71PTxowLJeGhH1zc4bUOpJzCIUqUR6CGXIHSBvJAjkAp/t3Dp7gSZk0i2qs 6WUtugC9S8ajZHXt9PE0uXSIdeecmhEfVaOUnI4qoy3uvzc8iesa8edXnqBlQJFX1Tvr ifumdAieAlNXtBkvd091X4zGhINdlG8w6OaYW2WX19r4YEujJ0T/i/mpVEDXnmfLF9fK UjSNOSa/WXtB/OQHqK28hvYssNAvqbDrdir69IYSG/pdEax+vypGTMA4xFinWbmDP2RN +x3z3uCakASNZ3xR0h2Cb2Km70S77vOVkZZnEsyNqyzHTfL2dWVoXZAVXhr6ncFFRGt8 XyYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=317GPnD0XiodRRLiBJGXgBpY5wN4nQ/nzSbnGwjnpyw=; fh=MZyShLgMg7p4A+etc9WDHDSDT5SGpdoY5scRfMt1KHE=; b=eqAP3aGe0JfIYCwB5wvmUZil/MC34+O7nnuH2YejNnBHCBfzv2+DCHHfbH5tHbNbid xVbVl5X9gxI5spza2nLf2mNnNSwq/I/zC3ToQ07PKgUeKbBIFkeXewTJJn/VplAsx3KW t6AffQd8Yk4n2b+ZvWOGPYl3qqFLu5xVTABnzyMUsV7sNk0eBKwYb0skM9miEpqMt3fj NM33OFMCcT6XjRHI29HoOvvPQpodyCsIXuJaFMF0I7JJlaFny9zrpX1vbTnM2bgHdX38 KsPrZeJFK9Zhu2+JIgvwRG0wLqms7NhBJroTKRnZYTujKaQLutzJrkrvAnYXW56mgJft on+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZMhX2I3g; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6768-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6768-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r17-20020a639b11000000b005f0a540fe9esi11623141pgd.781.2024.04.24.05.20.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 05:20:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6768-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=@kernel.org header.s=k20201202 header.b=ZMhX2I3g; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6768-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6768-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C6ED62839B4 for ; Wed, 24 Apr 2024 12:20:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75F2115A4BA; Wed, 24 Apr 2024 12:20:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZMhX2I3g" 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 516111DFCE for ; Wed, 24 Apr 2024 12:20:37 +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=1713961238; cv=none; b=QDw01sTma790zz2vG7bbBWtwugovzMKn4e2wk02KvY2QGKT1bismNE8TNYiRMLboCiYoxt6YWz5cWe0hgCfQNmMur14d5a3qMhQWx4p+JZJPbVqScKfwGuzCHH6MuFhC8WwUx81c68bpvM0MywiivVe1izQuulONK5iL41458qg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713961238; c=relaxed/simple; bh=9z/dwUBt/YCH6nE7fyydHYHQPhYb6AEbu6BFuSqaymM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=idFyOXVwn4vgMBOJNE44rLHxN5wpigSxkLduBITO7oZirSXO3OmbZiw46sM//NZ0/mTe6+pyWxgIeE7XRedBM7cs7olDQJKBmHEg/JUnVXiSie+40jP7rN7RZ9Hqb9JlE1QPjwldJzFDFj81IdvMkBTHbqC7HmrzOLejsNHQzfk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZMhX2I3g; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F347CC113CE; Wed, 24 Apr 2024 12:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713961237; bh=9z/dwUBt/YCH6nE7fyydHYHQPhYb6AEbu6BFuSqaymM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ZMhX2I3gXmMQ7JSi6/Ly0yFRG20ERwQ0ArAC/hUF/uqzZdoSG05c2Gf4IOmQGMshw z8k+/r793R87rcMkDS+JmrPUJcqBsZ1HJSbwJdfpsiaGEJgBG8vU+idOuLjj+bNCOO FT03CEop59ISQ5QuLu35EokJuExwYEU4bx5RZ4liI3elxND+chWjVyyu5nXnoQCbMY zQd4R8N7P/gnNgao26yBajyQctcLuGcS1t0iw5IWRTSgHTIHxQYe/iwiNduNYncQyh 0BQHq30wnEZtTn51TVg3/Aad15d0onQZaitDXQpG0v4TEMEeomL9181KRaOL/djDRX P9CVlzOjGKPpA== From: Kalle Valo To: Baochen Qiang Cc: , Subject: Re: [PATCH v2] wifi: ath11k: move power type check to ASSOC stage when connecting to 6 GHz AP References: <20240424064019.4847-1-quic_bqiang@quicinc.com> Date: Wed, 24 Apr 2024 15:20:34 +0300 In-Reply-To: <20240424064019.4847-1-quic_bqiang@quicinc.com> (Baochen Qiang's message of "Wed, 24 Apr 2024 14:40:19 +0800") Message-ID: <875xw7t0j1.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Baochen Qiang writes: > 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 > --- > v2: > - add check on 'arvif->chanctx.def.chan' in ath11k_mac_op_sta_state() > to avoid NULL pointer dereference. > - add 'Fixes:' tag. Thanks, this seems to fix the crash I saw. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches