mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-20 07:18:33 +03:00
cardem: fix TPDU state check
this change allows to initialize the TPDU state while in ISO_S_WAIT_TPDU, before actually entering ISO_S_TPDU Change-Id: I505d3add32a43de31499b800bc53442f99f65931
This commit is contained in:
@@ -826,7 +826,7 @@ static void set_tpdu_state(struct card_handle *ch, enum tpdu_state new_ts)
|
|||||||
{
|
{
|
||||||
if (ch->tpdu.state == new_ts)
|
if (ch->tpdu.state == new_ts)
|
||||||
return;
|
return;
|
||||||
if (ISO_S_IN_TPDU != ch->state) {
|
if (ISO_S_IN_TPDU != ch->state && ISO_S_WAIT_TPDU != ch->state) {
|
||||||
TRACE_ERROR("%u: setting TPDU state in %s state\r\n", ch->num,
|
TRACE_ERROR("%u: setting TPDU state in %s state\r\n", ch->num,
|
||||||
get_value_string(iso7816_3_card_state_names, ch->state));
|
get_value_string(iso7816_3_card_state_names, ch->state));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user