On 03/18/2014 05:33 AM, alfonsosanchezbeato wrote:
> In drivers/rilmodem/gprs.c:
>
>> @@ -126,17 +118,53 @@ static void ril_gprs_set_attached(struct ofono_gprs *gprs, int attached,
>>  	g_idle_add(ril_gprs_set_attached_cb, cbd);
>>  }
>>
>> +static gboolean ril_try_get_status_again(gpointer user_data)
>> +{
>> +	struct ofono_gprs *gprs = user_data;
>> +
>> +	ril_gprs_registration_status(gprs, NULL, NULL);
>> +
>> +	return FALSE;
>> +}
>> +
>> +static void drop_all_data_calls(GRil *gril, int max_cids)
>> +{
>> +	int cid, num_cids;
>> +
>> +	if (RIL_MAX_NUM_ACTIVE_DATA_CALLS > max_cids)
>> +		num_cids = max_cids;
>
> It should be possible using RIL_REQUEST_DATA_CALL_LIST. I will
> experiment with that, but that implies modifications to gprs.c design,
> so I prefer to do that in another PR, probably jointly with the unit
> tests. For the moment, I have set max_cids to 2 as a maximum.

That works for me.