mbm: fix CFUN result parsing
This commit is contained in:
@@ -183,7 +183,7 @@ load_allowed_modes_finish (MMIfaceModem *_self,
|
|||||||
if (!response)
|
if (!response)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (mm_get_uint_from_str (mm_strip_tag (response, "CFUN:"), &a)) {
|
if (mm_get_uint_from_str (mm_strip_tag (response, "+CFUN:"), &a)) {
|
||||||
/* No settings to set preferred */
|
/* No settings to set preferred */
|
||||||
*preferred = MM_MODEM_MODE_NONE;
|
*preferred = MM_MODEM_MODE_NONE;
|
||||||
|
|
||||||
@@ -524,7 +524,7 @@ load_power_state_finish (MMIfaceModem *self,
|
|||||||
if (!response)
|
if (!response)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (mm_get_uint_from_str (mm_strip_tag (response, "CFUN:"), &a)) {
|
if (mm_get_uint_from_str (mm_strip_tag (response, "+CFUN:"), &a)) {
|
||||||
switch (a) {
|
switch (a) {
|
||||||
case MBM_NETWORK_MODE_OFFLINE:
|
case MBM_NETWORK_MODE_OFFLINE:
|
||||||
return MM_MODEM_POWER_STATE_OFF;
|
return MM_MODEM_POWER_STATE_OFF;
|
||||||
|
Reference in New Issue
Block a user