Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1032196lqm; Thu, 2 May 2024 03:16:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUW9uN1KCg0QmEaR1eG/Tu3m45lwyrBg/YJDdx85/JrTdfnAR+1aK8LPifPbRUgOhAVYZf5MyJqNClFiQbK9ps5WIMvarCwI7vczbVN7Q== X-Google-Smtp-Source: AGHT+IEASopV1YlGUFgweODDjfahgrhz/Datz01priR1VvKQGc0vJY9oLDXW4QuhWhnL4ShYj7a+ X-Received: by 2002:a05:690c:350a:b0:61a:b573:65f4 with SMTP id fq10-20020a05690c350a00b0061ab57365f4mr5525161ywb.6.1714645011156; Thu, 02 May 2024 03:16:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714645011; cv=pass; d=google.com; s=arc-20160816; b=vZZZrcVGCSSUDN0Uw9a02Gd3yDJpcZxlrV7xPUmslnUdCLnfhUgrkg4FAztBqJC3zP xH2FKx1a3nyj9uWAFeUsQOxTXPfVLGMXfdqOPKceAiDSsIs5kuTIKj4l/Og4flLgqC/q I8SVq4cQFa30tf22lMDfdtuHQI9YcLhxw+S/P69Ugu3PZ0fzg3gjiz+/A9l4hNK4SElc BvFbI8dto/GDLzgd5Pn/OYIh03pLh1zt9GE9DD4MZyUdj8U11zE9STD5Tl+3JB7D8Wy1 V3YSJkc04tXq31vRBF9NDsUAbMDNR3ancE0ZpAp5l27FUn5DxS1Gb9+VM1NwzY4z7t89 s7Ww== 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=SkXpY4A0t0K/IdmfsoA3rc3ydfEz4HjqgcCMAHrsi7Y=; fh=Jk6m7CXRxVrI6bhAhKDFAVrH8YqM64JRKqQS8KcSWPs=; b=PYeNPOaBuZGVAZ8iyrVkze2EHkmptkvmbL7cGpefXfNpoZp4nzScIXpBB8/UB4u+1L BKNc0JCvHurV58WUdTlnT5FRz/lHd3dn3zXchsS82Sdv90S4Yl27DTd7IlvkjLwjKOxf pk8oL3g35S1OYOS9yjbF8auDjTINjGzkGW4SjvltZUJ5jGo5SP+oDS45mSMzwVFTjJfu Mn1jELDps0tpFzBvbaKgjGD56EsKciUNxU395AJgPYfU/Crr8qHs0IBNeGuKySF7BpA/ d9aAbFFv6VIO4+uwZL5Rj4YSXyuCBlt3V4ZyCPxL4QNm93NACEteEdkpo25gL9uRTi1Q 3Pdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kHR5z81P; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a7-20020a05622a02c700b00436895b4ce1si662177qtx.543.2024.05.02.03.16.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 03:16:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kHR5z81P; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7110-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C880C1C20355 for ; Thu, 2 May 2024 10:16:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDAAC56B8B; Thu, 2 May 2024 10:16:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kHR5z81P" 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 958BE56B85 for ; Thu, 2 May 2024 10:16:47 +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=1714645007; cv=none; b=lzzV4wDC7QTeKKK/rFAI+UHBJ55J2XGDQEdUT6aZSkDYunEiKi5I7kxLnSgrU9VNZgii5X+Kx45mG21XrCDdsgv1D1RwMpY09sLlOXJCy1OyKkMZwYto+cu/6nIz8ekETHuMrBVhiLC18jyg4YHisGMzPaeY7hM3a+TIvOa5YMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714645007; c=relaxed/simple; bh=RC+YsNvF5u9BaYOcoKiAusrWX9nqtl9ZOmyWCsuEoj4=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=gWXZu8DTK7PUCkdZdG4wEiNtU7rGh2RPk/xuUNpM+6Xz/RqVm3p6vDfe8dWpFw+KbXnDWOs1LNvUZLg7ptkvUsJ/GlEo8nJrU3PHe2JH5WhsqXJ66qGs9gNXlsoevtSG98Sn+rmv4Es/C89/qxQcPyZUebfQ6pelr4Iw+IatjuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kHR5z81P; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 165C7C113CC; Thu, 2 May 2024 10:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714645007; bh=RC+YsNvF5u9BaYOcoKiAusrWX9nqtl9ZOmyWCsuEoj4=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=kHR5z81P7ZS/PzfaXM6qZwUMqD7IbD6nBK7h8WN2EHZTglsXeyG/wEo7Q+22V/Lxz bMs68s3kDk/jNVWWVZ7GQOYRTInuKIxSx+AY/qfvparJls4FTZho4I+u80V0ipOWG3 xj5nT7nwwUDKCibQos9NXyM+OZRU/GYQusQMEeb6Zws0a+0d5EUqqamwllgD6MJN9O jukiIl7hTKgQJnlFDs8tgCy3fEXgZCF60IfKJvdAC4SYcvn0BaLX0092FO1rE+FCAT 7pqhPGRT9fc9POf6FTneRO3BqgE49OEXcYcJG+tBXLmpDNdBw2CTMfX1QF8eJHyu3w y/voEH4VqyJHQ== 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: 8bit Subject: Re: [PATCH] wifi: ath12k: fix the problem that down grade phy mode operation From: Kalle Valo In-Reply-To: <20240425083837.5340-1-quic_lingbok@quicinc.com> References: <20240425083837.5340-1-quic_lingbok@quicinc.com> To: Lingbo Kong Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171464500387.548512.12268613053950785024.kvalo@kernel.org> Date: Thu, 2 May 2024 10:16:45 +0000 (UTC) Lingbo Kong wrote: > Currently, when using WCN7850 or QCN9274 as AP, ath12k always performs down > grade phy mode operation regardless of whether the firmware supports EHT > capability or not and then vdev will start in HE mode. When stations that > support EHT capability try to connect to the AP, the AP will set phy mode > to EHT after receiving the association request packet, and then send > WMI_PEER_ASSOC_CMDID command to firmware, AP’s firmware will crash. > > This is because when the ath12k_mac_copy_sband_iftype_data() function > handles EHT capability, it does not copy the EHT capability into the > iftype[band][type] array according to the interface type. So, interface > type should not be used as an index to get eht_cap in > ath12k_mac_check_down_grade_phy_mode() function. > > To address this issue, use types_mask to select the eht_cap in > ath12k_mac_check_down_grade_phy_mode() function. > > This patch affects QCN9274 and WCN7850 because they have the same issue. > > Hostapd log: > wlo1: STA 02:03:7f:37:12:34 IEEE 802.11: Could not set STA to kernel driver > > Kernel log: > [270894.816076] ath12k_pci 0000:03:00.0: failed to send WMI_PEER_SET_PARAM cmd > [270894.816111] ath12k_pci 0000:03:00.0: failed to setup peer SMPS for vdev 0: -108 > [270894.816122] ath12k_pci 0000:03:00.0: Failed to associate station: 02:03:7f:37:12:34 > [270894.843389] ieee80211 phy5: Hardware restart was requested > [270894.843517] ath12k_pci 0000:03:00.0: failed to lookup peer 02:03:7f:37:12:34 on vdev 0 > [270894.843616] ath12k_pci 0000:03:00.0: failed to send WMI_PEER_DELETE cmd > [270894.843650] ath12k_pci 0000:03:00.0: failed to delete peer vdev_id 0 addr 02:03:7f:37:12:34 ret -108 > [270894.843663] ath12k_pci 0000:03:00.0: Failed to delete peer: 02:03:7f:37:12:34 for VDEV: 0 > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Lingbo Kong > Acked-by: Jeff Johnson > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. bf76b144fe53 wifi: ath12k: fix the problem that down grade phy mode operation -- https://patchwork.kernel.org/project/linux-wireless/patch/20240425083837.5340-1-quic_lingbok@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches