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

Commit 2920bd64 authored by Cheney Ni's avatar Cheney Ni
Browse files

btsnoop: Fix TRUE is undefined for btsnoop socket

Because TRUE / FALSE macro is moved to bt_target.h, there is no more
such definition if including only bt_types.h.

Bug: 163134718
Tag: #refactor
Test: check BTSnoop socket is running when only BT_NET_DEBUG=true
Change-Id: I7ac1d5aeaf3eb4f910cf4498fb7096b6cf4c9fe7
parent 20b4bb12
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ static int listen_socket_ = -1;
static int client_socket_ = -1;

void btsnoop_net_open() {
#if (BT_NET_DEBUG != TRUE)
#if (BT_NET_DEBUG != true)
  return;  // Disable using network sockets for security reasons
#endif

@@ -61,7 +61,7 @@ void btsnoop_net_open() {
}

void btsnoop_net_close() {
#if (BT_NET_DEBUG != TRUE)
#if (BT_NET_DEBUG != true)
  return;  // Disable using network sockets for security reasons
#endif

@@ -74,7 +74,7 @@ void btsnoop_net_close() {
}

void btsnoop_net_write(const void* data, size_t length) {
#if (BT_NET_DEBUG != TRUE)
#if (BT_NET_DEBUG != true)
  return;  // Disable using network sockets for security reasons
#endif

+2 −2
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ static thread_t* thread;
static list_t* clients;

static bool hci_inject_open(const hci_t* hci_interface) {
#if (BT_NET_DEBUG != TRUE)
#if (BT_NET_DEBUG != true)
  return true;  // Disable using network sockets for security reasons
#endif

@@ -98,7 +98,7 @@ error:;
}

static void hci_inject_close(void) {
#if (BT_NET_DEBUG != TRUE)
#if (BT_NET_DEBUG != true)
  return;  // Disable using network sockets for security reasons
#endif