Re: [PATCH] xmm7modem: CPIN handling after sending puk

2019-12-20 Thread Denis Kenzior
Hi Antara, On 12/19/19 6:57 AM, Antara Borwankar wrote: On XMM modems SIM is busy after PUK is entered. CME ERROR: 14 is received for AT+CPIN? query. Therefore polling for CPIN: READY state. --- drivers/atmodem/sim.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dri

Re: [PATCH] sim: handling crash in error scenario for SIM PIN query

2019-12-20 Thread Denis Kenzior
Hi Antara, On 12/19/19 6:57 AM, Antara Borwankar wrote: In case of error in sim_pin_query_cb function. pin_type is set to -1. This is causing segmentation fault in function sim_passwd_name due to invalid index pin_type = -1. Fixing this issue by handling error case before calling sim_passwd_name

Re: [PATCH] xmm7xxx: modified handling of XSIM states for xmm modems

2019-12-20 Thread Denis Kenzior
Hi Antara, On 12/19/19 6:56 AM, Antara Borwankar wrote: +XSIM:7 state as defined in xmm7560 functional AT specification only indicates ready for attach. +CPIN: READY is received after SIM is completely initialized. Also indicating readiness of Phonebook and SMS. Hence moving the creation of SMS