qmimodem: report the qmimodem bug

This commit is contained in:
Alexander Couzens 2017-09-12 16:01:09 +02:00 committed by Pau Espin Pedrol
parent c2c3492f3b
commit f3e022ed1d
1 changed files with 3 additions and 2 deletions

View File

@ -107,9 +107,10 @@ static bool extract_ss_info(struct qmi_result *result, int *status,
switch (ss->status) {
case NETWORK_REGISTRATION_STATUS_REGISTERED:
case NETWORK_REGISTRATION_STATUS_ROAMING:
if (ss->cs_state == 0 && ss->ps_state == 0)
if (ss->cs_state == 0 && ss->ps_state == 0) {
ofono_error("qmimodem BUG: reported registering state to early.");
*status = NETWORK_REGISTRATION_STATUS_SEARCHING;
else
} else
*status = ss->status;
break;
case NETWORK_REGISTRATION_STATUS_DENIED: