From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/3] cdma-connman: add feature to load/save credentials
Date: Wed, 10 Aug 2011 22:36:26 -0500 [thread overview]
Message-ID: <4E434E3A.3060006@gmail.com> (raw)
In-Reply-To: <4E43D5F7.3000206@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1837 bytes --]
Hi Guillaume,
On 08/11/2011 08:15 AM, Guillaume Zajac wrote:
> Hi Denis,
>
> On 09/08/2011 20:52, Denis Kenzior wrote:
>> Hi Guillaume,
>>
>> On 08/09/2011 09:48 AM, Guillaume Zajac wrote:
>>> ---
>>> include/cdma-connman.h | 3 ++
>>> src/cdma-connman.c | 57
>>> ++++++++++++++++++++++++++++++++++++++++++++++++
>>> src/modem.c | 35 +++++++++++++++++++++++++++++
>>> 3 files changed, 95 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/include/cdma-connman.h b/include/cdma-connman.h
>>> index 6a1c9ff..0f8e388 100644
>>> --- a/include/cdma-connman.h
>>> +++ b/include/cdma-connman.h
>>> @@ -77,6 +77,9 @@ void ofono_cdma_connman_set_data(struct
>>> ofono_cdma_connman *cm,
>>> void *data);
>>> void *ofono_cdma_connman_get_data(struct ofono_cdma_connman *cm);
>>>
>>> +void ofono_cdma_connman_load_credentials(struct ofono_cdma_connman *cm,
>>> + const char *serial);
>>> +
>> Stop right there, this is pretty much the wrong design. In fact it is
>> completely opposite of what you want to have from an encapsulation / API
>> point of view.
>>
>> You need to ensure that the imsi/meid are known prior to cdma-connman
>> going live. That way the cdma-connman atom can lookup the relevant
>> information and load its settings as needed.
>>
>> If that means that the modem needs to query the relevant information
>> prior to calling post_sim/post_online, then that is what you have to do.
>>
>
> What about using a __ofono_devinfo_add_serial_watch() similar to
> __ofono_netreg_add_status_watch()?
> cdma-connman atom would be notified when credentials can be loaded.
>
You could, but that is really complicated. I'd just not proceed to
post_sim until the serial number was retrieved.
Regards,
-Denis
next prev parent reply other threads:[~2011-08-11 3:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-09 14:48 [PATCH 0/3] Add CDMA features to load/save/remove credentials Guillaume Zajac
2011-08-09 14:48 ` [PATCH 1/3] cdma-connman: add feature to load/save credentials Guillaume Zajac
2011-08-09 18:52 ` Denis Kenzior
2011-08-11 13:15 ` Guillaume Zajac
2011-08-11 3:36 ` Denis Kenzior [this message]
2011-08-09 14:48 ` [PATCH 2/3] cdma-connman: Add D-Bus API to remove credentials Guillaume Zajac
2011-08-09 18:37 ` Denis Kenzior
2011-08-11 10:19 ` Guillaume Zajac
2011-08-09 14:48 ` [PATCH 3/3] test: Add cdma-remove-credentials script Guillaume Zajac
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=4E434E3A.3060006@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox