diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-02-12 19:49:19 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-02-12 19:49:19 -0600 |
commit | 7194bd03a0846a09741ef71429d578cf6728d76a (patch) | |
tree | 33d46651f13fe85c84e09b2e1f90410258012694 | |
parent | af4d4aeaeb1d7be1ab56e5a5f3a9b9a11e6ad451 (diff) | |
download | ofono-7194bd03a0846a09741ef71429d578cf6728d76a.tar.bz2 |
Add hfp/ prefix to the path for HFP modems
-rw-r--r-- | plugins/hfp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c index 25ff3729..1349d2d9 100644 --- a/plugins/hfp.c +++ b/plugins/hfp.c @@ -593,7 +593,8 @@ static int hfp_create_modem(const char *device, const char *dev_addr, ofono_info("Using device: %s, devaddr: %s, adapter: %s", device, dev_addr, adapter_addr); - create_path(dev_addr, adapter_addr, buf, sizeof(buf)); + strcpy(buf, "hfp/"); + create_path(dev_addr, adapter_addr, buf + 4, sizeof(buf) - 4); modem = ofono_modem_create(buf, "hfp"); if (modem == NULL) |