Set random address before connection request
Send Set_Random_Address when privacy is enabled. If Set_Random_Address
is not sent to controller, Connection request will be sent with host
address as all 0's
Bug: 17386986
Change-Id: I59877e52bf76a56696800ff0e75487c633adde3c
diff --git a/stack/btm/btm_ble_gap.c b/stack/btm/btm_ble_gap.c
index f477956..f9011c3 100644
--- a/stack/btm/btm_ble_gap.c
+++ b/stack/btm/btm_ble_gap.c
@@ -582,7 +582,7 @@
if (p_cb->privacy)
{
/* generate resolvable private address */
- btm_gen_resolvable_private_addr(NULL);
+ btm_gen_resolvable_private_addr((void*)btm_gen_resolve_paddr_low);
}
else /* if privacy disabled, always use public address */
{