Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5442818 authored by Chris Manton's avatar Chris Manton
Browse files

Explicit use base::Location stack/btu/btu_hcif::

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I6461b403d2cb0adff6f0e88bc8dd3df189e4514a
parent 24c5aa0a
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -731,7 +731,7 @@ using hci_cmd_cb = base::OnceCallback<void(


struct cmd_with_cb_data {
struct cmd_with_cb_data {
  hci_cmd_cb cb;
  hci_cmd_cb cb;
  Location posted_from;
  base::Location posted_from;
};
};


void cmd_with_cb_data_init(cmd_with_cb_data* cb_wrapper) {
void cmd_with_cb_data_init(cmd_with_cb_data* cb_wrapper) {
@@ -875,9 +875,9 @@ static void btu_hcif_command_status_evt_with_cb(uint8_t status, BT_HDR* command,
/* This function is called to send commands to the Host Controller. |cb| is
/* This function is called to send commands to the Host Controller. |cb| is
 * called when command status event is called with error code, or when the
 * called when command status event is called with error code, or when the
 * command complete event is received. */
 * command complete event is received. */
void btu_hcif_send_cmd_with_cb(const Location& posted_from, uint16_t opcode,
void btu_hcif_send_cmd_with_cb(const base::Location& posted_from,
                               uint8_t* params, uint8_t params_len,
                               uint16_t opcode, uint8_t* params,
                               hci_cmd_cb cb) {
                               uint8_t params_len, hci_cmd_cb cb) {
  BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE);
  BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE);
  uint8_t* pp = (uint8_t*)(p + 1);
  uint8_t* pp = (uint8_t*)(p + 1);