summaryrefslogtreecommitdiffstats
path: root/plugins/ifx.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-09-29 23:30:39 +0900
committerMarcel Holtmann <marcel@holtmann.org>2010-09-29 23:30:39 +0900
commit2f90ddff3c478e00cee3d10fc4ba5f2d586e095c (patch)
tree6dc955406598094e4f090db060584f4951d871ec /plugins/ifx.c
parent3ad4e5ab21873e7b4ed44f3314bd08d1e075eb53 (diff)
downloadofono-2f90ddff3c478e00cee3d10fc4ba5f2d586e095c.tar.bz2
ifx: Request firmware details on modem init
The firmware details can be requested via AT+XGENDATA. So do this at modem init to have these in the logs. Currently nothing is done with this data, but eventually it can be used for modem specific settings like the audio configuration.
Diffstat (limited to 'plugins/ifx.c')
-rw-r--r--plugins/ifx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/ifx.c b/plugins/ifx.c
index edfe9f0b..3e8bcb0f 100644
--- a/plugins/ifx.c
+++ b/plugins/ifx.c
@@ -75,6 +75,7 @@ static const char *dlc_nodes[NUM_DLC] = { "/dev/ttyGSM1", "/dev/ttyGSM2",
static const char *none_prefix[] = { NULL };
static const char *xdrv_prefix[] = { "+XDRV:", NULL };
+static const char *xgendata_prefix[] = { "+XGENDATA:", NULL };
struct ifx_data {
GIOChannel *device;
@@ -249,6 +250,9 @@ static void cfun_enable(gboolean ok, GAtResult *result, gpointer user_data)
return;
}
+ g_at_chat_send(data->dlcs[AUX_DLC], "AT+XGENDATA", xgendata_prefix,
+ NULL, NULL, NULL);
+
if (data->audio_setting && data->audio_source && data->audio_dest) {
/* configure source */
snprintf(buf, sizeof(buf), "AT+XDRV=40,4,%d,%d,%s",