SIM driver question

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

eisencah eisenach wbg_1000 at yahoo.com
Wed Jun 13 11:44:04 UTC 2012


Hi.
Is there any reason why in the sim_handler()  function,  in 

    case SIM_STATE_TX_DATA:
        if (!txDoneFlag)
            break; /* wait until data is transmitted */
        /* Disable all interrupt driven functions */
        writew(0xFF, REG_SIM_MASKIT);
        /* Ignore waiting char for RUN GSM ALGORITHM */
        /* TODO: implement proper handling of the "Procedure Bytes"
           than this is no longer needed */
        if(sim_data[1] == 0x88)
            sim_ignore_waiting_char = 1;
        sim_state = SIM_STATE_RX_STATUS;
        calypso_sim_receive(response + length + 1, 2);
        break;

we do  "calypso_sim_receive(response + length + 1, 2);" instead of   "calypso_sim_receive(response + 1, 2);". 
Seems an unnecessary overhead sending back some junk chars there. Or I'm missing something?
Cheers,
Mihai.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20120613/4b81f875/attachment.htm>


More information about the baseband-devel mailing list