mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(ble/bluedroid): Align config, controller indent and init error paths
- bt_target: remove/align obsolete macros with Kconfig - device/controller: fix start_up() Secure Connections indent, get_ble_resolving_list_max_size return type - controller.h: align type/interface declarations with implementation - bte_init: remove unused/redundant code - bte_main: return -1 on osi_init failure, null check in bte_main_hci_send
This commit is contained in:
@@ -223,13 +223,13 @@ static void start_up(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
if ((bluedroid_config_get()->get_sc_enabled())) {
|
||||
controller_param.secure_connections_supported = HCI_SC_CTRLR_SUPPORTED(controller_param.features_classic[2].as_array);
|
||||
if (controller_param.secure_connections_supported) {
|
||||
response = AWAIT_COMMAND(controller_param.packet_factory->make_write_secure_connections_host_support(HCI_SC_MODE_ENABLED));
|
||||
controller_param.packet_parser->parse_generic_command_complete(response);
|
||||
if ((bluedroid_config_get()->get_sc_enabled())) {
|
||||
controller_param.secure_connections_supported = HCI_SC_CTRLR_SUPPORTED(controller_param.features_classic[2].as_array);
|
||||
if (controller_param.secure_connections_supported) {
|
||||
response = AWAIT_COMMAND(controller_param.packet_factory->make_write_secure_connections_host_support(HCI_SC_MODE_ENABLED));
|
||||
controller_param.packet_parser->parse_generic_command_complete(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if (BLE_INCLUDED == TRUE)
|
||||
#if (CLASSIC_BT_INCLUDED)
|
||||
@@ -546,7 +546,7 @@ static uint8_t get_ble_resolving_list_max_size(void)
|
||||
return controller_param.ble_resolving_list_max_size;
|
||||
}
|
||||
|
||||
static void set_ble_resolving_list_max_size(int resolving_list_max_size)
|
||||
static void set_ble_resolving_list_max_size(uint8_t resolving_list_max_size)
|
||||
{
|
||||
assert(controller_param.readable);
|
||||
assert(controller_param.ble_supported);
|
||||
|
||||
Reference in New Issue
Block a user