void BTA_GATTC_Open(tBTA_GATTC_IF client_if, BD_ADDR remote_bda, bool is_direct,
tBTA_GATT_TRANSPORT transport, bool opportunistic) {
uint8_t phy = controller_get_interface()->get_le_all_initiating_phys();
- BTA_GATTC_Open(client_if, remote_bda, is_direct, transport, phy,
- opportunistic);
+ BTA_GATTC_Open(client_if, remote_bda, is_direct, transport, opportunistic,
+ phy);
}
void BTA_GATTC_Open(tBTA_GATTC_IF client_if, BD_ADDR remote_bda, bool is_direct,
- tBTA_GATT_TRANSPORT transport, uint8_t initiating_phys,
- bool opportunistic) {
+ tBTA_GATT_TRANSPORT transport, bool opportunistic,
+ uint8_t initiating_phys) {
tBTA_GATTC_API_OPEN* p_buf =
(tBTA_GATTC_API_OPEN*)osi_malloc(sizeof(tBTA_GATTC_API_OPEN));
bool opportunistic);
extern void BTA_GATTC_Open(tBTA_GATTC_IF client_if, BD_ADDR remote_bda,
bool is_direct, tBTA_GATT_TRANSPORT transport,
- uint8_t initiating_phys, bool opportunistic);
+ bool opportunistic, uint8_t initiating_phys);
/*******************************************************************************
*
// Connect!
BTIF_TRACE_DEBUG("%s Transport=%d, device type=%d, phy=%d", __func__,
transport, device_type, initiating_phys);
- BTA_GATTC_Open(client_if, address, is_direct, transport, initiating_phys);
+ BTA_GATTC_Open(client_if, address, is_direct, transport, false,
+ initiating_phys);
}
bt_status_t btif_gattc_open(int client_if, const bt_bdaddr_t* bd_addr,