memset(&btc->mdinfo, 0, sizeof(btc->mdinfo));
 }
 
-#define BTC_FWINFO_BUF 1024
-
 #define BTC_RPT_HDR_SIZE 3
 #define BTC_CHK_WLSLOT_DRIFT_MAX 15
 #define BTC_CHK_HANG_MAX 3
                              struct rtw89_btc_btf_fwinfo *pfwinfo,
                              u8 *pbuf, u32 buf_len)
 {
+       const struct rtw89_chip_info *chip = rtwdev->chip;
        struct rtw89_btc_prpt *btc_prpt = NULL;
        u32 index = 0, rpt_len = 0;
 
 
        while (pbuf) {
                btc_prpt = (struct rtw89_btc_prpt *)&pbuf[index];
-               if (index + 2 >= BTC_FWINFO_BUF)
+               if (index + 2 >= chip->btc_fwinfo_buf)
                        break;
                /* At least 3 bytes: type(1) & len(2) */
                rpt_len = le16_to_cpu(btc_prpt->len);