summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gsmd/atcmd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gsmd/atcmd.c b/src/gsmd/atcmd.c
index 4df12dc..44e215c 100644
--- a/src/gsmd/atcmd.c
+++ b/src/gsmd/atcmd.c
@@ -194,6 +194,11 @@ static int ml_parse(const char *buf, int len, void *ctx)
cmd = llist_entry(g->busy_atcmds.next,
struct gsmd_atcmd, list);
+ if (cmd && !strcmp(buf, cmd->buf)) {
+ DEBUGP("ignoring echo\n");
+ return 0;
+ }
+
/* we have to differentiate between the following cases:
*
* A) an information response ("+whatever: ...")
personal git repositories of Harald Welte. Your mileage may vary