summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gsmd/usock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsmd/usock.c b/src/gsmd/usock.c
index 157a874..1ddfa47 100644
--- a/src/gsmd/usock.c
+++ b/src/gsmd/usock.c
@@ -1215,8 +1215,8 @@ static int usock_rcv_network(struct gsmd_user *gu, struct gsmd_msg_hdr *gph,
case GSMD_NETWORK_OPER_LIST:
if (g_use_ATatCOPS) {
g_last_cops_user = gu;
- g_last_cops_id = cmd->id;
cmd = atcmd_fill("AT@COPS=?", 9+1, &network_opers_cb, gu, 0, NULL);
+ g_last_cops_id = cmd->id;
} else
cmd = atcmd_fill("AT+COPS=?", 9+1, &network_opers_cb, gu, 0, NULL);
break;
personal git repositories of Harald Welte. Your mileage may vary