summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-04-21 08:46:47 +0000
committerlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-04-21 08:46:47 +0000
commitf4f201c63c797080884432c9a716021ac328ff9e (patch)
tree0c9c801e7f6230e6021289e1bdacef744b9b651b
parentbba162cb3e66b58e1cb7470fd9cb136a22df7f25 (diff)
The standard says that the parameter is not optional. Some modems
(correctly) return "ERROR" in response to "AT+COPS". (Philipp Zabel) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1812 99fdad57-331a-0410-800a-d7fa5415bdb3
-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 2f678dd..696867d 100644
--- a/src/gsmd/usock.c
+++ b/src/gsmd/usock.c
@@ -388,7 +388,7 @@ static int usock_rcv_network(struct gsmd_user *gu, struct gsmd_msg_hdr *gph,
switch (gph->msg_subtype) {
case GSMD_NETWORK_REGISTER:
- cmd = atcmd_fill("AT+COPS", 9+1,
+ cmd = atcmd_fill("AT+COPS=0", 9+1,
&null_cmd_cb, gu, 0);
break;
case GSMD_NETWORK_VMAIL_GET:
personal git repositories of Harald Welte. Your mileage may vary