wifi: rtw89: coex: Add PTA path control condition for chip RTL8922A
authorChing-Te Ku <ku920601@realtek.com>
Thu, 18 Apr 2024 02:12:02 +0000 (10:12 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 23 Apr 2024 11:48:00 +0000 (19:48 +0800)
PTA(packet traffic arbitration) is a coexistence hardware feature.
Wi-Fi & Bluetooth owns their PTA, the function is to show whose PTA
control the traffic now. RTL8922A PTA control is controlled by hardware
logic, there is no register to monitor the setting.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240418021207.32173-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c

index aa5b396b5d2ba920532e99160ef85fe0aa880457..8b34044f7a8a512e4bf1f479b096a99935a0958e 100644 (file)
@@ -5705,7 +5705,7 @@ bool rtw89_mac_get_ctrl_path(struct rtw89_dev *rtwdev)
        const struct rtw89_chip_info *chip = rtwdev->chip;
        u8 val = 0;
 
-       if (chip->chip_id == RTL8852C)
+       if (chip->chip_id == RTL8852C || chip->chip_id == RTL8922A)
                return false;
        else if (chip->chip_id == RTL8852A || chip->chip_id == RTL8852B ||
                 chip->chip_id == RTL8851B)