SIMCOM: add a quirk for signal strength reporting

We must tell we want the signal strength reporting using
AT+AUTOCSQ command (ref. "SIM5215_SIM5216_ATC_V1.18.pdf - §10.7").
This commit is contained in:
Anthony Viallard 2013-07-19 15:35:37 +02:00 committed by Denis Kenzior
parent 8c6eea3385
commit d1ac1ba3d4
1 changed files with 8 additions and 1 deletions

View File

@ -1753,6 +1753,14 @@ static void at_creg_set_cb(gboolean ok, GAtResult *result, gpointer user_data)
}
switch (nd->vendor) {
case OFONO_VENDOR_SIMCOM:
/* Register for CSQ changes */
g_at_chat_send(nd->chat, "AT+AUTOCSQ=1,1", none_prefix,
NULL, NULL, NULL);
g_at_chat_register(nd->chat, "+CSQ:",
csq_notify, FALSE, netreg, NULL);
break;
case OFONO_VENDOR_PHONESIM:
g_at_chat_register(nd->chat, "+CSQ:",
csq_notify, FALSE, netreg, NULL);
@ -1898,7 +1906,6 @@ static void at_creg_set_cb(gboolean ok, GAtResult *result, gpointer user_data)
break;
case OFONO_VENDOR_NOKIA:
case OFONO_VENDOR_SAMSUNG:
case OFONO_VENDOR_SIMCOM:
/* Signal strength reporting via CIND is not supported */
break;
default: