Loading system/bta/gatt/bta_gattc_api.cc +17 −12 Original line number Original line Diff line number Diff line Loading @@ -127,18 +127,23 @@ void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, bool is_direct, tBT_TRANSPORT transport, bool opportunistic, bool is_direct, tBT_TRANSPORT transport, bool opportunistic, uint8_t initiating_phys) { uint8_t initiating_phys) { tBTA_GATTC_API_OPEN* p_buf = tBTA_GATTC_DATA data = { (tBTA_GATTC_API_OPEN*)osi_malloc(sizeof(tBTA_GATTC_API_OPEN)); .api_conn = { p_buf->hdr.event = BTA_GATTC_API_OPEN_EVT; .hdr = p_buf->client_if = client_if; { p_buf->is_direct = is_direct; .event = BTA_GATTC_API_OPEN_EVT, p_buf->transport = transport; }, p_buf->initiating_phys = initiating_phys; .remote_bda = remote_bda, p_buf->opportunistic = opportunistic; .client_if = client_if, p_buf->remote_bda = remote_bda; .is_direct = is_direct, .transport = transport, bta_sys_sendmsg(p_buf); .initiating_phys = initiating_phys, .opportunistic = opportunistic, }, }; post_on_bt_main([data]() { bta_gattc_process_api_open(&data); }); } } /******************************************************************************* /******************************************************************************* Loading Loading
system/bta/gatt/bta_gattc_api.cc +17 −12 Original line number Original line Diff line number Diff line Loading @@ -127,18 +127,23 @@ void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, bool is_direct, tBT_TRANSPORT transport, bool opportunistic, bool is_direct, tBT_TRANSPORT transport, bool opportunistic, uint8_t initiating_phys) { uint8_t initiating_phys) { tBTA_GATTC_API_OPEN* p_buf = tBTA_GATTC_DATA data = { (tBTA_GATTC_API_OPEN*)osi_malloc(sizeof(tBTA_GATTC_API_OPEN)); .api_conn = { p_buf->hdr.event = BTA_GATTC_API_OPEN_EVT; .hdr = p_buf->client_if = client_if; { p_buf->is_direct = is_direct; .event = BTA_GATTC_API_OPEN_EVT, p_buf->transport = transport; }, p_buf->initiating_phys = initiating_phys; .remote_bda = remote_bda, p_buf->opportunistic = opportunistic; .client_if = client_if, p_buf->remote_bda = remote_bda; .is_direct = is_direct, .transport = transport, bta_sys_sendmsg(p_buf); .initiating_phys = initiating_phys, .opportunistic = opportunistic, }, }; post_on_bt_main([data]() { bta_gattc_process_api_open(&data); }); } } /******************************************************************************* /******************************************************************************* Loading