diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-11-11 01:12:21 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-12-09 23:07:19 +0100 |
commit | fc42b2df8c0c68425f79dae17f6fac988f69f6f5 (patch) | |
tree | 6b68a9892244885c05eb93aefe0647f817b8361b /plugins/huawei/mm-modem-helpers-huawei.h | |
parent | e81fdd07c3e8ef824b13e157d4c50213786d9973 (diff) |
huawei: handle empty response to AT^SYSCFG=?
Some Huawei modems (e.g. E220) may give an empty response for AT^SYSCFG=?, even
if they do support the command. Handle this case by prividing a default fallback
format string when this happens.
Diffstat (limited to 'plugins/huawei/mm-modem-helpers-huawei.h')
-rw-r--r-- | plugins/huawei/mm-modem-helpers-huawei.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/huawei/mm-modem-helpers-huawei.h b/plugins/huawei/mm-modem-helpers-huawei.h index 944e7a5f..05894f34 100644 --- a/plugins/huawei/mm-modem-helpers-huawei.h +++ b/plugins/huawei/mm-modem-helpers-huawei.h @@ -73,6 +73,10 @@ const MMHuaweiPrefmodeCombination *mm_huawei_parse_prefmode_response (const gcha /*****************************************************************************/ /* ^SYSCFG test parser */ +/* This is the default string we use as fallback when the modem gives + * an empty response to AT^SYSCFG=? */ +#define MM_HUAWEI_DEFAULT_SYSCFG_FMT "^SYSCFG:(2,13,14,16),(0-3),,," + typedef struct { guint mode; guint acqorder; |