Remove extra code for Esim Handling
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Shweta,
Quoted 2 lines · shweta
From: Shweta Jain <[email protected]>
Can you elaborate a bit more why this code is no longer needed? Also, how does the driver now guarantee that +CUSATP will be received by the stk atom? I believe this was originally added for those devices that didn't shut down fully (like USB ones) and kept the sim initialized even when .disable() callback was called.
If this new device/firmware doesn't need this logic, it might be simpler to just not pass in the OFONO_VENDOR_XMM (use 0 instead) in plugins/xmm7xxx.c
Quoted 9 lines
--- drivers/atmodem/stk.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-)drivers/atmodem/stk.c +0
-0
drivers/atmodem/stk.c static gboolean at_stk_register(gpointer user) · line 183
Quoted 5 lines
drivers/atmodem/stk.c +1
-1@@ -180,7 +180,7 @@ static gboolean at_stk_register(gpointer user) {struct ofono_stk *stk = user;struct stk_data *sd =ofono_stk_get_data (stk); - +DBG ("" );
This code not according to our coding style. Nor is it really related to this commit description.
Quoted 16 lines
drivers/atmodem/stk.c +0
-9g_at_chat_register (sd->chat,"+CUSATP:" , phonesim_cusatp_notify, FALSE, stk,NULL );@@ -190,25 +190,9 @@ static gboolean at_stk_register(gpointer user)if (sd->vendor ==OFONO_VENDOR_PHONESIM )g_at_chat_register (sd->chat,"*HCMD:" , phonesim_hcmd_notify, FALSE, stk,NULL ); - -if (sd->vendor ==OFONO_VENDOR_XMM ) { -/* enabling stk */ -g_at_chat_send (sd->chat,"AT+CFUN=6" , none_prefix, -NULL ,NULL ,NULL ); -/* Here ofono has missed stk menu proactive command -* that comes after sim initialization only. Doing a -* sim reset will enable the stk driver to get the -* missed +CUSATP notifications.
drivers/atmodem/stk.c static gboolean at_stk_register(gpointer user) · line 211
Quoted 10 lines
drivers/atmodem/stk.c +0
-7-*/ -g_at_chat_send (sd->chat,"AT+CFUN=27,1" , none_prefix, -NULL ,NULL ,NULL ); - } -ofono_stk_register (stk); -return FALSE; } -
This change results in a violation of the coding style as well. See doc/coding-style.txt for more details.
drivers/atmodem/stk.c static gboolean at_stk_register(gpointer user) · line 198
Quoted 4 lines
drivers/atmodem/stk.c +0
-0static int at_stk_probe (struct ofono_stk *stk,unsigned int vendor,void *data) {GAtChat *chat = data;
Regards,
-Denis