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