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:
Pekka Pessi 2010-11-04 16:20:49 +02:00 committed by Marcel Holtmann
parent ce7b1e2e67
commit b3495d3a9b
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

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