mirror of git://git.sysmocom.de/ofono
atmodem: change vendor CINTERION in GEMALTO in sms
This commit is contained in:
parent
635085b30e
commit
df5bc68fcf
|
@ -329,7 +329,7 @@ static inline void at_ack_delivery(struct ofono_sms *sms)
|
||||||
/* We must acknowledge the PDU using CNMA */
|
/* We must acknowledge the PDU using CNMA */
|
||||||
if (data->cnma_ack_pdu) {
|
if (data->cnma_ack_pdu) {
|
||||||
switch (data->vendor) {
|
switch (data->vendor) {
|
||||||
case OFONO_VENDOR_CINTERION:
|
case OFONO_VENDOR_GEMALTO:
|
||||||
snprintf(buf, sizeof(buf), "AT+CNMA=1");
|
snprintf(buf, sizeof(buf), "AT+CNMA=1");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -411,10 +411,10 @@ static void at_cmt_notify(GAtResult *result, gpointer user_data)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
switch (data->vendor) {
|
switch (data->vendor) {
|
||||||
case OFONO_VENDOR_CINTERION:
|
case OFONO_VENDOR_GEMALTO:
|
||||||
if (!g_at_result_iter_next_number(&iter, &tpdu_len)) {
|
if (!g_at_result_iter_next_number(&iter, &tpdu_len)) {
|
||||||
/*
|
/*
|
||||||
* Some cinterions modems (ALS3,PLS8...), act in
|
* Some Gemalto modems (ALS3,PLS8...), act in
|
||||||
* accordance with 3GPP 27.005. So we need to skip
|
* accordance with 3GPP 27.005. So we need to skip
|
||||||
* the first (<alpha>) field
|
* the first (<alpha>) field
|
||||||
* \r\n+CMT: ,23\r\nCAFECAFECAFE... ...\r\n
|
* \r\n+CMT: ,23\r\nCAFECAFECAFE... ...\r\n
|
||||||
|
|
Loading…
Reference in New Issue