firmware: Drop CEMU_TX_DATA when emulated sim is in-active

When the emulated sim is in reset or without power, drop
CEMU_TX_DATA.

Change-Id: I796e548225a742cddfde12bd6a60e4d2e5c04c8f
This commit is contained in:
Alexander Couzens committed 2026-08-12 17:12:12 +02:00
1 parent 17a5333bf7
commit f1deb81434
3 files changed
+20

No files matched your search

+13
View File
@@ -215,6 +215,19 @@ struct card_handle {
} stats;
};
/* if the card emu is ready to handle TPDUs */
bool card_emu_ch_ready(const struct card_handle *ch)
{
switch (ch->state) {
case ISO_S_IN_PTS:
case ISO_S_WAIT_TPDU:
case ISO_S_IN_TPDU:
return true;
default:
return false;
}
}
/* reset all the 'dynamic' state of the card handle to the initial/default values */
static void card_handle_reset(struct card_handle *ch)
{