Skip to content

Commit

Permalink
set auth counter to 200 for v7
Browse files Browse the repository at this point in the history
  • Loading branch information
limpkin committed Dec 17, 2021
1 parent fef01a8 commit 0831182
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions source_code/main_mcu/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,9 @@ void main_platform_init(void)
if (custom_fs_get_device_flag_value(FUNCTIONAL_TEST_PASSED_FLAG_ID) == FALSE)
#endif
{
/* First boot initializations: set auth counter value to 100 due to possible (non-security critical) hiccups on first mass production batch */
custom_fs_set_auth_challenge_counter(100);
/* First boot initializations: set auth counter value to 200 due to possible (non-security critical) hiccups on first mass production batch */
custom_fs_set_auth_challenge_counter(200);
timer_delay_ms(1);
custom_fs_set_undefined_settings(TRUE);

/* Then functional testing */
Expand Down Expand Up @@ -480,11 +481,15 @@ void main_platform_init(void)
logic_aux_mcu_flash_firmware_update(TRUE);
}

/* Issue for some devices that had bundle < 4: some of them wouldn't have their auth counter set to 0 */
/* Issue for some devices that had bundle < 4 & 7: some of them wouldn't have their auth counter set to 0 */
if (custom_fs_get_platform_bundle_version() == 4)
{
custom_fs_set_auth_challenge_counter(100);
}
if (custom_fs_get_platform_bundle_version() == 7)
{
custom_fs_set_auth_challenge_counter(200);
}
#endif
}

Expand Down
1 change: 1 addition & 0 deletions source_code/main_mcu/src/platform_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
- bundle v6
- v0.79:- bluetooth disable on too many connections
- screen wake-up on device lock
- auth counter set to 200
- bundle v7
*/

Expand Down

0 comments on commit 0831182

Please sign in to comment.