From 4f7067bee006a52b3ae0338fb430c0a3b8b2ac9a Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 13 Oct 2013 18:24:19 +0200 Subject: wavecom: Don't do AT+CFUN=1 in wavecom_inittsettings wavecom_initsettings is called _after_ the global initsettings, i.e. we would loose anything that gsmd core has configured before the AT+CFUN. This is particularly the case for AT+CMGF=0 (PDU mode). --- src/gsmd/vendor_wavecom.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gsmd/vendor_wavecom.c b/src/gsmd/vendor_wavecom.c index dc309ab..644cc48 100644 --- a/src/gsmd/vendor_wavecom.c +++ b/src/gsmd/vendor_wavecom.c @@ -283,7 +283,6 @@ 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"); -- cgit v1.2.3