]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: coex: Add parser for Bluetooth channel map report version 7
authorChing-Te Ku <ku920601@realtek.com>
Sat, 8 Mar 2025 02:58:31 +0000 (10:58 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 13 Mar 2025 01:02:27 +0000 (09:02 +0800)
In order to rearrange the structure member, the format update to version 7.
And to parse the report correctly, add the related logic.

Signed-off-by: Ching-Te Ku <ku920601@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250308025832.10400-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.c
drivers/net/wireless/realtek/rtw89/core.h

index 94445c1d64d1889efe030e66366a8e6d9145fbbf..659b92b14d881d0b9da4378b0a0b77730aec4d3c 100644 (file)
@@ -1540,6 +1540,9 @@ static u32 _chk_btc_report(struct rtw89_dev *rtwdev,
                } else if (ver->fcxbtafh == 2) {
                        pfinfo = &pfwinfo->rpt_fbtc_btafh.finfo.v2;
                        pcinfo->req_len = sizeof(pfwinfo->rpt_fbtc_btafh.finfo.v2);
+               } else if (ver->fcxbtafh == 7) {
+                       pfinfo = &pfwinfo->rpt_fbtc_btafh.finfo.v7;
+                       pcinfo->req_len = sizeof(pfwinfo->rpt_fbtc_btafh.finfo.v7);
                } else {
                        goto err;
                }
index c32b74df1443a2c6e911a0910416ad04d5b0dd01..4be05d6cad187d18775d06930b6b5c3f8276e85c 100644 (file)
@@ -3044,6 +3044,7 @@ struct rtw89_btc_rpt_cmn_info {
 union rtw89_btc_fbtc_btafh_info {
        struct rtw89_btc_fbtc_btafh v1;
        struct rtw89_btc_fbtc_btafh_v2 v2;
+       struct rtw89_btc_fbtc_btafh_v7 v7;
 };
 
 struct rtw89_btc_report_ctrl_state {