FreeCalypso > hg > fc-magnetite
changeset 480:41f2cc21bca9
hybrid fw: code change to support allowing GSM APDUs in AT+CSIM
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 19 Jun 2018 06:27:16 +0000 |
parents | e9e72ec7b318 |
children | 24078551b620 |
files | src/g23m-aci/aci/cmh_sims.c src/g23m-gsm/sim/sim_app.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/g23m-aci/aci/cmh_sims.c Thu Jun 14 07:43:01 2018 +0000 +++ b/src/g23m-aci/aci/cmh_sims.c Tue Jun 19 06:27:16 2018 +0000 @@ -1308,6 +1308,7 @@ return( AT_BUSY ); } +#ifndef ALLOW_CSIM_GSM if (data[0] EQ GSM_CLASS) { /* GSM instruction class is not allowed */ @@ -1315,6 +1316,8 @@ ACI_ERR_DESC( ACI_ERR_CLASS_Cme, CME_ERR_OpNotAllow ); return( AT_FAIL ); } +#endif + #if 0 /* do we really need the check for the ATP source ? */ #ifdef _TARGET_ if (ati_is_src_type((UBYTE)srcId, ATI_SRC_TYPE_RIV) EQ FALSE)
--- a/src/g23m-gsm/sim/sim_app.c Thu Jun 14 07:43:01 2018 +0000 +++ b/src/g23m-gsm/sim/sim_app.c Tue Jun 19 06:27:16 2018 +0000 @@ -3460,7 +3460,10 @@ break; case SIM_TRANSP_CMD: if (sim_access_req->c_trans_data < 4 OR sim_access_req->c_trans_data > 261 - OR sim_access_req->trans_data[0] EQ GSM_CLASS) +#ifndef ALLOW_CSIM_GSM + OR sim_access_req->trans_data[0] EQ GSM_CLASS +#endif + ) { sim_access_cnf->cause = SIM_CAUSE_PARAM_WRONG; break;