modem: add AT+GCAP command
PATCH 1/1 modem: add AT+GCAP command
--- src/modem.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
src/modem.c +7 -0
@@ -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)
Signature · 1 line
1.7.1
Hi Olivier,
Quoted 3 lines · Olivier Guiter
--- src/modem.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
Patch has been applied, thanks.
Regards,
-Denis