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

Commit 77b29253 authored by Mike J. Chen's avatar Mike J. Chen
Browse files

Set some SMP and GATT to FALSE if BLE is FALSE



Also add asserts that SMP and GATT are never TRUE
if BLE is FALSE since that would make no sense.

Change-Id: I6530fe0255da0b237daa82b1b0dff286f2c5225d
Signed-off-by: default avatarMike J. Chen <mjchen@google.com>
parent e01562e3
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -264,7 +264,15 @@
#endif

#ifndef BTA_GATT_INCLUDED
#if BLE_INCLUDED == TRUE
#define BTA_GATT_INCLUDED TRUE
#else
#define BTA_GATT_INCLUDED FALSE
#endif
#endif

#if BTA_GATT_INCLUDED == TRUE && BLE_INCLUDED == FALSE
#error "can't have GATT without BLE"
#endif

#ifndef BTA_DISABLE_DELAY
@@ -1465,7 +1473,15 @@ and USER_HW_DISABLE_API macros */
**
******************************************************************************/
#ifndef SMP_INCLUDED
#if BLE_INCLUDED == TRUE
#define SMP_INCLUDED         TRUE
#else
#define SMP_INCLUDED         FALSE
#endif
#endif

#if SMP_INCLUDED == TRUE && BLE_INCLUDED == FALSE
#error "can't have SMP without BLE"
#endif

#ifndef SMP_DEBUG