hci: fix gap_remote_name_request

This commit is contained in:
Matthias Ringwald 2017-07-05 17:12:43 +02:00
parent f6fd20f212
commit ee8a36c873
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
printf("Device found: %s ", bd_addr_to_str(addr));
printf("with COD: 0x%06x, ", (unsigned int) gap_event_inquiry_result_get_class_of_device(packet));
printf("pageScan %d, ", devices[deviceCount].pageScanRepetitionMode);
printf("clock offset 0x%04x",devices[deviceCount].clockOffset & 0x7fff);
printf("clock offset 0x%04x",devices[deviceCount].clockOffset);
if (gap_event_inquiry_result_get_rssi_available(packet)){
printf(", rssi %d dBm", (int8_t) gap_event_inquiry_result_get_rssi(packet));
}

View File

@ -2821,7 +2821,7 @@ static void hci_run(void){
if (hci_stack->remote_name_state == GAP_REMOTE_NAME_STATE_W2_SEND){
hci_stack->remote_name_state = GAP_REMOTE_NAME_STATE_W4_COMPLETE;
hci_send_cmd(&hci_remote_name_request, hci_stack->remote_name_addr,
hci_stack->remote_name_page_scan_repetition_mode, hci_stack->remote_name_clock_offset);
hci_stack->remote_name_page_scan_repetition_mode, 0, hci_stack->remote_name_clock_offset);
return;
}
// pairing