From 881dc67914dd869dc3a6dea0685383211a94eeaf Mon Sep 17 00:00:00 2001 From: Michal Gorecki Date: Fri, 13 Sep 2024 14:38:53 +0200 Subject: [PATCH] nimble/ll: Change ext_adv_params field name This changes name of field containing parameters from first version of SET_EXT_ADV_PARAMS in ble_hci_le_set_ext_adv_params_v2_cp structure. New name enhances clarity by more accurately describing its contents. --- nimble/host/src/ble_gap.c | 2 +- nimble/include/nimble/hci_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index 5a161a276..7d8cf3926 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -3257,7 +3257,7 @@ ble_gap_ext_adv_params_tx_v2(uint8_t instance, memset(&cmd, 0, sizeof(cmd)); - rc = ble_gap_set_ext_adv_params(&(cmd.cmd), instance, params, selected_tx_power); + rc = ble_gap_set_ext_adv_params(&(cmd.params_v1), instance, params, selected_tx_power); if (rc != 0) { return rc; diff --git a/nimble/include/nimble/hci_common.h b/nimble/include/nimble/hci_common.h index 68f153882..7e983c6c8 100644 --- a/nimble/include/nimble/hci_common.h +++ b/nimble/include/nimble/hci_common.h @@ -1152,7 +1152,7 @@ struct ble_hci_le_subrate_req_cp { #define BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM_V2 (0x007F) struct ble_hci_le_set_ext_adv_params_v2_cp { - struct ble_hci_le_set_ext_adv_params_cp cmd; + struct ble_hci_le_set_ext_adv_params_cp params_v1; uint8_t pri_phy_opt; uint8_t sec_phy_opt; } __attribute__((packed));