rtw88: no need to send additional information to legacy firmware
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 22 Apr 2020 03:46:01 +0000 (11:46 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 23 Apr 2020 04:47:20 +0000 (07:47 +0300)
The firmware of 11AC devices need more information to support more offload
functions, such as IQK. And 11N devices such as 8723D does not support
offload these function in firmware, there is no need to send these additional
information to firmware when it comes to 11N devices.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200422034607.28747-3-yhchuang@realtek.com
drivers/net/wireless/realtek/rtw88/fw.c

index 209853f..dde7823 100644 (file)
@@ -271,6 +271,9 @@ rtw_fw_send_general_info(struct rtw_dev *rtwdev)
        u8 h2c_pkt[H2C_PKT_SIZE] = {0};
        u16 total_size = H2C_PKT_HDR_SIZE + 4;
 
+       if (rtw_chip_wcpu_11n(rtwdev))
+               return;
+
        rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_GENERAL_INFO);
 
        SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size);
@@ -291,6 +294,9 @@ rtw_fw_send_phydm_info(struct rtw_dev *rtwdev)
        u16 total_size = H2C_PKT_HDR_SIZE + 8;
        u8 fw_rf_type = 0;
 
+       if (rtw_chip_wcpu_11n(rtwdev))
+               return;
+
        if (hal->rf_type == RF_1T1R)
                fw_rf_type = FW_RF_1T1R;
        else if (hal->rf_type == RF_2T2R)