simtrace2: use correct event when dispatching modem data to main_fsm

Change-Id: I35e20a577544bde7ad7440a617dc3ed4d2572abf
changes/75/18475/1
Harald Welte 3 years ago
parent eea6135f61
commit 1eec53dbfb
  1. 2
      src/client/user_simtrace2.c

@ -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 */
ftpdu.buf = apdu_command;
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) {
/* 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);

Loading…
Cancel
Save