aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-10-30tbf: Update the timing advance for the new tlli based on the old oneHolger Hans Peter Freyther4-0/+11
2013-10-30tbf: Learn and propagate the TLLI changes due a new P-TMSIHolger Hans Peter Freyther7-5/+150
During a routing area update a new P-TMSI was assigned. During the PACKET CONTROL ACK on the DL we notice the change of TLLI but didn't propagate this. This means that a Routing Area Update Complete was only sent after a new RACH request. Addresses: <0007> gprs_rlcmac_meas.cpp:103 UL RSSI of TLLI=0x88661bc6: -67 dBm <0002> bts.cpp:945 Got ACK, but UL TBF is gone TLLI=0xe512eba3 <0007> gprs_rlcmac_meas.cpp:158 DL packet loss of IMSI=274080000004765 / TLLI=0xe512eba3: 0% <0002> tbf.cpp:668 TBF TFI=0 TLLI=0x88661bc6 T3169 timeout during transsmission <0002> tbf.cpp:690 - Assignment was on PACCH <0002> tbf.cpp:694 - No uplink data received yet
2013-10-30tbf: Have one imsi field and assign it through a functionHolger Hans Peter Freyther4-15/+23
Have one IMSI field per TBF and assign through a function call. The IMSI should be used to look-up the TBF on the SGSN->PCU direction.
2013-10-30tbf: Make tfi private and update the codeHolger Hans Peter Freyther6-64/+71
All logging code that used tbf->tfi is now using tbf_name to print the the TBF. External code is now using tfi() which is inlined and should result in the same code being generated as before (+debug code that can be stripped).
2013-10-30tbf: Make the tlli "private" and update the updating codeHolger Hans Peter Freyther6-46/+80
Now all updates to the tlli/tlli_valid are in one place. If we implement the policy to update the matching/linked TBF we can now to do it in a single place. Add a todo item for that as I am waiting for feedback from the mailinglist.
2013-10-30tbf: Create tbf_name and use it in log statementsHolger Hans Peter Freyther4-79/+84
This is like gsm_lchan_name and should be used in log statements. This way we can easily change the information that is printed and we know how to search things. The other part is that direct use of tfi/tlli is removed which will allow us to make them private and at the same time start to resolve the "tlli" updated in many places. Not old log statements are changed yet. This will done whenever a bad log statement is seen on the console...
2013-10-30tbf: TODO:Mark TLLI changes as todo item in the codeHolger Hans Peter Freyther1-0/+2
The TLLI can change when a new P-TMSI is assigned to the phone, e.g. during a (periodic) routing area update. When the TLLI changes we need to update all TBFs and maybe even register the timing advance for the new TLLI..
2013-10-30bts: Simplify rcv_resource_request, remove logically dead codeHolger Hans Peter Freyther1-57/+57
tbf = find if (tbf) { tbf_free(tbf); tbf = NULL; } if (!tbf) { code... } Remove the if (!tbf) and indention as the tbf is always to be NULL.
2013-10-30bts: Kill dead stores of the tlli/tfi, fix the log message againHolger Hans Peter Freyther1-9/+5
The code meant to print the tfi and not the tlli. Update it.
2013-10-30tbf: Remove the trx_no field from the tbf, go through the trx objectHolger Hans Peter Freyther5-18/+16
2013-10-30tbf: Go through the trx to get the ARFCNHolger Hans Peter Freyther4-6/+4
2013-10-30bts: Further logging improvements for TFI/TLLI outputHolger Hans Peter Freyther2-3/+4
2013-10-30bts: Pass the Packet_Control_Acknowledgement_t into the recv methodHolger Hans Peter Freyther2-4/+4
2013-10-30bts: Log the TLLI inside the report we getHolger Hans Peter Freyther1-1/+1
2013-10-30tbf: Log the TFI and TLLI so we can try to figure out more from logsHolger Hans Peter Freyther2-11/+13
<0002> tbf.cpp:444 Poll timeout for DL TBF=0 <0002> tbf.cpp:513 - Timeout for polling PACKET DOWNLINK ACK. <0002> tbf.cpp:688 - Assignment was on PACCH <0002> tbf.cpp:694 - Downlink ACK was received <0008> gprs_bssgp_pcu.cpp:154 LLC [SGSN -> PCU] = TLLI: 0xd6942c78 IMSI: 274080000004765 len: 506 <0002> bts.cpp:974 PACKET DOWNLINK ACK with unknown FN=2213128 TFI=0 (TRX 0 TS 6)
2013-10-30misc: Change the logging for the tbf and what to logHolger Hans Peter Freyther4-51/+51
TLLIs got printed as TBF. Fix that but also rename things to TFI. The TFI is not required to be unique per BTS but it is the indicator we use right now.
2013-10-30bts: Use Packet_Downlink_Ack_Nack_t as parameterHolger Hans Peter Freyther2-8/+8
2013-10-30bts: Simplify the code and use Packet_Resource_Request_t*Holger Hans Peter Freyther2-10/+10
2013-10-30bts: Work with the Packet_Measurement_Report_tHolger Hans Peter Freyther2-5/+5
2013-10-30bts: Move the MT_PACKET_MEASUREMENT_REPORT handling to a new methodHolger Hans Peter Freyther2-14/+19
2013-10-30bts: Move handling of MT_PACKET_RESOURCE_REQUEST to a methodHolger Hans Peter Freyther2-80/+89
Move the code to a new method
2013-10-30bts: Move handling of MT_PACKET_DOWNLINK_ACK_NACK to separate functionHolger Hans Peter Freyther2-43/+52
Kill the tlli assignment as it is never used.
2013-10-30pdch: Move handling of control_ack to a separate methodHolger Hans Peter Freyther2-86/+95
Kill the unused tfi parameter
2013-10-30bts: Count the rach frames we receiveHolger Hans Peter Freyther2-0/+9
2013-10-30misc: Fix typo.. resource in english only has one 's'Holger Hans Peter Freyther3-20/+20
2013-10-30bts: Print the kind of message type not known.Holger Hans Peter Freyther1-1/+3
2013-10-30llc: Count timedout and silently dropped framesHolger Hans Peter Freyther3-1/+12
A DL tbf can be discarded and then the already queued LLCs will be silently dropped. Count this event.
2013-10-30sba: Move freeing a sba into a central placeHolger Hans Peter Freyther3-16/+13
2013-10-30sba: Count SBA allocation, frees and timeoutsHolger Hans Peter Freyther3-21/+30
Add a warning about the receive message poking in the internal of the sba. This will be cleaned up in a follow up commit
2013-10-30bts: Provide the first set of countersHolger Hans Peter Freyther3-2/+39
2013-10-30bts: Start creating statistics inside the BTS codeHolger Hans Peter Freyther3-0/+75
2013-10-30tbf: Move gprs_rlcmac_send_data_block_acknowledged into tbfHolger Hans Peter Freyther6-375/+333
We can now remove the gprs_rlcmac_data as the code has been moved into the tbf, pdch and bts.
2013-10-30tbf: Move gprs_rlcmac_send_packet_uplink_assignment into the tbfHolger Hans Peter Freyther6-149/+144
2013-10-30tbf: Move gprs_rlcmac_send_packet_uplink_assignment to the tbfHolger Hans Peter Freyther5-79/+75
Again the function was called send but didn't do any sending
2013-10-30tbf: Fix typo in thecommentHolger Hans Peter Freyther1-1/+1
2013-10-30tbf: Move gprs_rlcmac_send_uplink_ack into the tbfHolger Hans Peter Freyther5-61/+55
The method was called send but didn't send anything. Move it to the tbf
2013-10-30bts: Move gprs_rlcmac_rcv_rach into the BTS classHolger Hans Peter Freyther5-86/+83
2013-10-30tbf: Move gprs_rlcmac_send_packet_downlink_assignment into the tbfHolger Hans Peter Freyther5-96/+97
This method was called _send_packet_ but actually didn't do any sending at all. It just formated the right assignment. I replaced tbf-> with nothing.
2013-10-30bts: Move gprs_rlcmac_trigger_downlink_assignment into BTSHolger Hans Peter Freyther5-46/+42
2013-10-30debug_dl_ass_idle: Remove the feature as it is obviously brokenHolger Hans Peter Freyther2-21/+0
strncpy takes three arguments but only two are given. This feature would also only work if there is one tbf at a time.
2013-10-30tbf: Move gprs_rlcmac_poll_timeout into the tbfHolger Hans Peter Freyther7-134/+133
Move the gprs_rlcmac_poll_timeout method into the tbf class and gprs_rlcmac_downlink_assignment into the BTS.
2013-10-30bts: Move rcv_imm_ass_cnf into the bts codeHolger Hans Peter Freyther5-44/+42
2013-10-30tbf: kill the indirection and invoke the right methodHolger Hans Peter Freyther1-9/+4
2013-10-30tbf/bts: Move the tfi_find_free into the btsHolger Hans Peter Freyther7-64/+63
2013-10-30tbf/pdch/bts: Move the tbf look-up by tfi into the BTSHolger Hans Peter Freyther4-29/+26
2013-10-30pdch/tbf: Add another todo item for badly placed code...Holger Hans Peter Freyther1-0/+1
2013-10-30sba/pdch: Use thepdch to look up a sba for a frame numberHolger Hans Peter Freyther3-2/+9
2013-10-30pdch: Remove the trx_no/ts_no parameter and use/caclulate it on demandHolger Hans Peter Freyther2-25/+24
Simplify the depedencies and use the inline functions when we need to figure out the numbers.
2013-10-30pdch: Remove the bts argument from rcv_control_blockHolger Hans Peter Freyther2-24/+22
2013-10-30pdch: Remove the the bts parameter from rcv_data_block_acknowledgedHolger Hans Peter Freyther2-8/+21