don't wait for TCK if card only supports T0
See 7816-3 8.2.5, T0 only (maybe implicitly) and no T15 = no TCK.
This could be handled by a timeout instead, but timeouts don't work yet.
Change-Id: Ice7bc4e603bbbbef88258af41f61e14a06727add
diff --git a/ccid_common/iso7816_fsm.c b/ccid_common/iso7816_fsm.c
index 21378e0..beda7ab 100644
--- a/ccid_common/iso7816_fsm.c
+++ b/ccid_common/iso7816_fsm.c
@@ -633,6 +633,10 @@
osmo_fsm_inst_state_chg_ms(fi, ATR_S_WAIT_TCK,
guard_time_ms, T_GUARD);
break;
+ } else {
+ /* no TCK present, ATR complete; notify parent */
+ osmo_fsm_inst_state_chg(fi, ATR_S_DONE, 0, 0);
+ osmo_fsm_inst_dispatch(fi->proc.parent, ISO7816_E_ATR_DONE_IND, atp->atr);
}
} else {
break;