All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add ResetProperties method to ConnectionContext interface
@ 2015-02-19 11:59 Tommi Kenakkala
  2015-02-19 11:59 ` [PATCH 1/2] gprs: " Tommi Kenakkala
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tommi Kenakkala @ 2015-02-19 11:59 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 907 bytes --]

In some cases it is useful to reset connection context settings back to ones
ofono provisioning resolved initially.
What's your opinion on the API design, implementation and use-case described
next?

Deactivation of the context is obviously mandatory. The reasoning for placing
this into ofono is handling client requests consistently and avoiding race
conditions. Using this approach ofono does not re-activate the context, that's 
done by ConnMan or whatever connection manger the system uses.

Ps. Patches on behalf of Slava whose emails didn't get through to the mailing
list.

Slava Monich (2):
  gprs: Add ResetProperties method to ConnectionContext interface
  doc: Document ResetProperties method

 doc/connman-api.txt |    9 ++
 src/gprs.c          |  292 +++++++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 295 insertions(+), 6 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Re: [PATCH 0/2] Add ResetProperties method to ConnectionContext interface
@ 2015-02-23 12:31 Tommi Kenakkala
  2015-02-23 15:47 ` Denis Kenzior
  0 siblings, 1 reply; 5+ messages in thread
From: Tommi Kenakkala @ 2015-02-23 12:31 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2571 bytes --]

> Date: Fri, 20 Feb 2015 10:00:31 -0600
> From: Denis Kenzior <denkenz@gmail.com>
> To: ofono(a)ofono.org
> Subject: Re: [PATCH 0/2] Add ResetProperties method to
>         ConnectionContext interface
> Message-ID: <54E75A1F.8070709@gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Tommi,
>
> On 02/19/2015 05:59 AM, Tommi Kenakkala wrote:
>> In some cases it is useful to reset connection context settings back to ones
>> ofono provisioning resolved initially.
>> What's your opinion on the API design, implementation and use-case described
>> next?
>>
> Why don't you just remove the settings file and restart oFono?
oFono handles many other services so restarting would have undesirable effects.
For a moment clients would think there is no telephony at all: no SIM,
no cellular signal strength, no voice/emergency calls, no SIM ATK etc.

>> Deactivation of the context is obviously mandatory. The reasoning for placing
>> this into ofono is handling client requests consistently and avoiding race
>> conditions. Using this approach ofono does not re-activate the context, that's
>> done by ConnMan or whatever connection manger the system uses.
>>
> I'm not so sure that this is a good idea.  A 'live' reset of the
> settings just seems wrong to me.  Why would you ever want to do that
> anyway?  If something is working, why bother resetting the settings?
Generally speaking I agree with the point of view. The main point was
not the 'live' part, but to allow running provisioning again, e.g. if
user has set wrong ones.
FYI a MMS context may be active using a correct APN but messages don't
flow due to a wrong proxy. In such a case context remains active for
some time.

> oFono supports arbitrary number of contexts, so your UI can always add
> more.  So if you need to re-provision, let your UI handle this.  The UI
> should be capable of reading the provisioning database anyway in order
> to handle duplicates, etc.
When ofono already implements the initial provisioning logic it is not
tempting to duplicate it but instead trigger it again.
(A more suitable name for the new method could be  "ProvisiongContext"
or similar.)
If reverting provisioned settings is done by creating a new empty
context, one would still want to run ofono provisioning for that
(ofono restart not an option).
>
> Regards,
> -Denis

Thanks for your feedback Denis, I appreciate it. All tips to make
changes more upstream-worthy, or if not then otherwise better, are
welcome.

Thanks
-- 
Tommi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-23 15:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-19 11:59 [PATCH 0/2] Add ResetProperties method to ConnectionContext interface Tommi Kenakkala
2015-02-19 11:59 ` [PATCH 1/2] gprs: " Tommi Kenakkala
2015-02-19 11:59 ` [PATCH 2/2] doc: Document ResetProperties method Tommi Kenakkala
2015-02-20 16:00 ` [PATCH 0/2] Add ResetProperties method to ConnectionContext interface Denis Kenzior
  -- strict thread matches above, loose matches on Subject: below --
2015-02-23 12:31 Tommi Kenakkala
2015-02-23 15:47 ` Denis Kenzior

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.