When an application uses BT_AUDIO_PROFILE_TYPE_ALL to connect,
HSP profile only be connected because of the wrong logic in
bt-service's audio connected list.
Change-Id: If1d9569a018bc02c1a3c863bd21e01ff6715533b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
if (__bt_device_support_uuid(address, BT_AUDIO_HSP)) {
uuid = HFP_HS_UUID;
func_data->pending = BT_PENDING_CONNECT;
+ type = BT_AUDIO_HSP;
} else if (__bt_device_support_uuid(address, BT_AUDIO_A2DP)) {
uuid = A2DP_SINK_UUID;
+ type = BT_AUDIO_A2DP;
} else {
BT_ERR("No audio role supported");
result = BLUETOOTH_ERROR_SERVICE_NOT_FOUND;