mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-22 06:30:28 +01:00
gsm: re-try PIN checking on timeout
It seems that some 'hso' devices (Option GT Max 3.6) drop commands on the floor if you issue them too quickly, so retry this one for now.
This commit is contained in:
parent
31a6f68f8d
commit
9436e62471
1 changed files with 1 additions and 6 deletions
|
|
@ -717,6 +717,7 @@ check_pin_done (NMSerialDevice *device,
|
|||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
case -1: /* timeout */
|
||||
/* Try the pin a few times; sometimes the error is transient */
|
||||
if (priv->pin_tries++ < 4) {
|
||||
schedule_check_pin_again (NM_GSM_DEVICE (device));
|
||||
|
|
@ -728,12 +729,6 @@ check_pin_done (NMSerialDevice *device,
|
|||
NM_DEVICE_STATE_REASON_GSM_PIN_CHECK_FAILED);
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
nm_warning ("PIN checking timed out");
|
||||
nm_device_state_changed (NM_DEVICE (device),
|
||||
NM_DEVICE_STATE_FAILED,
|
||||
NM_DEVICE_STATE_REASON_GSM_PIN_CHECK_FAILED);
|
||||
break;
|
||||
default:
|
||||
nm_warning ("PIN checking failed");
|
||||
nm_device_state_changed (NM_DEVICE (device),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue