* [PATCH] modem: add AT+GCAP command
@ 2011-03-23 16:08 Olivier Guiter
2011-03-23 20:01 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Olivier Guiter @ 2011-03-23 16:08 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]
---
src/modem.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/modem.c b/src/modem.c
index 26468e8..655994b 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)
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-23 20:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 16:08 [PATCH] modem: add AT+GCAP command Olivier Guiter
2011-03-23 20:01 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.