qmi: fix off-by-one error in qmi_error_to_ofono_cme()

Also fixes the Gobi2000 when trying to register manual to a network
This commit is contained in:
Alexander Couzens 2017-11-07 15:49:23 +01:00
parent 08e27c2d5f
commit b0171fc03a
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ static const char *__error_to_string(uint16_t error)
int qmi_error_to_ofono_cme(int qmi_error) {
switch (qmi_error) {
case 0x0018:
case 0x0019:
return 4; /* Not Supported */
case 0x0052:
return 32; /* Access Denied */