hci: pad scan response data with zeros, fixes #204

This commit is contained in:
Matthias Ringwald 2019-04-03 17:40:21 +02:00
parent 9022b6898e
commit 214bfd60e6

View File

@ -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){