Revision c227f099 hw/bt-hci.c
b/hw/bt-hci.c | ||
---|---|---|
62 | 62 |
uint32_t role_bmp; |
63 | 63 |
int last_handle; |
64 | 64 |
int connecting; |
65 |
a_bdaddr awaiting_bdaddr[HCI_HANDLES_MAX];
|
|
65 |
bdaddr_t awaiting_bdaddr[HCI_HANDLES_MAX];
|
|
66 | 66 |
} lm; |
67 | 67 |
|
68 | 68 |
uint8_t event_mask[8]; |
... | ... | |
672 | 672 |
} |
673 | 673 |
} |
674 | 674 |
|
675 |
static int bt_hci_connect(struct bt_hci_s *hci, a_bdaddr *bdaddr)
|
|
675 |
static int bt_hci_connect(struct bt_hci_s *hci, bdaddr_t *bdaddr)
|
|
676 | 676 |
{ |
677 | 677 |
struct bt_device_s *slave; |
678 | 678 |
struct bt_link_s link; |
... | ... | |
706 | 706 |
} |
707 | 707 |
|
708 | 708 |
static void bt_hci_connection_reject_event(struct bt_hci_s *hci, |
709 |
a_bdaddr *bdaddr)
|
|
709 |
bdaddr_t *bdaddr)
|
|
710 | 710 |
{ |
711 | 711 |
evt_conn_complete params; |
712 | 712 |
|
... | ... | |
808 | 808 |
* that's been cancelled by the host in the meantime and immediately |
809 | 809 |
* try to detach the link and send a Connection Complete. */ |
810 | 810 |
static int bt_hci_lmp_connection_ready(struct bt_hci_s *hci, |
811 |
a_bdaddr *bdaddr)
|
|
811 |
bdaddr_t *bdaddr)
|
|
812 | 812 |
{ |
813 | 813 |
int i; |
814 | 814 |
|
... | ... | |
939 | 939 |
¶ms, EVT_DISCONN_COMPLETE_SIZE); |
940 | 940 |
} |
941 | 941 |
|
942 |
static int bt_hci_name_req(struct bt_hci_s *hci, a_bdaddr *bdaddr)
|
|
942 |
static int bt_hci_name_req(struct bt_hci_s *hci, bdaddr_t *bdaddr)
|
|
943 | 943 |
{ |
944 | 944 |
struct bt_device_s *slave; |
945 | 945 |
evt_remote_name_req_complete params; |
... | ... | |
1290 | 1290 |
} |
1291 | 1291 |
|
1292 | 1292 |
static inline void bt_hci_event_complete_conn_cancel(struct bt_hci_s *hci, |
1293 |
uint8_t status, a_bdaddr *bd_addr)
|
|
1293 |
uint8_t status, bdaddr_t *bd_addr)
|
|
1294 | 1294 |
{ |
1295 | 1295 |
create_conn_cancel_rp params = { |
1296 | 1296 |
.status = status, |
... | ... | |
1324 | 1324 |
} |
1325 | 1325 |
|
1326 | 1326 |
static inline void bt_hci_event_complete_name_cancel(struct bt_hci_s *hci, |
1327 |
a_bdaddr *bd_addr)
|
|
1327 |
bdaddr_t *bd_addr)
|
|
1328 | 1328 |
{ |
1329 | 1329 |
remote_name_req_cancel_rp params = { |
1330 | 1330 |
.status = HCI_INVALID_PARAMETERS, |
... | ... | |
2134 | 2134 |
{ |
2135 | 2135 |
struct bt_hci_s *hci = hci_from_info(info); |
2136 | 2136 |
|
2137 |
bacpy(&hci->device.bd_addr, (const a_bdaddr *) bd_addr);
|
|
2137 |
bacpy(&hci->device.bd_addr, (const bdaddr_t *) bd_addr);
|
|
2138 | 2138 |
return 0; |
2139 | 2139 |
} |
2140 | 2140 |
|
Also available in: Unified diff