atmodem: added Gemalto vendor quirk for +CNMI

This commit is contained in:
Giacinto Cifelli 2018-10-23 10:21:47 +02:00 committed by Denis Kenzior
parent 0d9a380ea0
commit 92bf7fb867
1 changed files with 11 additions and 1 deletions

View File

@ -858,8 +858,18 @@ static gboolean build_cnmi_string(char *buf, int *cnmi_opts,
data->cnma_enabled ? "21" : "1", FALSE))
return FALSE;
switch (data->vendor) {
case OFONO_VENDOR_GEMALTO:
mode = "0";
break;
default:
/* Sounds like 2 is the sanest mode */
mode = "20";
break;
}
/* Always deliver CB via +CBM, otherwise don't deliver at all */
if (!append_cnmi_element(buf, &len, cnmi_opts[2], "20", FALSE))
if (!append_cnmi_element(buf, &len, cnmi_opts[2], mode, FALSE))
return FALSE;
/*