Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa986dc5 authored by Priti Aghera's avatar Priti Aghera Committed by Andre Eisenbach
Browse files

Enable local privacy configuration based on flag

Included a check to make local privacy configuration only if
BLE_PRIVACY_SPT flag is TRUE. This fixes the compile time error
when privacy is disabled.

Bug: 16901853
Change-Id: I4eeff8d8f725970aba87f3231eac9fd727efa71f
parent dfee01da
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1983,7 +1983,7 @@ void BTA_DmBleEnableRemotePrivacy(BD_ADDR bd_addr, BOOLEAN privacy_enable)
*******************************************************************************/
*******************************************************************************/
void BTA_DmBleConfigLocalPrivacy(BOOLEAN privacy_enable)
void BTA_DmBleConfigLocalPrivacy(BOOLEAN privacy_enable)
{
{
#if BLE_INCLUDED == TRUE
#if BLE_INCLUDED == TRUE && BLE_PRIVACY_SPT == TRUE
    tBTA_DM_API_LOCAL_PRIVACY *p_msg;
    tBTA_DM_API_LOCAL_PRIVACY *p_msg;


    if ((p_msg = (tBTA_DM_API_LOCAL_PRIVACY *) GKI_getbuf(sizeof(tBTA_DM_API_ENABLE_PRIVACY))) != NULL)
    if ((p_msg = (tBTA_DM_API_LOCAL_PRIVACY *) GKI_getbuf(sizeof(tBTA_DM_API_ENABLE_PRIVACY))) != NULL)