From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [RFC PATCH] gprs: add function to handle activated context
Date: Thu, 06 Jan 2011 10:47:59 -0600 [thread overview]
Message-ID: <4D25F23F.3060208@gmail.com> (raw)
In-Reply-To: <8281606748F03E4390BB98A3F47F2E948A9C123FBC@irsmsx501.ger.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]
Hi Redouane,
On 01/06/2011 08:59 AM, Soum, RedouaneX wrote:
> Hi Sjur,
>
>
>>> +static void gprs_cid_take(struct ofono_gprs *gprs, unsigned int id)
>>> +{
>>> + idmap_take(gprs->cid_map, id);
>>> +}
>>> +
>> How do we assure that this CID is not already in use?
>> I think the M7400 is going to use CID=0 and M700 uses CID=1.
>> Perhaps we should make sure CID=0 is a legal value and reserve CID 0
>> and 1 at start up.
>
> From my understanding the ID in the core is an internal ID for oFono core, even if today we usually have a mapping 1 to 1 between oFono core ID and modems CID.
> Denis, Marcel could you confirm ?
>
Actually the intent was and still is to map it 1:1 to the modem cid to
make life easier for the drivers. Since we follow 27.007 this makes
sense. The modem driver can still do its own internal id mapping /
management, e.g. isi drivers do this AFAIK. For AT modems I'd like to
avoid doing so...
oFono can be told the range of cids to use. There's nothing precluding
the modem from giving oFono cids that are not in this range when a
context is auto-activated.
However, this gets into a real gray area whether you can have multiple
(network|auto)-activated contexts and whether the cid picked for all of
them is guaranteed to be outside this range.
Regards,
-Denis
next prev parent reply other threads:[~2011-01-06 16:47 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-05 17:25 [RFC PATCH] gprs: add function to handle activated context Soum, RedouaneX
2011-01-06 0:12 ` Marcel Holtmann
2011-01-06 0:17 ` Denis Kenzior
2011-01-07 8:52 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-07 15:45 ` Joly, Frederic
2011-01-07 21:07 ` Denis Kenzior
2011-01-06 13:28 ` Soum, RedouaneX
2011-01-07 8:50 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-07 10:38 ` Aki Niemi
2011-01-06 12:02 ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-06 14:59 ` Soum, RedouaneX
2011-01-06 16:47 ` Denis Kenzior [this message]
2011-01-06 17:14 ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-06 16:37 ` Denis Kenzior
2011-01-06 17:39 ` Marcel Holtmann
2011-01-06 17:45 ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-06 17:53 ` Marcel Holtmann
2011-01-06 18:10 ` Denis Kenzior
2011-01-07 15:14 ` Joly, Frederic
2011-01-07 15:38 ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-07 17:52 ` Joly, Frederic
2011-01-07 21:01 ` Denis Kenzior
2011-01-11 12:46 ` Soum, RedouaneX
2011-01-17 14:21 ` Pekka Pessi
2011-01-17 18:39 ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-17 18:51 ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2011-01-17 22:39 ` Pekka Pessi
2011-01-17 23:15 ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D25F23F.3060208@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.