mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
hci: pad scan response data with zeros, fixes #204
This commit is contained in:
parent
9022b6898e
commit
214bfd60e6
@ -3391,7 +3391,7 @@ static void hci_run(void){
|
||||
memset(scan_data_clean, 0, sizeof(scan_data_clean));
|
||||
memcpy(scan_data_clean, hci_stack->le_scan_response_data, hci_stack->le_scan_response_data_len);
|
||||
hci_replace_bd_addr_placeholder(scan_data_clean, hci_stack->le_scan_response_data_len);
|
||||
hci_send_cmd(&hci_le_set_scan_response_data, hci_stack->le_scan_response_data_len, hci_stack->le_scan_response_data);
|
||||
hci_send_cmd(&hci_le_set_scan_response_data, hci_stack->le_scan_response_data_len, scan_data_clean);
|
||||
return;
|
||||
}
|
||||
if (hci_stack->le_advertisements_todo & LE_ADVERTISEMENT_TASKS_ENABLE){
|
||||
|
Loading…
x
Reference in New Issue
Block a user