summaryrefslogtreecommitdiff
path: root/src/gsmd
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-03-15 10:32:51 +0100
committerHarald Welte <laforge@gnumonks.org>2013-03-15 10:32:51 +0100
commit4c14b6eb4183905dea8f0a2cea695cebb174815f (patch)
tree5c84f5cb5b1df17996b6689fb04e1ec95698eade /src/gsmd
parentcf9ad6fe4dda247c47d0df10ef95fcaa45d87558 (diff)
vendor_wavecom: Reset the modem on initialization using AT+CFUN=1
In some cases the modem might be stuck once we start up, so it's best to re-initialize it at gsmd startup.
Diffstat (limited to 'src/gsmd')
-rw-r--r--src/gsmd/vendor_wavecom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gsmd/vendor_wavecom.c b/src/gsmd/vendor_wavecom.c
index 883ea39..18253db 100644
--- a/src/gsmd/vendor_wavecom.c
+++ b/src/gsmd/vendor_wavecom.c
@@ -250,6 +250,7 @@ static int wavecom_initsettings(struct gsmd *g)
if (rc < 0)
return rc;
+ rc |= gsmd_simplecmd(g, "AT+CFUN=1");
/* use +WREGC to enter "spy mode" (no transmit / registration) */
rc |= gsmd_simplecmd(g, "AT+WREGC=0");
rc |= gsmd_simplecmd(g, "AT+CCED=1,3");
personal git repositories of Harald Welte. Your mileage may vary