From b3f285d83c7dfe446bd7f2460e6f795e22a72d32 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 19 Feb 2008 08:20:22 +0000 Subject: Implement proper HFP SLC handling --- audio/manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'audio/manager.c') diff --git a/audio/manager.c b/audio/manager.c index c45e45db..69f9237f 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -1405,7 +1405,7 @@ static void auth_cb(DBusPendingCall *call, void *data) } else { char hs_address[18]; - headset_set_state(device, HEADSET_STATE_CONNECTED); + headset_set_authorized(device); ba2str(&device->dst, hs_address); @@ -1464,14 +1464,14 @@ static gboolean ag_io_cb(GIOChannel *chan, GIOCondition cond, void *data) return TRUE; } + set_hfp_active(device, hfp_active); + if (headset_connect_rfcomm(device, cli_sk) < 0) { error("Allocating new GIOChannel failed!"); close(cli_sk); return TRUE; } - set_hfp_active(device, hfp_active); - if (!manager_authorize(&device->dst, uuid, auth_cb, device, NULL)) goto failed; -- cgit