All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 4/8] call-forwarding: class applied is the class given by SS code
Date: Thu, 23 Aug 2012 13:32:43 -0500	[thread overview]
Message-ID: <5036774B.4040801@gmail.com> (raw)
In-Reply-To: <50364CA7.1070804@linux.intel.com>

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

Hi Philippe,

<snip>

>>> + /*
>>> + * Some modems don't understand all classes very well, particularly
>>> + * the older models. So if the bearer class is the default, we
>>> + * just use the more commonly understood value of 7 since BEARER_SMS
>>> + * is not applicable to CallForwarding conditions according to 22.004
>>> + * Annex A
>>> + */
>>> + if (cls == BEARER_CLASS_SS_DEFAULT)
>>> + cls = BEARER_CLASS_DEFAULT;
>>> +
>>
>> Strictly speaking this is wrong. You cannot modify the cls here as it is
>> used to generate the reply in cf_ss_control_reply. Since
>> BEARER_CLASS_SS_DEFAULT != BEARER_CLASS_DEFAULT you will generate the
>> wrong result.
>>
>
> OK, but I don't understand why we intend to generate a reply including
> classes for which we don't know the status?
>
> With BEARER_CLASS_SS_DEFAULT, we are considering the classes
> DataSync/DataAsync/Fax/Sms/Voice.

For some bizarre reason 22.030 specifies that all bearers are queried in 
the case that the mmi service code is omitted.  That means SMS as well. 
  However, half the bearers are not even applicable to call forwarding.

When reporting the results we report all bearers that were queried, even 
if some of them are not applicable or not known.  This is because we do 
not want to require the calling application to have any intelligence in 
this area.  It should simply display the results as given by oFono.

>
> But by default, the query is asking the status only for
> BEARER_CLASS_DEFAULT (Data/Fax/Voice).
> So, why, don't we match strictly the reply with the query?

We do, but querying with class is broken on many modems, hence the 
comment and why we optimize this case.  If we pass in an explicit mmi 
service code then that is what will be used instead.

If your question is why we always query with the default, the answer is 
why not?  Default literally means Voice, Data, Fax.  Where Data is 
equivalent to DataAsync | DataSync in 27.007.  So in effect we get a 
full set of results and we return only the applicable set to the 
application.  Just because the GCF testing methodology is broken in this 
area does not mean that this approach is incorrect.

Regards,
-Denis

  reply	other threads:[~2012-08-23 18:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-22 16:18 [PATCH 1/8] ussd: Recover idle state in case of response sending failure Philippe Nunes
2012-08-22 16:18 ` [PATCH 2/8] stkagent: '+' is considered as a digit Philippe Nunes
2012-08-22 22:55   ` Denis Kenzior
2012-08-23 15:53     ` Philippe Nunes
2012-08-23 18:15       ` Denis Kenzior
2012-08-22 16:18 ` [PATCH 3/8] call-forwarding: return specific errors for SS query Philippe Nunes
2012-08-22 23:18   ` Denis Kenzior
2012-08-22 16:18 ` [PATCH 4/8] call-forwarding: class applied is the class given by SS code Philippe Nunes
2012-08-22 23:36   ` Denis Kenzior
2012-08-23 15:30     ` Philippe Nunes
2012-08-23 18:32       ` Denis Kenzior [this message]
2012-08-22 16:18 ` [PATCH 5/8] call-barring: Return specific errors for SS query Philippe Nunes
2012-08-22 23:19   ` Denis Kenzior
2012-08-22 16:18 ` [PATCH 6/8] call-barring: class applied is the class given by SS code Philippe Nunes
2012-08-22 16:18 ` [PATCH 7/8] call-settings: Return specific errors for SS query Philippe Nunes
2012-08-22 23:19   ` Denis Kenzior
2012-08-22 16:18 ` [PATCH 8/8] call-settings: class applied is the class given by SS code Philippe Nunes
2012-08-22 23:41   ` Denis Kenzior
2012-08-22 23:02 ` [PATCH 1/8] ussd: Recover idle state in case of response sending failure Denis Kenzior
2012-08-23 10:30   ` Philippe Nunes

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=5036774B.4040801@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.