]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: rtw89: obtain RX path from ppdu status IE00
authorChih-Kang Chang <gary.chang@realtek.com>
Mon, 15 Sep 2025 06:52:06 +0000 (14:52 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 18 Sep 2025 01:13:20 +0000 (09:13 +0800)
The header v2 of ppdu status is optional, If it is not enabled, the RX
path must be obtained from IE00 or IE01. Append the IE00 part.

Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250915065213.38659-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/txrx.h

index 20d8f2221f816bfbbd24cb265d11b8827c92a78f..b116f8d718ac8715c2b7de78b190eefee4e79e24 100644 (file)
@@ -1897,6 +1897,10 @@ static void rtw89_core_parse_phy_status_ie00(struct rtw89_dev *rtwdev,
 
        tmp_rpl = le32_get_bits(ie->w0, RTW89_PHY_STS_IE00_W0_RPL);
        phy_ppdu->rpl_avg = tmp_rpl >> 1;
+
+       if (!phy_ppdu->hdr_2_en)
+               phy_ppdu->rx_path_en =
+                       le32_get_bits(ie->w3, RTW89_PHY_STS_IE00_W3_RX_PATH_EN);
 }
 
 static void rtw89_core_parse_phy_status_ie00_v2(struct rtw89_dev *rtwdev,
index 82d6874337b55764495ba3c9aa8272714f40eccf..984c9fdbb018b262100b589d3af56fe6a086c9a2 100644 (file)
@@ -572,6 +572,7 @@ struct rtw89_phy_sts_ie00 {
 } __packed;
 
 #define RTW89_PHY_STS_IE00_W0_RPL GENMASK(15, 7)
+#define RTW89_PHY_STS_IE00_W3_RX_PATH_EN GENMASK(31, 28)
 
 struct rtw89_phy_sts_ie00_v2 {
        __le32 w0;