If the version is 1.6, send the corresponding card driver name to card
creation. If the version is not 1.6, send NULL.
---
src/emulator.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/emulator.c b/src/emulator.c
index 5027b02..98235fa 100644
--- a/src/emulator.c
+++ b/src/emulator.c
@@ -1076,10 +1076,14 @@ static int card_set_local_remote(struct
ofono_handsfree_card *card, int fd)
int ofono_emulator_create_card(struct ofono_emulator *em, int version)
{
+ char *driver = NULL;
GIOChannel *io;
int fd;
- em->card = ofono_handsfree_card_create(0, NULL, NULL);
+ if (version == HFP_VERSION_1_6)
+ driver = HFP_16_AG_DRIVER;
+
+ em->card = ofono_handsfree_card_create(0, driver, NULL);
io = g_at_server_get_channel(em->server);
fd = g_io_channel_unix_get_fd(io);
--
1.7.9.5
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono