Change Pin command not working in libqmi

rajiv.mohan at wipro.com rajiv.mohan at wipro.com
Fri May 31 04:57:40 PDT 2013


Hi,

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?

Regards,
Rajiv Mohan


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20130531/7ebf5485/attachment.html>


More information about the libqmi-devel mailing list