Bluetooth: Assign max adv instance value from vendor capabilities
This change assigns the value of the max instances supported
for multiple advertisement, to the multi adv block
Change-Id: Ide181f8cad7a290a0dac8fdd01ae3ed2187868ef
diff --git a/stack/btm/btm_ble_gap.c b/stack/btm/btm_ble_gap.c
index 602cf53..85228b0 100644
--- a/stack/btm/btm_ble_gap.c
+++ b/stack/btm/btm_ble_gap.c
@@ -461,7 +461,7 @@
if (p_ctrl_le_feature_rd_cmpl_cback != NULL)
p_ctrl_le_feature_rd_cmpl_cback(status);
-
+ btm_multi_adv_cb.adv_inst_max = btm_cb.cmn_ble_vsc_cb.adv_inst_max;
BTM_TRACE_DEBUG("btm_ble_vendor_capability_vsc_cmpl_cback:%d, status=%d, max_irk_size=%d",
btm_multi_adv_cb.adv_inst_max, status,btm_ble_vendor_cb.irk_avail_size);
}