Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions nimble/transport/socket/src/ble_hci_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
#include <sys/errno.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif

#if MYNEWT_VAL_CHOICE(BLE_SOCK_TYPE, linux_blue)
#elif MYNEWT_VAL_CHOICE(BLE_SOCK_TYPE, linux_blue)
#include <sys/errno.h>
#define BTPROTO_HCI 1
#define HCI_CHANNEL_RAW 0
Expand All @@ -66,11 +64,11 @@ struct sockaddr_hci {
unsigned short hci_dev;
unsigned short hci_channel;
};
#endif

#if MYNEWT_VAL_CHOICE(BLE_SOCK_TYPE, nuttx)
#elif MYNEWT_VAL_CHOICE(BLE_SOCK_TYPE, nuttx)
#include <errno.h>
#include <netpacket/bluetooth.h>
#else
#error "Invalid HCI socket type"
#endif

#include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion nimble/transport/socket/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ syscfg.defs:
deprecated: 1

BLE_SOCK_USE_LINUX_BLUE:
description: 'Use BLE_SOCK_TYPE:linux_bluez'
description: 'Use BLE_SOCK_TYPE:linux_blue'
value: 0
deprecated: 1

Expand Down
Loading