diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-03-15 10:32:51 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-03-15 10:32:51 +0100 |
commit | 4c14b6eb4183905dea8f0a2cea695cebb174815f (patch) | |
tree | 5c84f5cb5b1df17996b6689fb04e1ec95698eade | |
parent | cf9ad6fe4dda247c47d0df10ef95fcaa45d87558 (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.
-rw-r--r-- | src/gsmd/vendor_wavecom.c | 1 |
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"); |