mirror of git://git.sysmocom.de/ofono
isigen: increase offline timeout
The modem deregisters from network before response to MTC_STATE_REQ is returned. Deregistering can take up to 6 seconds.
This commit is contained in:
parent
ce7b1e2e67
commit
b3495d3a9b
|
@ -28,6 +28,7 @@ extern "C" {
|
|||
|
||||
#define PN_MTC 0x15
|
||||
#define MTC_TIMEOUT 5
|
||||
#define MTC_STATE_REQ_TIMEOUT (6 + 5)
|
||||
|
||||
enum mtc_isi_cause {
|
||||
MTC_OK = 0x00,
|
||||
|
|
|
@ -373,7 +373,7 @@ static void isigen_online(struct ofono_modem *modem, ofono_bool_t online,
|
|||
|
||||
isi->online = online;
|
||||
|
||||
if (g_isi_send(isi->client, req, sizeof(req), MTC_TIMEOUT,
|
||||
if (g_isi_send(isi->client, req, sizeof(req), MTC_STATE_REQ_TIMEOUT,
|
||||
mtc_state_cb, cbd, NULL))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue