atmodem/sms: no mms support for Gemalto

This commit is contained in:
Giacinto Cifelli 2018-09-27 04:43:47 +02:00 committed by Denis Kenzior
parent 8077e61ee5
commit 579e9dd3ec
1 changed files with 10 additions and 3 deletions

View File

@ -220,9 +220,16 @@ static void at_cmgs(struct ofono_sms *sms, const unsigned char *pdu,
int len;
if (mms) {
snprintf(buf, sizeof(buf), "AT+CMMS=%d", mms);
g_at_chat_send(data->chat, buf, none_prefix,
NULL, NULL, NULL);
switch (data->vendor) {
case OFONO_VENDOR_GEMALTO:
/* no mms support */
break;
default:
snprintf(buf, sizeof(buf), "AT+CMMS=%d", mms);
g_at_chat_send(data->chat, buf, none_prefix,
NULL, NULL, NULL);
break;
}
}
len = snprintf(buf, sizeof(buf), "AT+CMGS=%d\r", tpdu_len);