diff options
| author | Bitterblue Smith <rtl8821cerfe2@gmail.com> | 2026-06-10 16:02:21 +0300 |
|---|---|---|
| committer | Ping-Ke Shih <pkshih@realtek.com> | 2026-07-03 10:24:55 +0800 |
| commit | 617b1d97617bd44319e796811cf5cd4a2cf634fc (patch) | |
| tree | 5518612d206bfa6965fbf4deedaff1b77c408bfd | |
| parent | a4a2c1a1032f8254e18b44cfdbe7e2be433b758f (diff) | |
| download | linux-stable-617b1d97617bd44319e796811cf5cd4a2cf634fc.tar.gz linux-stable-617b1d97617bd44319e796811cf5cd4a2cf634fc.zip | |
wifi: rtw88: 8822b: Don't process RF path C in query_phy_status_page1
Replace <= with < in the loop in query_phy_status_page1(). It was
processing data related to RF path C, which this chip doesn't have.
The only bad effect seems to be that the phy_info file in debugfs was
printing unexpected values for RF path C.
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/9c4beb36-2954-4db0-844a-74ba5eacf21b@gmail.com
| -rw-r--r-- | drivers/net/wireless/realtek/rtw88/rtw8822b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822b.c b/drivers/net/wireless/realtek/rtw88/rtw8822b.c index e9e8a7f3f382..37b7a520fea0 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822b.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822b.c @@ -896,7 +896,7 @@ static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, pkt_stat->cfo_tail[RF_PATH_A] = GET_PHY_STAT_P1_CFO_TAIL_A(phy_status); pkt_stat->cfo_tail[RF_PATH_B] = GET_PHY_STAT_P1_CFO_TAIL_B(phy_status); - for (path = 0; path <= rtwdev->hal.rf_path_num; path++) { + for (path = 0; path < rtwdev->hal.rf_path_num; path++) { rssi = rtw_phy_rf_power_2_rssi(&pkt_stat->rx_power[path], 1); dm_info->rssi[path] = rssi; dm_info->rx_snr[path] = pkt_stat->rx_snr[path] >> 1; |
