feat(ble_audio): Support Zephyr LE Audio v4.4.1

This commit is contained in:
Liu Linyan
2026-06-30 15:17:24 +08:00
committed by Linyan Liu
parent 1e58083bdf
commit 9b415a7d1f
29 changed files with 525 additions and 398 deletions
@@ -120,7 +120,6 @@ static esp_ble_iso_chan_qos_t iso_qos = {
static esp_ble_iso_chan_t iso_chan = {
.ops = &iso_ops,
.qos = &iso_qos,
.required_sec_level = SECURITY_LEVEL,
};
static void create_cig_and_cis(uint16_t acl_handle)
@@ -253,8 +252,8 @@ static void acl_connect(esp_ble_iso_gap_app_event_t *event)
event->acl_connect.conn_handle, event->acl_connect.role,
EXAMPLE_BT_ADDR_PRINT_ARGS(event->acl_connect.dst.val));
if (iso_chan.required_sec_level == ESP_BLE_ISO_SECURITY_NO_MITM ||
iso_chan.required_sec_level == ESP_BLE_ISO_SECURITY_MITM) {
if (SECURITY_LEVEL == ESP_BLE_ISO_SECURITY_NO_MITM ||
SECURITY_LEVEL == ESP_BLE_ISO_SECURITY_MITM) {
err = pairing_start(event->acl_connect.conn_handle);
if (err) {
ESP_LOGE(TAG, "Failed to initiate security, err %d", err);
@@ -19,8 +19,6 @@
#include "peripheral.h"
#define SECURITY_LEVEL ESP_BLE_ISO_SECURITY_NO_MITM
#define CIS_SDU_SIZE 120
static uint8_t ext_adv_data[3 + 2 + LOCAL_DEVICE_NAME_LEN];
@@ -95,7 +93,6 @@ static int iso_accept(const esp_ble_iso_accept_info_t *info,
}
static esp_ble_iso_server_t iso_server = {
.sec_level = SECURITY_LEVEL,
.accept = iso_accept,
};