All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
To: ofono@ofono.org
Subject: Re: [PATCH 7/9] network: Add CPHS SPN fallback
Date: Wed, 07 Dec 2011 11:23:40 +0200	[thread overview]
Message-ID: <4EDF309C.2050107@intel.com> (raw)
In-Reply-To: <4ED952A0.6000903@gmail.com>

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

Hello Denis,

On 12/03/2011 12:35 AM, Denis Kenzior wrote:
> Actually I don't like this approach.  There are some interactions with
> the SIM refresh logic triggered by sim_spn_changed and this approach
> makes it very hard to puzzle out whether all cases are covered properly.
>   Also, the preference is always towards clearer, more readable code,
> even if at the expense of being more verbose.  Given how tiny
> sim_spn_read_cb is now, I'd rather you handle the CPHS variants separately.
>
> You are also not taking care of the CAT/SAT Refresh cases for the CPHS
> variants.
>
> Thinking more about it, the way I'd try to do this is to look up the
> necessary bits in the CPHS Information Service Table (CPHS 4.2 Section
> B.3.1.1).  Then only read CPHS SPN if the service is active / allocated.
>   Only read the short form if CPHS SPN is not available and the short SPN is.

Thanks for the review and ideas here. Handling CPHS variants separately would be 
cleaner and makes sense. Checking the CPHS Information Service Table will help 
to make the logic simpler too, I will take this approach. Also will check 
CAT/SAT Refresh cases for CPHS variants.

I will rework and prepare another patch.

Regards,
Oleg
-- 
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki


  reply	other threads:[~2011-12-07  9:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-02 11:10 [PATCH 0/9] CPHS SPN, short-SPN support Oleg Zhurakivskyy
2011-12-02 11:10 ` [PATCH 1/9] network: M9 coding style corrections Oleg Zhurakivskyy
2011-12-02 22:03   ` Denis Kenzior
2011-12-02 11:10 ` [PATCH 2/9] network: Refactor sim_spn_read_cb() Oleg Zhurakivskyy
2011-12-02 22:03   ` Denis Kenzior
2011-12-02 11:10 ` [PATCH 3/9] network: Rename spname to spn Oleg Zhurakivskyy
2011-12-02 22:03   ` Denis Kenzior
2011-12-02 11:10 ` [PATCH 4/9] gprs-provision: Fix crash if no SPN present Oleg Zhurakivskyy
2011-12-02 22:04   ` Denis Kenzior
2011-12-02 11:10 ` [PATCH 5/9] simutil: Add CPHS SPN and short-SPN IDs Oleg Zhurakivskyy
2011-12-02 22:04   ` Denis Kenzior
2011-12-07  9:42     ` Oleg Zhurakivskyy
2011-12-02 11:10 ` [PATCH 6/9] network: Add CPHS SPN, short-SPN flags Oleg Zhurakivskyy
2011-12-02 11:10 ` [PATCH 7/9] network: Add CPHS SPN fallback Oleg Zhurakivskyy
2011-12-02 22:35   ` Denis Kenzior
2011-12-07  9:23     ` Oleg Zhurakivskyy [this message]
2011-12-02 11:10 ` [PATCH 8/9] network: Add CPHS short-SPN fallback Oleg Zhurakivskyy
2011-12-02 11:10 ` [PATCH 9/9] TODO: Remove completed CPHS SPN and short-SPN tasks Oleg Zhurakivskyy

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=4EDF309C.2050107@intel.com \
    --to=oleg.zhurakivskyy@intel.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.