Open Source Telephony
 help / color / mirror / Atom feed
From: Andreas WESTIN <andreas.westin@stericsson.com>
To: ofono@ofono.org
Subject: Re: [PATCH 16/18] isimodem: sms updated with wgmodem2.5
Date: Wed, 16 Feb 2011 15:47:33 +0100	[thread overview]
Message-ID: <4D5BE385.9030906@stericsson.com> (raw)
In-Reply-To: <AANLkTikD+LKAcNdbc33haZdBKVZ1q3xAikNK4y=M=5Bq@mail.gmail.com>

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

Hi,

On 2011-02-16 15:22, Aki Niemi wrote:
> Hi,
>
> 2011/2/15 Andreas Westin<andreas.westin@stericsson.com>:
>> From: Jessica Nilsson<jessica.j.nilsson@stericsson.com>
>>
>> ---
>>   drivers/isimodem/debug.c |   56 +++
>>   drivers/isimodem/debug.h |    1 +
>>   drivers/isimodem/sms.c   |  972 +++++++++++++++++++++++++++++++++++++++-------
>>   drivers/isimodem/sms.h   |   34 ++
>>   4 files changed, 927 insertions(+), 136 deletions(-)
>>
>> diff --git a/drivers/isimodem/debug.c b/drivers/isimodem/debug.c
>> index 33e4dcb..1fd2226 100644
>> --- a/drivers/isimodem/debug.c
>> +++ b/drivers/isimodem/debug.c
>> @@ -53,6 +53,7 @@ const char *pn_resource_name(int value)
>>                 _(PN_GSS);
>>                 _(PN_GPDS);
>>                 _(PN_WRAN);
>> +               _(PN_UICC);
>>         }
>>         return "PN_<UNKNOWN>";
>>   }
>> @@ -218,6 +219,47 @@ const char *mce_rf_state_name(enum mce_rf_state value)
>>         return "MCE_RF<UNKNOWN>";
>>   }
>>
>> +const char *uicc_message_id_name(enum uicc_message_id value)
>> +{
>> +       switch (value) {
>> +               _(UICC_REQ);
>> +               _(UICC_RESP);
>> +               _(UICC_IND);
>> +               _(UICC_CARD_REQ);
>> +               _(UICC_CARD_RESP);
>> +               _(UICC_CARD_IND);
>> +               _(UICC_APPLICATION_REQ);
>> +               _(UICC_APPLICATION_RESP);
>> +               _(UICC_APPLICATION_IND);
>> +               _(UICC_PIN_REQ);
>> +               _(UICC_PIN_RESP);
>> +               _(UICC_PIN_IND);
>> +               _(UICC_APPL_CMD_REQ);
>> +               _(UICC_APPL_CMD_RESP);
>> +               _(UICC_APPL_CMD_IND);
>> +               _(UICC_CONNECTOR_REQ);
>> +               _(UICC_CONNECTOR_RESP);
>> +               _(UICC_CAT_REQ);
>> +               _(UICC_CAT_RESP);
>> +               _(UICC_CAT_IND);
>> +               _(UICC_APDU_REQ);
>> +               _(UICC_APDU_RESP);
>> +               _(UICC_APDU_RESET_IND);
>> +               _(UICC_REFRESH_REQ);
>> +               _(UICC_REFRESH_RESP);
>> +               _(UICC_REFRESH_IND);
>> +               _(UICC_SIMLOCK_REQ);
>> +               _(UICC_SIMLOCK_RESP);
>> +               _(UICC_APDU_SAP_REQ);
>> +               _(UICC_APDU_SAP_RESP);
>> +               _(UICC_APDU_SAP_IND);
>> +               _(UICC_PWR_CTRL_REQ);
>> +               _(UICC_PWR_CTRL_RESP);
>> +               _(UICC_PWR_CTRL_IND);
>> +       }
>> +       return "UICC_<UNKNOWN>";
>> +}
>> +
>
> This UICC stuff seems to be leftovers form patch 8/18.

Well they are related to SMS, debug prints. But yes they are also UICC. 
Do you want them in patch 8 ?

>
>> @@ -664,28 +1334,44 @@ static int isi_sms_probe(struct ofono_sms *sms, unsigned int vendor,
>>         if (sd == NULL)
>>                 return -ENOMEM;
>>
>> -       sd->params.absent = 0xFF;
>> -       sd->params.alphalen = 1; /* Includes final UCS2-coded NUL */
>> +       sd->sim_params.absent = 0xFF;
>> +       sd->sim_params.alphalen = 1; /* Includes final UCS2-coded NUL */
>> +
>> +       sd->usim_params.indicators = 0xFF;
>> +       sd->usim_params.alphalen = 0; /* Includes final UCS2-coded NUL */
>> +
>>
>>         sd->client = g_isi_client_create(modem, PN_SMS);
>>         if (sd->client == NULL)
>>                 goto nomem;
>>
>> -       sd->sim = g_isi_client_create(modem, PN_SIM);
>> +       sd->sim = g_isi_client_create(modem, PN_UICC);
>> +
>
> After this, the driver will no longer work with N900 or the isimodem plugin.

PN_SIM client is created in the UICC client verify callback if it fails, 
do we not get a response to that callback even if UICC fails ?

Regards
Andreas

  reply	other threads:[~2011-02-16 14:47 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-15 12:30 [PATCH 00/18] wgmodem2.5 support Andreas Westin
2011-02-15 12:30 ` [PATCH 01/18] gisi: pipe and pep for wgmodem2.5 Andreas Westin
2011-02-15 13:23   ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-02-15 13:30     ` Mika.Liljeberg
2011-02-16  9:27     ` Andreas WESTIN
2011-02-15 12:30 ` [PATCH 02/18] gisi: modem version detection Andreas Westin
2011-02-15 12:30 ` [PATCH 03/18] isimodem: general build updates for wgmodem2.5 Andreas Westin
2011-02-16 11:19   ` Aki Niemi
2011-02-15 12:30 ` [PATCH 04/18] gisi: fix subscription " Andreas Westin
2011-02-16 11:16   ` Aki Niemi
2011-02-16 11:33     ` Andreas WESTIN
2011-02-16 11:37       ` Aki Niemi
2011-02-15 12:30 ` [PATCH 05/18] plugins: add plugin for u8500 Andreas Westin
2011-02-16 14:26   ` Aki Niemi
2011-02-16 15:27     ` Andreas WESTIN
2011-02-17  9:02       ` Aki Niemi
2011-02-15 12:31 ` [PATCH 06/18] plugins: add u8500 to udev Andreas Westin
2011-02-15 12:31 ` [PATCH 07/18] isimodem: add wgmodem2.5 to devinfo Andreas Westin
2011-02-16 14:15   ` Aki Niemi
2011-02-15 12:31 ` [PATCH 08/18] isimodem: UICC sim support for wgmodem2.5 Andreas Westin
2011-02-17 13:55   ` Aki Niemi
2011-02-15 12:31 ` [PATCH 09/18] isimodem: clip colp clir colr wgmodem2.5 Andreas Westin
2011-02-18  8:15   ` Aki Niemi
2011-02-15 12:31 ` [PATCH 10/18] isimodem: wgmodem2.5 added to voicecall Andreas Westin
2011-02-15 12:31 ` [PATCH 11/18] isimodem: gprs-context updates wgmodem2.5 Andreas Westin
2011-02-18 14:17   ` Aki Niemi
2011-02-15 12:31 ` [PATCH 12/18] isimodem: wgmodem2.5 support in USSD Andreas Westin
2011-02-15 12:31 ` [PATCH 13/18] isimodem: SS_GSM_BARRING_INFO added Andreas Westin
2011-02-15 12:31 ` [PATCH 14/18] isimodem: wgmodem2.5 added to call-forwarding Andreas Westin
2011-02-15 12:31 ` [PATCH 15/18] isimodem: wgmodem2.5 added to ssn Andreas Westin
2011-02-15 12:31 ` [PATCH 16/18] isimodem: sms updated with wgmodem2.5 Andreas Westin
2011-02-16 14:22   ` Aki Niemi
2011-02-16 14:47     ` Andreas WESTIN [this message]
2011-02-17 10:30       ` Aki Niemi
2011-02-15 12:31 ` [PATCH 17/18] isimodem: CBS for wgmodem2.5 Andreas Westin
2011-02-16 16:10   ` Denis Kenzior
2011-02-17 12:47     ` Andreas WESTIN
2011-02-15 12:31 ` [PATCH 18/18] isimodem: initial support for UICC phonebook Andreas Westin

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=4D5BE385.9030906@stericsson.com \
    --to=andreas.westin@stericsson.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox