Keep a sequence number to mark when the AES key is changed so that the
radio code can avoid sending the key before every CMAC radio operation.
Signed-off-by: Keith Packard <keithp@keithp.com>
#define AO_AES_LEN 16
+extern __xdata uint8_t ao_config_aes_seq;
+
struct ao_config {
uint8_t major;
uint8_t minor;
#endif /* HAS_RADIO */
#if HAS_AES
+
+__xdata uint8_t ao_config_aes_seq = 1;
+
void
ao_config_key_show(void) __reentrant
{
break;
ao_config.aes_key[i] = ao_cmd_lex_i;
}
+ ++ao_config_aes_seq;
_ao_config_edit_finish();
}
#endif