From c09540f7f5dc712fda7e2179602514c0738092b6 Mon Sep 17 00:00:00 2001 From: Andre Eisenbach Date: Fri, 22 May 2015 16:38:54 -0700 Subject: [PATCH] Fix problem where multi-adv instances cannot be re-used After using all multi-adv instances and stopping them, the instance ID for each instance is incorrectly reset, causing the instance to be not usable anymore. Bug: 21404808 Change-Id: Ie3a3f07bc2204c7268567cb56248cd3eb7751742 --- stack/btm/btm_ble_multi_adv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack/btm/btm_ble_multi_adv.c b/stack/btm/btm_ble_multi_adv.c index dfd31e38c..6ee3e94cf 100644 --- a/stack/btm/btm_ble_multi_adv.c +++ b/stack/btm/btm_ble_multi_adv.c @@ -740,7 +740,7 @@ tBTM_STATUS BTM_BleDisableAdvInstance (UINT8 inst_id) { btm_ble_multi_adv_configure_rpa(&btm_multi_adv_cb.p_adv_inst[inst_id-1]); btu_stop_timer_oneshot(&btm_multi_adv_cb.p_adv_inst[inst_id-1].raddr_timer_ent); - btm_multi_adv_cb.p_adv_inst[inst_id-1].inst_id = 0; + btm_multi_adv_cb.p_adv_inst[inst_id-1].in_use = FALSE; } } return rt; -- 2.11.0