Marcel Holtmann <[email protected]> writes:

> Hi Kalle,

Hi Marcel,

>> It's enough that we shutdown PPP, no need to send CGACT after that.
>> Recommended by Denis.
>> ---

[...]

>> @@ -104,13 +88,21 @@ static void ppp_disconnect(GAtPPPDisconnectReason 
>> reason, gpointer user_data)
>>      struct ofono_gprs_context *gc = user_data;
>>      struct gprs_context_data *gcd = ofono_gprs_context_get_data(gc);
>>  
>> -    if (gcd->state == STATE_ENABLING) {
>> +    DBG("");
>> +
>> +    switch (gcd->state) {
>> +    case STATE_ENABLING:
>>              CALLBACK_WITH_FAILURE(gcd->up_cb, NULL, FALSE, NULL,
>>                                      NULL, NULL, NULL, gcd->cb_data);
>> -            return;
>> +            break;
>
> just double-checking that you really wanna have break; and not return;
> here. So that gcd->state gets reset to STATE_IDLE.

Yes, my intention was really to use break here.

-- 
Kalle Valo
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to