simtrace2: use correct event when dispatching modem data to main_fsm
Change-Id: I35e20a577544bde7ad7440a617dc3ed4d2572abf
This commit is contained in:
parent
eea6135f61
commit
1eec53dbfb
|
@ -111,7 +111,7 @@ static int process_do_rx_da(struct osmo_st2_cardem_inst *ci, uint8_t *buf, int l
|
||||||
/* send APDU to card */
|
/* send APDU to card */
|
||||||
ftpdu.buf = apdu_command;
|
ftpdu.buf = apdu_command;
|
||||||
ftpdu.len = sizeof(ac.hdr) + ac.lc.tot;
|
ftpdu.len = sizeof(ac.hdr) + ac.lc.tot;
|
||||||
osmo_fsm_inst_dispatch(bc->main_fi, MF_E_BANKD_TPDU, &ftpdu);
|
osmo_fsm_inst_dispatch(bc->main_fi, MF_E_MDM_TPDU, &ftpdu);
|
||||||
} else if (ac.lc.tot > ac.lc.cur) {
|
} else if (ac.lc.tot > ac.lc.cur) {
|
||||||
/* there is pending data from the modem: send procedure byte to get remaining data */
|
/* there is pending data from the modem: send procedure byte to get remaining data */
|
||||||
osmo_st2_cardem_request_pb_and_rx(ci, ac.hdr.ins, ac.lc.tot - ac.lc.cur);
|
osmo_st2_cardem_request_pb_and_rx(ci, ac.hdr.ins, ac.lc.tot - ac.lc.cur);
|
||||||
|
|
Loading…
Reference in New Issue