Fix discover service process using wrong transport
Application may use createBond by transport API to bond with a dual mode device. If the stack doesn’t get a name from the adv packet, the stack will start to discover remote name before discovering remote service. As stack will clear the bta_dm_search_cb.transport flag after searching remote name, the sdp protocol will be used to discover remote services, but actually it should use gatt protocol. Bug: 154299225 Test: Create bond with a dual mode device using le transport Tag: #compatibility Sponsor: optedoblivion@ Change-Id: I05b9fa9cf9801cf681e195d490d77d61f77e43a3
Loading
Please register or sign in to comment