You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2026/05/07 11:20:44 UTC

(mynewt-nimble) branch master updated (2f990a9d0 -> c72c87f94)

This is an automated email from the ASF dual-hosted git repository.

sjanc pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


    from 2f990a9d0 nimble/host: Initialize att_len in ble_att_svr_service_uuid
     new 27b68922c nimble/transport/socket: Fix typo in syscfg description
     new c72c87f94 nimble/transport: Add compiler error on invalid socket type

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 nimble/transport/socket/src/ble_hci_socket.c | 10 ++++------
 nimble/transport/socket/syscfg.yml           |  2 +-
 2 files changed, 5 insertions(+), 7 deletions(-)


(mynewt-nimble) 01/02: nimble/transport/socket: Fix typo in syscfg description

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 27b68922ca91e38f5a3ad18219e1368bf8c5f095
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Mon May 4 13:31:55 2026 +0200

    nimble/transport/socket: Fix typo in syscfg description
    
    It should be linux_blue instead of linux_bluez.
---
 nimble/transport/socket/syscfg.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/transport/socket/syscfg.yml b/nimble/transport/socket/syscfg.yml
index ebe37b76b..9f3329c06 100644
--- a/nimble/transport/socket/syscfg.yml
+++ b/nimble/transport/socket/syscfg.yml
@@ -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
 


(mynewt-nimble) 02/02: nimble/transport: Add compiler error on invalid socket type

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit c72c87f9452023b2fa3cf5cb979ab27e27a7142d
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Mon May 4 13:33:55 2026 +0200

    nimble/transport: Add compiler error on invalid socket type
    
    Give clear compiler error if no valid socket type is selected.
---
 nimble/transport/socket/src/ble_hci_socket.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/nimble/transport/socket/src/ble_hci_socket.c b/nimble/transport/socket/src/ble_hci_socket.c
index f095d173a..fb4fc75ff 100644
--- a/nimble/transport/socket/src/ble_hci_socket.c
+++ b/nimble/transport/socket/src/ble_hci_socket.c
@@ -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
@@ -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>