---
drivers/atmodem/sms.c | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/drivers/atmodem/sms.c b/drivers/atmodem/sms.c
index 64169086..db04cb1e 100644
--- a/drivers/atmodem/sms.c
+++ b/drivers/atmodem/sms.c
@@ -220,9 +220,20 @@ 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);
--
2.17.1
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono