Skip to content

Commit

Permalink
Merge branch 'apache:master' into guym/sm_invalid_key_size_cb
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-m authored Jan 8, 2025
2 parents c63ff48 + 2fcb781 commit 5d542b3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nimble/host/src/ble_gattc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4444,7 +4444,7 @@ ble_gatts_notify_multiple_custom(uint16_t conn_handle,

conn = ble_hs_conn_find(conn_handle);
if (conn == NULL) {
return ENOTCONN;
return BLE_HS_ENOTCONN;
}

/* Read missing values */
Expand Down Expand Up @@ -4527,7 +4527,7 @@ ble_gatts_notify_multiple(uint16_t conn_handle,
BLE_HS_LOG_DEBUG("conn_handle %d\n", conn_handle);
conn = ble_hs_conn_find(conn_handle);
if (conn == NULL) {
return ENOTCONN;
return BLE_HS_ENOTCONN;
}

/** Skip sending to client that doesn't support this feature */
Expand Down
2 changes: 0 additions & 2 deletions nimble/host/src/ble_gatts.c
Original file line number Diff line number Diff line change
Expand Up @@ -1619,8 +1619,6 @@ ble_gatts_peer_cl_sup_feat_update(uint16_t conn_handle, struct os_mbuf *om)
int rc = 0;
int i;

BLE_HS_LOG(DEBUG, "");

if (!om) {
return BLE_ATT_ERR_INSUFFICIENT_RES;
}
Expand Down
8 changes: 8 additions & 0 deletions nimble/host/src/ble_l2cap_coc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@

#if MYNEWT_VAL(BLE_L2CAP_COC_MAX_NUM) != 0 && NIMBLE_BLE_CONNECT

#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif

#ifndef max
#define max(a, b) ((a) > (b) ? (a) : (b))
#endif

#define BLE_L2CAP_SDU_SIZE 2

STAILQ_HEAD(ble_l2cap_coc_srv_list, ble_l2cap_coc_srv);
Expand Down
1 change: 1 addition & 0 deletions nimble/host/store/config/src/ble_store_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "syscfg/syscfg.h"
#include "host/ble_hs.h"
#include "base64/base64.h"
#include "os/util.h"
#include "store/config/ble_store_config.h"
#include "ble_store_config_priv.h"

Expand Down
1 change: 1 addition & 0 deletions porting/npl/riot/include/nimble/nimble_npl_os_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

/* Example on how to use macro to generate module logging functions */
#define BLE_NPL_LOG_IMPL(lvl) \
__attribute__((__format__ (__printf__, 1, 0))) \
static inline void _BLE_NPL_LOG_CAT(BLE_NPL_LOG_MODULE, \
_BLE_NPL_LOG_CAT(_, lvl))(const char *fmt, ...)\
{ \
Expand Down

0 comments on commit 5d542b3

Please sign in to comment.