Linux wireless drivers development
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Ho Jie Feng <hjf3108@gmail.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	Bitterblue Smith <rtl8821cerfe2@gmail.com>,
	Luka Gejak <luka.gejak@linux.dev>
Subject: RE: [PATCH rtw-next v5 6/7] wifi: rtw88: 88xxa: correct carrier-frequency offset
Date: Wed, 2 Dec 2026 02:37:41 +0000	[thread overview]
Message-ID: <85c057dbadcc4cbab5dac7b8ed5574bc@realtek.com> (raw)
In-Reply-To: <20261127180034.1058591-7-hjf3108@gmail.com>

Ho Jie Feng <hjf3108@gmail.com> wrote:
> Use the newly promoted helpers to implement CFO tracking for 88xxa.
> 
> The PHY status of each received frame reports a CFO tail per RF path.
> The CFO tracking code averages them and corrects the offset if the
> offset is too large.
> 
> RTL8814A has four RF paths, but reports a CFO tail only for paths A
> and B, so we only take the CFO tail of 2 paths.
> 
> The crystal cap is 6 bits wide on all chips except RTL8822C. Obtain
> the correct value by masking it. For RTL8814A, use 0x20 if the
> the efuse is empty, like the vendor driver.
> 
> Signed-off-by: Ho Jie Feng <hjf3108@gmail.com>

A small nit. Otherwise, 

Acked-by: Ping-Ke Shih <pkshih@realtek.com>


[...]

> @@ -1632,6 +1637,17 @@ void rtw88xxa_query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status,
>                         power_b = power_a;
> 
>                 pkt_stat->signal_power = max3(power_a, power_b, min_rx_power);
> +
> +               pkt_stat->cfo_tail[RF_PATH_A] =
> +                       (s8)le32_get_bits(rpt->w2, RTW_JGRPHY_W2_CFO_TAIL_A);
> +               pkt_stat->cfo_tail[RF_PATH_B] =
> +                       (s8)le32_get_bits(rpt->w2, RTW_JGRPHY_W2_CFO_TAIL_B);

nit: force casting is not necessary. 

> +
> +               /* convert to kHz (used only for debugfs) */
> +               for (i = RF_PATH_A; i < rtwdev->hal.rf_path_num; i++)
> +                       dm_info->cfo_tail[i] = (pkt_stat->cfo_tail[i] * 5) >> 1;
> +
> +               rtw_phy_parsing_cfo(rtwdev, pkt_stat);
>         }
>  }
>  EXPORT_SYMBOL(rtw88xxa_query_phy_status);


  parent reply	other threads:[~2026-12-02  2:37 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 18:00 [PATCH rtw-next v5 0/7] wifi: rtw88: extend 88xxA support Ho Jie Feng
2026-11-27 18:00 ` [PATCH rtw-next v5 1/7] wifi: rtw88: 8812a, 8814a: enable STBC for HT transmissions Ho Jie Feng
2026-11-28 15:43   ` Luka Gejak
2026-12-02  2:15   ` Ping-Ke Shih
2026-11-27 18:00 ` [PATCH rtw-next v5 2/7] wifi: rtw88: skip the dynamic CSI rate without a cfg_csi_rate op Ho Jie Feng
2026-11-28 15:43   ` Luka Gejak
2026-12-02  2:17   ` Ping-Ke Shih
2026-11-27 18:00 ` [PATCH rtw-next v5 3/7] wifi: rtw88: correctly expose beamformee capabilities Ho Jie Feng
2026-11-28 15:43   ` Luka Gejak
2026-12-02  2:19   ` Ping-Ke Shih
2026-11-27 18:00 ` [PATCH rtw-next v5 4/7] wifi: rtw88: 88xxa: receive VHT SU beamformed transmissions Ho Jie Feng
2026-11-28 15:44   ` Luka Gejak
2026-12-02  2:24   ` Ping-Ke Shih
2026-11-27 18:00 ` [PATCH rtw-next v5 5/7] wifi: rtw88: prepare frequency-offset correction for more chips Ho Jie Feng
2026-11-28 15:44   ` Luka Gejak
2026-12-02  2:29   ` Ping-Ke Shih
2026-11-27 18:00 ` [PATCH rtw-next v5 6/7] wifi: rtw88: 88xxa: correct carrier-frequency offset Ho Jie Feng
2026-11-28 11:29   ` Luka Gejak
2026-11-28 15:36     ` Jie Feng
2026-11-28 15:42       ` Luka Gejak
2026-11-28 15:44   ` Luka Gejak
2026-12-02  2:37   ` Ping-Ke Shih [this message]
2026-11-27 18:00 ` [PATCH rtw-next v5 7/7] wifi: rtw88: 8812a, 8821a: respect peer A-MPDU size limits Ho Jie Feng
2026-11-28 11:29   ` Luka Gejak
2026-11-28 15:37     ` Jie Feng
2026-11-28 15:44   ` Luka Gejak
2026-11-28 15:48     ` Jie Feng
2026-12-02  2:42   ` Ping-Ke Shih
2026-12-02  2:51     ` Jie Feng

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=85c057dbadcc4cbab5dac7b8ed5574bc@realtek.com \
    --to=pkshih@realtek.com \
    --cc=hjf3108@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luka.gejak@linux.dev \
    --cc=rtl8821cerfe2@gmail.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