@@ -119,16 +119,12 @@ stse_ReturnCode_t stsafea_perso_info_update(stse_Handler_t *pSTSE) {
119119 return STSE_SERVICE_HANDLER_NOT_INITIALISED ;
120120 }
121121
122- if (pSTSE -> pPerso_info != & dynamic_product_perso ) {
123- return STSE_SERVICE_INVALID_PARAMETER ;
124- }
125-
126- pSTSE -> pPerso_info -> cmd_AC_status = 0x5555555555555555 ;
127- pSTSE -> pPerso_info -> cmd_encryption_status = 0 ,
128- pSTSE -> pPerso_info -> rsp_encryption_status = 0 ;
129- pSTSE -> pPerso_info -> ext_cmd_AC_status = 0x5555555555555555 ;
130- pSTSE -> pPerso_info -> ext_cmd_encryption_status = 0 ;
131- pSTSE -> pPerso_info -> ext_rsp_encryption_status = 0 ;
122+ pSTSE -> perso_info .cmd_encryption_status = 0 ,
123+ pSTSE -> perso_info .rsp_encryption_status = 0 ;
124+ pSTSE -> perso_info .ext_cmd_encryption_status = 0 ;
125+ pSTSE -> perso_info .ext_rsp_encryption_status = 0 ;
126+ pSTSE -> perso_info .cmd_AC_status = 0x5555555555555555 ;
127+ pSTSE -> perso_info .ext_cmd_AC_status = 0x5555555555555555 ;
132128
133129 ret = stsafea_get_command_count (pSTSE , & total_command_count );
134130 if (ret != STSE_OK ) {
@@ -147,13 +143,13 @@ stse_ReturnCode_t stsafea_perso_info_update(stse_Handler_t *pSTSE) {
147143
148144 for (PLAT_UI8 i = 0 ; i < total_command_count ; i ++ ) {
149145 if (record_table [i ].extended_header == 0 ) {
150- stsafea_perso_info_set_cmd_AC (pSTSE -> pPerso_info , record_table [i ].header , record_table [i ].command_AC );
151- stsafea_perso_info_set_cmd_encrypt_flag (pSTSE -> pPerso_info , record_table [i ].header , record_table [i ].host_encryption_flags .cmd );
152- stsafea_perso_info_set_rsp_encrypt_flag (pSTSE -> pPerso_info , record_table [i ].header , record_table [i ].host_encryption_flags .rsp );
146+ stsafea_perso_info_set_cmd_AC (& pSTSE -> perso_info , record_table [i ].header , record_table [i ].command_AC );
147+ stsafea_perso_info_set_cmd_encrypt_flag (& pSTSE -> perso_info , record_table [i ].header , record_table [i ].host_encryption_flags .cmd );
148+ stsafea_perso_info_set_rsp_encrypt_flag (& pSTSE -> perso_info , record_table [i ].header , record_table [i ].host_encryption_flags .rsp );
153149 } else {
154- stsafea_perso_info_set_ext_cmd_AC (pSTSE -> pPerso_info , record_table [i ].extended_header , record_table [i ].command_AC );
155- stsafea_perso_info_set_ext_cmd_encrypt_flag (pSTSE -> pPerso_info , record_table [i ].extended_header , record_table [i ].host_encryption_flags .cmd );
156- stsafea_perso_info_set_ext_rsp_encrypt_flag (pSTSE -> pPerso_info , record_table [i ].extended_header , record_table [i ].host_encryption_flags .rsp );
150+ stsafea_perso_info_set_ext_cmd_AC (& pSTSE -> perso_info , record_table [i ].extended_header , record_table [i ].command_AC );
151+ stsafea_perso_info_set_ext_cmd_encrypt_flag (& pSTSE -> perso_info , record_table [i ].extended_header , record_table [i ].host_encryption_flags .cmd );
152+ stsafea_perso_info_set_ext_rsp_encrypt_flag (& pSTSE -> perso_info , record_table [i ].extended_header , record_table [i ].host_encryption_flags .rsp );
157153 }
158154 }
159155
0 commit comments