diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-08-23 17:43:20 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-08-23 17:43:20 +0200 |
commit | c2cf902d03aa2e8f9b7603f46a402c0974be4e47 (patch) | |
tree | af8e60a74dec0e04462269ea63299a9192e1ef08 /plugins | |
parent | 51a1bae8c784f5f2b3856bc73d1eb89b49221ba5 (diff) | |
download | ofono-c2cf902d03aa2e8f9b7603f46a402c0974be4e47.tar.bz2 |
huawei: Query AT^U2DIAG and AT^GETPORTMODE settings
Just to make the values show up in the AT command debug logs, query them
when enabling the device.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/huawei.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index f833dc13..fc331ffe 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -233,6 +233,14 @@ static void cfun_enable(gboolean ok, GAtResult *result, gpointer user_data) g_at_chat_register(data->pcui, "^SIMST:", simst_notify, FALSE, modem, NULL); + /* query current device settings */ + g_at_chat_send(data->pcui, "AT^U2DIAG?", none_prefix, + NULL, NULL, NULL); + + /* query current port settings */ + g_at_chat_send(data->pcui, "AT^GETPORTMODE", none_prefix, + NULL, NULL, NULL); + /* query current sim state */ g_at_chat_send(data->pcui, "AT^SYSINFO", sysinfo_prefix, sysinfo_cb, modem, NULL); |