mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-08-14 22:41:59 +03:00
firmware: Drop CEMU_TX_DATA when 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:
@@ -215,6 +215,19 @@ struct card_handle {
|
||||
} stats;
|
||||
};
|
||||
|
||||
/* if the card should enque messages */
|
||||
bool card_ready(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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user