From b8730eb47d97e84ef578dc2f527f6dd51d52ff12 Mon Sep 17 00:00:00 2001 From: Frédéric Danis Date: Mon, 8 Aug 2011 16:34:40 +0200 Subject: hfpmodem: fix hf features check audio gateway version and only set right features --- plugins/hfp_hf.c | 2 +- plugins/phonesim.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/hfp_hf.c b/plugins/hfp_hf.c index 56251417..9fa420ae 100644 --- a/plugins/hfp_hf.c +++ b/plugins/hfp_hf.c @@ -223,7 +223,7 @@ static int hfp_hf_probe(const char *device, const char *dev_addr, if (data == NULL) goto free; - hfp_slc_info_init(&data->info); + hfp_slc_info_init(&data->info, HFP_VERSION_1_5); data->handsfree_path = g_strdup(device); if (data->handsfree_path == NULL) diff --git a/plugins/phonesim.c b/plugins/phonesim.c index 2b3bcf2f..e81a2b41 100644 --- a/plugins/phonesim.c +++ b/plugins/phonesim.c @@ -880,7 +880,7 @@ static int localhfp_enable(struct ofono_modem *modem) g_at_chat_set_disconnect_function(chat, slc_failed, modem); - hfp_slc_info_init(info); + hfp_slc_info_init(info, HFP_VERSION_LATEST); info->chat = chat; hfp_slc_establish(info, slc_established, slc_failed, modem); -- cgit v1.2.3