From 8a7b8b05215c3cfb0934aa3c3807e8f94aab18d7 Mon Sep 17 00:00:00 2001 From: Krzysztof Wilk Date: Mon, 17 Mar 2014 16:47:29 +0100 Subject: [PATCH] hfp: Add CHLD features to drver data --- drivers/hfpmodem/handsfree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/hfpmodem/handsfree.c b/drivers/hfpmodem/handsfree.c index 78ee801..bbe10b8 100644 --- a/drivers/hfpmodem/handsfree.c +++ b/drivers/hfpmodem/handsfree.c @@ -49,6 +49,7 @@ static const char *bvra_prefix[] = { "+BVRA:", NULL }; struct hf_data { GAtChat *chat; unsigned int ag_features; + unsigned int ag_mpty_features; int battchg_index; guint register_source; }; @@ -139,6 +140,7 @@ static gboolean hfp_handsfree_register(gpointer user_data) ofono_handsfree_set_inband_ringing(hf, TRUE); ofono_handsfree_set_ag_features(hf, hd->ag_features); + ofono_handsfree_set_ag_chld_features(hf, hd->ag_mpty_features); ofono_handsfree_register(hf); return FALSE; @@ -154,6 +156,7 @@ static int hfp_handsfree_probe(struct ofono_handsfree *hf, hd = g_new0(struct hf_data, 1); hd->chat = g_at_chat_clone(info->chat); hd->ag_features = info->ag_features; + hd->ag_mpty_features = info->ag_mpty_features; ofono_handsfree_set_data(hf, hd); -- 2.7.4