summaryrefslogtreecommitdiffstats
path: root/src/modem.c
diff options
context:
space:
mode:
authorOlivier Guiter <olivier.guiter@linux.intel.com>2011-03-23 17:08:45 +0100
committerDenis Kenzior <denkenz@gmail.com>2011-03-23 15:00:12 -0500
commit351c701aaca34831c3569aa2bfe1b952be5fa74a (patch)
tree626563c7418fecd658b869786b56ac4c886487ab /src/modem.c
parent8e6becc57ea11ba99aee95069950bf0f543df027 (diff)
downloadofono-351c701aaca34831c3569aa2bfe1b952be5fa74a.tar.bz2
emulator: add support for +GCAP
Diffstat (limited to 'src/modem.c')
-rw-r--r--src/modem.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modem.c b/src/modem.c
index 26468e8a..655994b2 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -1386,6 +1386,12 @@ static void gmr_cb(struct ofono_emulator *em,
attr_template(em, req, info->revision);
}
+static void gcap_cb(struct ofono_emulator *em,
+ struct ofono_emulator_request *req, void *userdata)
+{
+ attr_template(em, req, "+GCAP: +CGSM");
+}
+
static void dun_watch(struct ofono_atom *atom,
enum ofono_atom_watch_condition cond, void *data)
{
@@ -1397,6 +1403,7 @@ static void dun_watch(struct ofono_atom *atom,
ofono_emulator_add_handler(em, "+GMI", gmi_cb, data, NULL);
ofono_emulator_add_handler(em, "+GMM", gmm_cb, data, NULL);
ofono_emulator_add_handler(em, "+GMR", gmr_cb, data, NULL);
+ ofono_emulator_add_handler(em, "+GCAP", gcap_cb, data, NULL);
}
int ofono_devinfo_driver_register(const struct ofono_devinfo_driver *d)