host/mesh: post-sync fixes

This resolves some build errors introduced after sync with Zephyr.
This commit is contained in:
Krzysztof Kopyściński
2021-11-10 06:24:00 +01:00
committed by Krzysztof Kopyściński
parent 6617c29704
commit 82ccdbce6f
4 changed files with 4 additions and 7 deletions
-1
View File
@@ -866,7 +866,6 @@ int bt_mesh_model_extend(struct bt_mesh_model *extending_mod, struct bt_mesh_mod
a->next = b;
}
mod->extends = base_mod;
return 0;
}
#endif
+1 -2
View File
@@ -15,6 +15,7 @@
#include "beacon.h"
#include "prov.h"
#include "proxy.h"
#include "mesh/glue.h"
#include "pb_gatt_srv.h"
#if MYNEWT_VAL(BLE_MESH_ADV_LEGACY)
@@ -29,7 +30,6 @@
static int32_t adv_int_min = ADV_INT_DEFAULT_MS;
#if !MYNEWT_VAL(BLE_EXT_ADV)
static int adv_initialized = false;
/* TinyCrypt PRNG consumes a lot of stack space, so we need to have
* an increased call stack whenever it's used.
@@ -42,7 +42,6 @@ static os_membuf_t adv_buf_mem[OS_MEMPOOL_SIZE(
MYNEWT_VAL(BLE_MESH_ADV_BUF_COUNT),
BT_MESH_ADV_DATA_SIZE + BT_MESH_MBUF_HEADER_SIZE)];
static struct os_mempool adv_buf_mempool;
#endif
static struct ble_npl_eventq adv_queue;
static inline void adv_send(struct os_mbuf *buf)
+2 -3
View File
@@ -834,14 +834,13 @@ bt_le_adv_start(const struct ble_gap_adv_params *param,
return 0;
}
#endif
int bt_le_adv_stop()
{
return ble_gap_adv_stop();
return ble_gap_adv_stop();
}
#endif
#if MYNEWT_VAL(BLE_MESH_PROXY)
int bt_mesh_proxy_svcs_register(void);
#endif
+1 -1
View File
@@ -932,7 +932,7 @@ static void ble_mesh_handle_connect(struct ble_gap_event *event, void *arg)
gatt_connected(event->adv_complete.conn_handle);
#if MYNEWT_VAL(BLE_MESH_PB_GATT)
gatt_connected_pb_gatt(event->adv_complete.conn_handle,
event->adv_complete.status);
event->adv_complete.reason);
#endif
}
#else