Linux wireless drivers development
 help / color / mirror / Atom feed
From: Jeff Johnson <quic_jjohnson@quicinc.com>
To: Kang Yang <quic_kangyang@quicinc.com>, <ath12k@lists.infradead.org>
Cc: <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v5 08/11] wifi: ath12k: fix incorrect logic of calculating vdev_stats_id
Date: Mon, 29 Jan 2024 17:40:12 -0800	[thread overview]
Message-ID: <585ebc14-b3ef-4c09-99a4-b8b855add274@quicinc.com> (raw)
In-Reply-To: <20240129101453.368494-9-quic_kangyang@quicinc.com>

On 1/29/2024 2:14 AM, Kang Yang wrote:
> During calculate vdev_stats_id, will compare vdev_stats_id with
> ATH12K_INVAL_VDEV_STATS_ID by '<='. If vdev_stats_id is relatively
> small, then assign ATH12K_INVAL_VDEV_STATS_ID to vdev_stats_id.
> 
> This logic is incorrect. Firstly, should use '>=' instead of '<=' to
> check if this u8 variable exceeds the max valid range.
> 
> Secondly, should use the maximum value as comparison value.
> 
> Correct comparison symbols and use the maximum value
> ATH12K_MAX_VDEV_STATS_ID for comparison.
> 
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
> Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
> 
> Signed-off-by: Kang Yang <quic_kangyang@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>


  reply	other threads:[~2024-01-30  1:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-29 10:14 [PATCH v5 00/11] wifi: ath12k: P2P support for WCN7850 Kang Yang
2024-01-29 10:14 ` [PATCH v5 01/11] wifi: ath12k: change interface combination for P2P mode Kang Yang
2024-01-29 10:14 ` [PATCH v5 02/11] wifi: ath12k: add P2P IE in beacon template Kang Yang
2024-01-29 10:14 ` [PATCH v5 03/11] wifi: ath12k: implement handling of P2P NoA event Kang Yang
2024-01-29 10:14 ` [PATCH v5 04/11] wifi: ath12k: implement remain on channel for P2P mode Kang Yang
2024-01-29 10:14 ` [PATCH v5 05/11] wifi: ath12k: change WLAN_SCAN_PARAMS_MAX_IE_LEN from 256 to 512 Kang Yang
2024-01-29 10:14 ` [PATCH v5 06/11] wifi: ath12k: allow specific mgmt frame tx while vdev is not up Kang Yang
2024-01-29 10:14 ` [PATCH v5 07/11] wifi: ath12k: fix broken structure wmi_vdev_create_cmd Kang Yang
2024-01-30  1:39   ` Jeff Johnson
2024-01-30  1:49     ` Kang Yang
2024-01-29 10:14 ` [PATCH v5 08/11] wifi: ath12k: fix incorrect logic of calculating vdev_stats_id Kang Yang
2024-01-30  1:40   ` Jeff Johnson [this message]
2024-01-29 10:14 ` [PATCH v5 09/11] wifi: ath12k: move peer delete after vdev stop of station for WCN7850 Kang Yang
2024-01-29 10:14 ` [PATCH v5 10/11] wifi: ath12k: designating channel frequency for ROC scan Kang Yang
2024-01-29 10:14 ` [PATCH v5 11/11] wifi: ath12k: advertise P2P dev support for WCN7850 Kang Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=585ebc14-b3ef-4c09-99a4-b8b855add274@quicinc.com \
    --to=quic_jjohnson@quicinc.com \
    --cc=ath12k@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=quic_kangyang@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox