aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-06-03 15:41:37 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-06-11 11:19:38 -0700
commitdad5089b36ed2ce170fb0bc4328cec60acd0f2bc (patch)
tree4e9f34bd113e8193201ea24b60d8e1eee6050b4e
parent19d20dfc03fc1f430c15ec2b4db45e9ec26a9937 (diff)
binding: telephony: add support for detect hw modems
Detect hardware modems for voicecalls on binding startup. This is done by checking for "hardware" type only on startup (i.e. modem with no address since it isn't handsfree). Bug-AGL: SPEC-2481 Change-Id: Id0427814c2a841a9f100bdd0e1972e6e370270c4 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--binding/gdbus/ofono_manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binding/gdbus/ofono_manager.c b/binding/gdbus/ofono_manager.c
index 8db5df3..c0000dc 100644
--- a/binding/gdbus/ofono_manager.c
+++ b/binding/gdbus/ofono_manager.c
@@ -71,8 +71,8 @@ int ofono_manager_set_default_modem(const char *address)
type = g_variant_get_string(value, NULL);
}
- /* If not a HFP modem then continue */
- if (g_strcmp0(type, "hfp"))
+ /* If address is set then searching for hfp modem */
+ if (address && g_strcmp0(type, "hfp"))
continue;
/* If address is NULL then use the first modem as default,