hci: fix send of hci_le_set_extended_scan_response_data

This commit is contained in:
Matthias Ringwald 2023-01-25 18:33:58 +01:00
parent 0d212321a9
commit 8ef6d15f2e
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- gatt_client: queue requests with gatt_client_request_to_send_gatt_query and gatt_client_request_to_write_without_response
## Fixed
- hci: fix set extended scan response
- btstack_stdin_embedded: use timer to poll RTT input, fix for tickless RTOS
- gatt_client: return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER for invalid connection handle
- A2DP: emit A2DP_SUBEVENT_STREAM_ESTABLISHED with if connection fails, e.g. because of Page Timeout

View File

@ -6123,7 +6123,7 @@ static bool hci_run_general_gap_le(void){
advertising_set->scan_data_pos += data_to_upload;
}
hci_stack->le_advertising_set_in_current_command = advertising_set->advertising_handle;
hci_send_cmd(&hci_le_set_extended_scan_response_data, advertising_set->advertising_handle, operation, 0x03, 0x01, data_to_upload, &advertising_set->scan_data[pos]);
hci_send_cmd(&hci_le_set_extended_scan_response_data, advertising_set->advertising_handle, operation, 0x01, data_to_upload, &advertising_set->scan_data[pos]);
return true;
}
#ifdef ENABLE_LE_PERIODIC_ADVERTISING