ble cleanup

This commit is contained in:
liquidraver
2026-05-20 10:27:42 +02:00
parent a9f3b8ef3b
commit f0c29a612f
3 changed files with 6 additions and 9 deletions
+1
View File
@@ -98,3 +98,4 @@ RADIO_AUDIT_INDEX.md
RX_BUSY_LATCH_PLAN.md
zephcore/SX126X_LBT_RX_DEBUG_HANDOFF.md
PSRAM_HANDOFF.md
BLE_AUDIT_INDEX.md
-7
View File
@@ -22,7 +22,6 @@ LOG_MODULE_REGISTER(zephcore_ble, CONFIG_ZEPHCORE_BLE_LOG_LEVEL);
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/hci.h>
#include <zephyr/bluetooth/services/nus.h>
#include <zephyr/bluetooth/services/nus/inst.h>
#include <zephyr/settings/settings.h>
#include "ZephyrBLE.h"
@@ -188,12 +187,6 @@ BT_GATT_SERVICE_DEFINE(secure_nus_svc,
NULL, secure_nus_rx_write, NULL),
);
static sys_slist_t secure_nus_cbs_list = SYS_SLIST_STATIC_INIT(&secure_nus_cbs_list);
STRUCT_SECTION_ITERABLE(bt_nus_inst, secure_nus) = {
.svc = &secure_nus_svc,
.cbs = &secure_nus_cbs_list,
};
/* ========== Work items ========== */
static void tx_drain_work_fn(struct k_work *work);
+5 -2
View File
@@ -65,8 +65,11 @@ CONFIG_MODEM_MODULES=y
# ========== BLE Stack (common to ALL platforms) ==========
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_ZEPHYR_NUS=y
CONFIG_BT_ZEPHYR_NUS_DEFAULT_INSTANCE=n
# Note: not using upstream BT_ZEPHYR_NUS service — its macro hardcodes
# plaintext permissions on the CCC and RX char. We define our own NUS
# service in adapters/ble/ZephyrBLE.cpp with BT_GATT_PERM_WRITE_AUTHEN
# to force reactive pairing per Apple ADG §55. UUID macros from nus.h
# are still used (header is always available regardless of Kconfig).
CONFIG_BT_DEVICE_NAME="MeshCore"
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_DEVICE_NAME_MAX=29