Re: Stop this APN madness!



On Mon, 2008-09-15 at 13:19 +0300, Tambet Ingo wrote:
> 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.

Hmm, I'd prefer to keep glib 2.12, but I can port the code to 2.12 if
you don't want to and it's not too hard?  If that's OK, I'd love to get
this in.  Then we can remove the phone # box in the connection editor
for GSM too, which is completely unnecessary as a result of this.

dan




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