summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@linux.intel.com>2011-08-08 16:34:40 +0200
committerDenis Kenzior <denkenz@gmail.com>2011-08-08 10:16:21 -0500
commitb8730eb47d97e84ef578dc2f527f6dd51d52ff12 (patch)
treeadf0951263af9087c8eeb64b39d91c4a917b09c6 /plugins
parent41c8b30ce6ad529ddeef464074aa127fab114299 (diff)
downloadofono-b8730eb47d97e84ef578dc2f527f6dd51d52ff12.tar.bz2
hfpmodem: fix hf features
check audio gateway version and only set right features
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hfp_hf.c2
-rw-r--r--plugins/phonesim.c2
2 files changed, 2 insertions, 2 deletions
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);