Legacy advertiser should be notified about connection success only
if we're the slave of connection.
Bug:
68712406
Test: bonding with device while using legacy advertising
Change-Id: I4790fb9c8a4f58ea76f6b28fd5384479f2fee0d8
btm_ble_update_mode_operation(role, &bda, status);
- btm_ble_advertiser_notify_terminated_legacy(status, handle);
+ if (role == HCI_ROLE_SLAVE)
+ btm_ble_advertiser_notify_terminated_legacy(status, handle);
}
/*****************************************************************************