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

Commit 6de4fb5e authored by Sharvil Nanavati's avatar Sharvil Nanavati
Browse files

Fix build: BTM_BleLocalPrivacyEnabled is called from outside BLE_PRIVACY_SPT guard.

Change-Id: I1ca7f824e035b496c9c038b9afdb4c4f2af4234b
parent ca75f1e7
Loading
Loading
Loading
Loading
+18 −15
Original line number Diff line number Diff line
@@ -578,21 +578,6 @@ void BTM_BleConfigPrivacy(BOOLEAN enable)
    }
}


/*******************************************************************************
**
** Function         BTM_BleLocalPrivacyEnabled
**
** Description        Checks if local device supports private address
**
** Returns          Return TRUE if local privacy is enabled else FALSE
**
*******************************************************************************/
BOOLEAN BTM_BleLocalPrivacyEnabled()
{
    return btm_cb.ble_ctr_cb.privacy;
}

/*******************************************************************************
**
** Function         btm_ble_resolve_random_addr_on_adv
@@ -635,6 +620,24 @@ static void btm_ble_resolve_random_addr_on_adv(void * p_rec, void *p)
}
#endif

/*******************************************************************************
**
** Function         BTM_BleLocalPrivacyEnabled
**
** Description        Checks if local device supports private address
**
** Returns          Return TRUE if local privacy is enabled else FALSE
**
*******************************************************************************/
BOOLEAN BTM_BleLocalPrivacyEnabled()
{
#if BLE_PRIVACY_SPT == TRUE
    return btm_cb.ble_ctr_cb.privacy;
#else
    return false;
#endif
}

/*******************************************************************************
**
** Function         BTM_BleSetBgConnType