Change Pin command not working in libqmi

rajiv.mohan at wipro.com rajiv.mohan at wipro.com
Fri May 31 06:13:40 PDT 2013


Hi Aleksander,

Thank you for the immediate response. Can you let us know when the next release is expected ?

Regards,
Rajiv Mohan

-----Original Message-----
From: Aleksander Morgado [mailto:aleksander at lanedo.com] 
Sent: Friday, May 31, 2013 6:00 PM
To: Rajiv Mohan (WT01 - GMT-Telecom Equipment)
Cc: libqmi-devel at lists.freedesktop.org; Vidya Raghunathan (WT01 - GMT-Telecom Equipment); Swarnalatha Subramaniya (WT01 - GMT-Telecom Equipment)
Subject: Re: Change Pin command not working in libqmi

Hey,

> 
> We are working with qmicli and are facing one issue with change pin command:
> 
>  
> 
> --dms-uim-change-pin=PIN,(old PIN),(new PIN)
> 
>  
> 
> We are getting success message when we perform this command, but when we
> validate the  <new pin> with the command
> 
> --dms-uim-verify-pin=PIN,(new PIN)
> 
>  
> 
> We are getting error "invalid pin"
> 
>  
> 
> When we give the old pin in the verify-pin command we are getting
> success message.
> 
> --dms-uim-verify-pin=PIN,(old PIN)
> 
>  
> 
>  
> 
> We had a look into the code and found the following:
> 
>  
> 
> File : qmicli-dms.c
> 
> Function : static QmiMessageDmsUimChangePinInput
> *uim_change_pin_input_create (const gchar *str)
> 
>  
> 
> Code snippet:
> 
>  
> 
> *******************
> 
> /* Prepare inputs.
> 
>      * Format of the string is:
> 
>      *    "[(PIN|PIN2),(old PIN),(new PIN)]"
> 
>      */
> 
>     split = g_strsplit (str, ",", -1);
> 
>     if (qmicli_read_pin_id_from_string (split[0], &pin_id) &&
> 
>         qmicli_read_non_empty_string (split[1], "old PIN", &old_pin) &&
> 
> *        qmicli_read_non_empty_string (split[1], "new PIN", &new_pin))*
> 
>  
> 
> *******************
> 
>  
> 
> Because of the highlighted line the old pin is again set as the new pin.
> 
> Is there any specific reason for this?
> 
> Is it possible to get a release with this fixed?
> 
>  

Pushed a fix to git master; thanks for noticing. It will go into the
next libqmi release.

-- 
Aleksander

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com


More information about the libqmi-devel mailing list