From 6eb9d732835c1ea393692fb9e9318b7198829da8 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 4 Feb 2009 13:53:16 -0800 Subject: Fix SLC completion check We should check HF and not AG features when determining whether the SLC creation is complete or not. --- audio/headset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/headset.c b/audio/headset.c index 2d14c225..c6b3ecf7 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -656,7 +656,7 @@ int telephony_event_reporting_rsp(void *telephony_device, cme_error_t err) if (hs->state != HEADSET_STATE_CONNECT_IN_PROGRESS) return 0; - if (ag.features & AG_FEATURE_THREE_WAY_CALLING) + if (hs->hf_features & AG_FEATURE_THREE_WAY_CALLING) return 0; hfp_slc_complete(device); -- cgit