Commit c631a48c authored by Slava Monich's avatar Slava Monich

[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
parent 21e90e5a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment