Re: Stop this APN madness!



On Fri, Sep 12, 2008 at 7:23 PM, Antti Kaijanmäki <antti kaijanmaki net wrote:
> pe, 2008-08-22 kello 11:05 -0400, Dan Williams kirjoitti:
>> Probably not.  As an enhancement, NM should:
>>
>> 1) Issue AT+CGDCONT=? to get the allowable range of CID slots; not all
>> devices conform to the standard here of course so you have to quirk
>> stuff.  Some phones may have fewer than 10 slots.  Some devices may have
>> all slots filled.
>>
>> 2) Iterate over all the slots with AT+CGDCONT? and search for the
>> user-specified APN.
>>
>> 3) If the user-specified APN is found, use that slot.
>>
>> 4) If the user-specified APN is not found, use a free slot.
>>
>> 3) If there are no free slots, use the last slot and overwrite whatever
>> is there.
>
> this is almost exactly what I proposed :)
> great! let's do it!

Just implemented it for ModemManager:

http://gitorious.org/projects/modemmanager/repos/mainline/commits/1455c424c2a5b2fcb61163b2feb3a2aadc0bfad0

If NM is fine with glib >= 2.14, the patch can be easily ported to NM.

Tambet


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]