Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp494158iof; Mon, 6 Jun 2022 07:22:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm26eRCIaVEjKT2yqd4aOmNysLwifNlZ1Uc/sxg+M9KT+DAIOjOnp0Pp06QcHt6PfwKsEF X-Received: by 2002:a05:6a00:a10:b0:51b:fbe1:cedb with SMTP id p16-20020a056a000a1000b0051bfbe1cedbmr11270055pfh.68.1654525378525; Mon, 06 Jun 2022 07:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654525378; cv=none; d=google.com; s=arc-20160816; b=be+TollFdxubKl4MmBGYAsNq37mZO3cYi+xtqDML8ZAstg8dqZmLuabwniruUTAUm4 dqekQghJw06nuksmDLkUnJYCjtlSk26tKt+V1gDoq1HleUR6oJRSN2GS4v7OR0fedAoL JszL8cIazQMKzIvNdTJiHfH5rKf7sekkyP5V8SVK2zdD8NbIp98cUprjK83aR+s7B9FA 3SUp55OhMEQWeJSWGQvFc1v6tNwLw7cXsE53Bheql4caEhpu6bIZlanSItev1MEHMUCy kMHectdJB0uPeTp2OoSx2ihaVPqrX8myeXD2/OAEW3QfM1oJmqLjaCVrqdv2BfimTHTE 1+JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=YUOM22oCdd1zeFWJ0R3hfYJM9JZBmLSdMRCUb9pLGVQ=; b=OcvJqwgPL5LpfQLunjvf7DcliDwGQRbiVTJgkv2+laxuy698Vow7d4q6AVCHy73FYF AuWOtIu3q8fa6YM1i5sUYGjUa65giOXCqFTleT7Poj3Sog1bjP7k/rSrEepRSrUD4k94 rMFt2RiCruTSJSWOd2xeFhDxmbslJfMyY7FBvIDF/byec44CIHpgHbnHVSjToC/NyQ+3 uBCPLk2axXbJQHFYqhmhSnjqrH8RHaJdxDHBkNa/uTwBPJPF6t4uai/OJnCRWLjjo+WW wm+iXuDtRNghaEH/DogEUFudabVDb8K8lfXQzcSAp1CdswzRsJFDVEg+nvjKOaXlu+Qw Cd+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l7GPPyhC; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 19-20020a631353000000b003c64016568dsi6823901pgt.429.2022.06.06.07.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 07:22:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l7GPPyhC; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4F41B275F3; Mon, 6 Jun 2022 07:11:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239596AbiFFOKy (ORCPT + 67 others); Mon, 6 Jun 2022 10:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239592AbiFFOKx (ORCPT ); Mon, 6 Jun 2022 10:10:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FFE3275C4 for ; Mon, 6 Jun 2022 07:10:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0FB3DB819FC for ; Mon, 6 Jun 2022 14:10:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1DF1C385A9; Mon, 6 Jun 2022 14:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654524649; bh=8VhyjTxv1+dQL+DkFd0bU0FBPuJ2fWCYDX8POlXeams=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=l7GPPyhCik3JLk3asyZHqAKEqcHy5v3TC4CqaZTmsQOOKblTrfNkDHJ93LyLcVAJX XPAeIh2QuHYPkK5bNPNLF6NnGz4CnV/F2JVPd6kJeQGKL3khnzZ7y2V00m7sSRiDN8 5iECrRS3Gmx7Xpje+xb94CTQqLLYhYuzRaF5DdwsCfOHkfoUkmuY9Ym81MzTs0XOWZ +FruGqansw6stu2sR9spHReUk0EmbklGvcaPmuvGMHCMwdkOCMp0udH6IN1wU3J4rP /Fp6ZfiQDTkBnRlHBu3p3HqIasql6Dm5fTeH06CMxZR3vuvtUuMaKkZGtQMN0P+qOj wOhIJ37zvXVww== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath11k: Fix LDPC config in set_bitrate_mask hook From: Kalle Valo In-Reply-To: <20220602124142.29909-1-quic_mpubbise@quicinc.com> References: <20220602124142.29909-1-quic_mpubbise@quicinc.com> To: Manikanta Pubbisetty Cc: , , Manikanta Pubbisetty User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <165452464285.15301.12888477923740045977.kvalo@kernel.org> Date: Mon, 6 Jun 2022 14:10:48 +0000 (UTC) X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Manikanta Pubbisetty wrote: > Currently ar->ht_cap_info is not set anywhere in the code, this could > result in LDPC config computed wrongly in the set_bitrate_mask() hook > and eventually sending wrong config to the target. Fix this by checking > the LDPC support from the band HT capabilities of the radio instead. > > Furthermore, it looks like firmwares running on the ath11k hardware > do not set WMI_HT_CAP_LDPC for advertising the TX LDPC capability, > WMI_HT_CAP_TX_LDPC is set instead and this should be checked for > getting hardware's TX LDPC support. This is true for QCA6390, WCN6855 > & WCN6750 hardware. > > Also, remove unused variables ht_cap_info & vht_cap_info from > struct ath11k{}. > > Found this during code review. > > Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 > > Signed-off-by: Manikanta Pubbisetty > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 4c1fc4f60a53 ath11k: Fix LDPC config in set_bitrate_mask hook -- https://patchwork.kernel.org/project/linux-wireless/patch/20220602124142.29909-1-quic_mpubbise@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches