option: fix allowed modes response parsing

Expecting a `_OSSYS' reply, not `_OPSYS'.
This commit is contained in:
Aleksander Morgado
2012-03-24 11:48:34 +01:00
parent d841916c4f
commit 0bc824b452

View File

@@ -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;
}