Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ril] Set gprs cid range when registering gprs driver. Fixes JB#33861
There is no need to wait for the network state status, the network
may already be operational. Without cid range, attempts to activate
connection context will fail with org.ofono.Error.NotImplemented
  • Loading branch information
monich committed Jan 13, 2016
1 parent 21e90e5 commit c631a48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ofono/drivers/ril/ril_gprs.c
Expand Up @@ -233,6 +233,12 @@ static gboolean ril_gprs_register(gpointer user_data)
gd->registration_status = ril_netreg_check_if_really_roaming(
ril_modem_ofono_netreg(gd->md), gd->network->data.status);

gd->max_cids = gd->network->data.max_calls;
if (gd->max_cids > 0) {
DBG("Setting max cids to %d", gd->max_cids);
ofono_gprs_set_cid_range(gd->gprs, 1, gd->max_cids);
}

ofono_gprs_register(gd->gprs);
return FALSE;
}
Expand Down

0 comments on commit c631a48

Please sign in to comment.