[PATCH OLK-6.6 024/525] wifi: ath12k: fix possible out-of-bound write in ath12k_wmi_ext_hal_reg_caps()