From: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
To: Jonathan Wolf <wolf@pi0.com>, ath12k@lists.infradead.org
Cc: jjohnson@kernel.org, vasanthakumar.thiagarajan@oss.qualcomm.com,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH ath-current v3] wifi: ath12k: parse the nested DBS/SBS capability TLV
Date: Fri, 20 Nov 2026 10:13:50 +0800 [thread overview]
Message-ID: <46ad0af4-b719-48c3-b653-7367c5b2a136@oss.qualcomm.com> (raw)
In-Reply-To: <20261119191717.215161-1-wolf@pi0.com>
On 11/20/2026 3:17 AM, Jonathan Wolf wrote:
> The DBS/SBS capability in WMI_SERVICE_READY_EXT2_EVENTID is inside a
> WMI_TAG_ARRAY_STRUCT. The array payload starts with the inner TLV
> header. Casting that pointer to struct ath12k_wmi_dbs_or_sbs_cap_params
> makes ath12k read hw_mode_id as sbs_lower_band_end_freq.
>
> On WCN7850 with hardware mode 5 and a 5900 MHz cutoff, this gives an
> SBS frequency range of 4900-5 MHz. The driver can then map the 5 GHz
> and 6 GHz links to the same MAC and request deactivation of one link.
>
> Use ath12k_wmi_tlv_iter() to reach the capability payload. Check the
> tag and minimum payload length before converting the cutoff to CPU byte
> order. Clear the cached cutoff before parsing so an empty array leaves
> it at zero.
>
> Fixes: 241d130f1419 ("wifi: ath12k: parse and save sbs_lower_band_end_freq from WMI_SERVICE_READY_EXT2_EVENTID event")
> Signed-off-by: Jonathan Wolf <wolf@pi0.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
prev parent reply other threads:[~2026-11-20 2:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 19:17 Jonathan Wolf
2026-11-20 2:13 ` Baochen Qiang [this message]
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=46ad0af4-b719-48c3-b653-7367c5b2a136@oss.qualcomm.com \
--to=baochen.qiang@oss.qualcomm.com \
--cc=ath12k@lists.infradead.org \
--cc=jjohnson@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=vasanthakumar.thiagarajan@oss.qualcomm.com \
--cc=wolf@pi0.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
all inboxes | Powered by JetHome®