summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-11-29 19:38:01 +0800
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-11-30 17:03:25 +0800
commitd27d4354c37fbce910869465e60bc226efc6e6f3 (patch)
tree596d9f9acf395fd9f8308534bac6696f8ab34f22
parent517bda18b21b5127edb92ef79119c885c3b2cd67 (diff)
mobile: ms->shutdown was not converted properly to enum
ms->shutdown is ms->shutdown != 0 which should have been converted to ms->shutdown != MS_SHUTDOWN_NONE. This is fixing sending SMS. This was introduced in Iee1140e4848923c7270495c381bf87b7e3fddee1. Change-Id: Ia74374dd9c0dd0ba9cf5725d66f4d2f2a2cfe9ef
-rw-r--r--src/host/layer23/src/mobile/gsm411_sms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/src/mobile/gsm411_sms.c b/src/host/layer23/src/mobile/gsm411_sms.c
index 73fad84..f09d7a1 100644
--- a/src/host/layer23/src/mobile/gsm411_sms.c
+++ b/src/host/layer23/src/mobile/gsm411_sms.c
@@ -632,7 +632,7 @@ static int gsm411_tx_sms_submit(struct osmocom_ms *ms, const char *sms_sca,
LOGP(DLSMS, LOGL_INFO, "..._sms_submit()\n");
/* no running, no transaction */
- if (!ms->started || ms->shutdown != MS_SHUTDOWN_COMPL) {
+ if (!ms->started || ms->shutdown != MS_SHUTDOWN_NONE) {
LOGP(DLSMS, LOGL_ERROR, "Phone is down\n");
gsm411_sms_report(ms, sms, GSM411_RP_CAUSE_MO_TEMP_FAIL);
sms_free(sms);