# HG changeset patch # User Mychaela Falconia # Date 1509320160 0 # Node ID 9f3ff430307a105db11df1b2a0df944b1d21f376 # Parent 3c3b9bdd206b94e61c1110257942752a51279877 macs.c reconstructed, perfect match to original TCS211 object diff -r 3c3b9bdd206b -r 9f3ff430307a chipsetsw/layer1/cmacs/macs.c --- a/chipsetsw/layer1/cmacs/macs.c Sun Oct 29 19:06:19 2017 +0000 +++ b/chipsetsw/layer1/cmacs/macs.c Sun Oct 29 23:36:00 2017 +0000 @@ -1400,7 +1400,7 @@ #endif #endif - //i = 0;//OMAPS00090550 + i = 0; /*---------------------------------------------------------*/ /* Poll responses processing */ @@ -1410,11 +1410,10 @@ #endif /* While a poll response is requested */ - for(i=0;i<=3;i++) //OMAPS00090550 - { - if( ((((UWORD8) NDB_PTR->a_pu_gprs[i][0]) & 0xF) == CS1_TYPE_POLL) - || ((((UWORD8) NDB_PTR->a_pu_gprs[i][0]) & 0xF) == CS_PAB8_TYPE) - || ((((UWORD8) NDB_PTR->a_pu_gprs[i][0]) & 0xF) == CS_PAB11_TYPE)) + while ( ( ((((UWORD8) NDB_PTR->a_pu_gprs[i][0]) & 0xF) == CS1_TYPE_POLL) + || ((((UWORD8) NDB_PTR->a_pu_gprs[i][0]) & 0xF) == CS_PAB8_TYPE) + || ((((UWORD8) NDB_PTR->a_pu_gprs[i][0]) & 0xF) == CS_PAB11_TYPE)) + && (i < 4)) { poll = TRUE; @@ -1645,17 +1644,13 @@ #endif // a_ul_buffer_gprs updating - if(poll_resp_ts < 8) macs.ul_buffer_index[poll_resp_ts] = i + 8; #if ((TRACE_TYPE == 1) || (TRACE_TYPE == 4)) if (trace_info.current_config->l1_dyn_trace & 1<l1_dyn_trace & 1<l1_dyn_trace & 1<l1_dyn_trace & 1<a_du_gprs[i][0]) & 0xc0); - if (payload == DATA_BLOCK) - { - //This is a CS1 DATA block. So fillup 10 for the payload field of ul_status trace_info.pdtch_trace.ul_status[ts] |= 2; - } - else - { - //This is a CS1 CONTROL block. So fillup 01 for the payload field of ul_status - trace_info.pdtch_trace.ul_status[ts] |= 1; - } - } - } + } #endif /* A data block is assigned to timeslot ts */