← Back to team overview

ubuntu-phonedations-bugs team mailing list archive

[Bug 1427788] Re: rilmodem: Do not always use sim's app in status->gsm_umts_index

 

@Ratchanan, thanks for the log. This implies that we should not really
use the index if set to -1 for your modem, but send the request for
selecting an application before. Great to know that you are already able
to register, maybe getting ofonod to work will just need a couple of
minor adjustments. If that is the case, you could define a new vendor in

drivers/rilmodem/vendor.h

and use it as necessary. The repo we use for our development is

https://github.com/rilmodem/ofono

Patches are always welcome ;)

-- 
You received this bug notification because you are a member of Ubuntu
Phonedations bugs, which is subscribed to ofono in Ubuntu.
https://bugs.launchpad.net/bugs/1427788

Title:
  rilmodem: Do not always use sim's app in status->gsm_umts_index

Status in ofono package in Ubuntu:
  In Progress

Bug description:
  In driver/rilmodem/sim.c, function sim_status_cb, there is a line that
  set variable search_index to status->gsm_utms_index.

  The code then checks if the card_state returned by the GET_SIM_STATUS
  reply is PRESENT and search_index is less than num_apps.  If both are
  true, search_index is used to index the returned reply_sim_app array (
  which leads to undefined behavior if the index is negative ) and then
  passed to configure_active_app().

  The code should check search index, and if negative and num_apps >=1,
  set search_index to 0.

  ofono version 1.12.bzr6888+15.04.20150224 in Ubuntu 15.04
  Device: LG L90 Dual (I'm doing a port.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1427788/+subscriptions


References