option: fix allowed modes response parsing
Expecting a `_OSSYS' reply, not `_OPSYS'.
This commit is contained in:
@@ -74,13 +74,13 @@ load_allowed_modes_finish (MMIfaceModem *self,
|
||||
if (!response)
|
||||
return FALSE;
|
||||
|
||||
str = mm_strip_tag (response, "_OPSYS:");
|
||||
str = mm_strip_tag (response, "_OSSYS:");
|
||||
|
||||
if (!sscanf (str, "%d,%d", &a, &b)) {
|
||||
g_set_error (error,
|
||||
MM_CORE_ERROR,
|
||||
MM_CORE_ERROR_FAILED,
|
||||
"Couldn't parse OPSYS response: '%s'",
|
||||
"Couldn't parse OSSYS response: '%s'",
|
||||
response);
|
||||
return FALSE;
|
||||
}
|
||||
@@ -109,7 +109,7 @@ load_allowed_modes_finish (MMIfaceModem *self,
|
||||
g_set_error (error,
|
||||
MM_CORE_ERROR,
|
||||
MM_CORE_ERROR_FAILED,
|
||||
"Couldn't unexpected OPSYS response: '%s'",
|
||||
"Couldn't unexpected OSSYS response: '%s'",
|
||||
response);
|
||||
return FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user