All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@kernel.org>
To: Aditya Kumar Singh <quic_adisi@quicinc.com>
Cc: Jeff Johnson <jjohnson@kernel.org>,
	 <linux-wireless@vger.kernel.org>, <ath12k@lists.infradead.org>,
	 <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/3] wifi: ath12k: fix CAC running state during virtual interface start
Date: Thu, 19 Dec 2024 15:28:14 +0200	[thread overview]
Message-ID: <87a5crhkep.fsf@kernel.org> (raw)
In-Reply-To: <20241218-ath12k_mlo_dfs-v1-2-058e783bcfc7@quicinc.com> (Aditya Kumar Singh's message of "Wed, 18 Dec 2024 09:11:33 +0530")

Aditya Kumar Singh <quic_adisi@quicinc.com> writes:

> Currently, the DFS CAC time and the usable state of the primary channel in
> the channel definition are used to set the CAC_RUNNING flag for the ath12k
> radio structure. However, this approach is flawed because there are channel
> definitions where the primary channel is not a DFS channel, but the
> secondary channel is. For example, in 5 GHz band, channel 36 with 160 MHz
> bandwidth. In such cases, the flag is not set correctly and hence places
> where this flag is tested will not operate as expected. For example, Rx
> packets will not be dropped.
>
> To fix this issue, use the cfg80211_chandef_dfs_usable() function from
> cfg80211, which returns true if at least one channel is in a usable state.
> This will ensure the CAC_RUNNING flag is set properly.
>
> Additionally, update the CAC running debug log message to include the CAC
> time in milliseconds and also print the center frequency segment 1.
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>

Acked-by: Kalle Valo <kvalo@kernel.org>

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


  reply	other threads:[~2024-12-19 13:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-18  3:41 [PATCH 0/3] wifi: ath12k: add MLO DFS support Aditya Kumar Singh
2024-12-18  3:41 ` [PATCH 1/3] wifi: ath12k: rename CAC_RUNNING flag Aditya Kumar Singh
2024-12-19 13:27   ` Kalle Valo
2024-12-18  3:41 ` [PATCH 2/3] wifi: ath12k: fix CAC running state during virtual interface start Aditya Kumar Singh
2024-12-19 13:28   ` Kalle Valo [this message]
2024-12-18  3:41 ` [PATCH 3/3] wifi: ath12k: handle radar detection with MLO Aditya Kumar Singh
2024-12-19 13:29   ` Kalle Valo
2025-01-08  0:32 ` [PATCH 0/3] wifi: ath12k: add MLO DFS support Jeff Johnson

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=87a5crhkep.fsf@kernel.org \
    --to=kvalo@kernel.org \
    --cc=ath12k@lists.infradead.org \
    --cc=jjohnson@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=quic_adisi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.