Commit e5f57ad0 authored by Ping-Ke Shih's avatar Ping-Ke Shih Committed by Kalle Valo

rtw88: no need to send additional information to legacy firmware

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: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarYan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200422034607.28747-3-yhchuang@realtek.com
parent 15d2fcc6
...@@ -271,6 +271,9 @@ rtw_fw_send_general_info(struct rtw_dev *rtwdev) ...@@ -271,6 +271,9 @@ rtw_fw_send_general_info(struct rtw_dev *rtwdev)
u8 h2c_pkt[H2C_PKT_SIZE] = {0}; u8 h2c_pkt[H2C_PKT_SIZE] = {0};
u16 total_size = H2C_PKT_HDR_SIZE + 4; 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); rtw_h2c_pkt_set_header(h2c_pkt, H2C_PKT_GENERAL_INFO);
SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size); SET_PKT_H2C_TOTAL_LEN(h2c_pkt, total_size);
...@@ -291,6 +294,9 @@ rtw_fw_send_phydm_info(struct rtw_dev *rtwdev) ...@@ -291,6 +294,9 @@ rtw_fw_send_phydm_info(struct rtw_dev *rtwdev)
u16 total_size = H2C_PKT_HDR_SIZE + 8; u16 total_size = H2C_PKT_HDR_SIZE + 8;
u8 fw_rf_type = 0; u8 fw_rf_type = 0;
if (rtw_chip_wcpu_11n(rtwdev))
return;
if (hal->rf_type == RF_1T1R) if (hal->rf_type == RF_1T1R)
fw_rf_type = FW_RF_1T1R; fw_rf_type = FW_RF_1T1R;
else if (hal->rf_type == RF_2T2R) else if (hal->rf_type == RF_2T2R)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment