aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/chan_alloc.c
AgeCommit message (Collapse)AuthorFilesLines
2009-11-19[lchan] RSL and RR need the multirate config, place it in the lchanHolger Hans Peter Freyther1-0/+3
Both GSM 04.08 RR and GSM 08.58 RSL need the multirate config in the channel modify. Place the config in the lchan, change the gsm48 methods to not take the argument, change the RSL implementation to make use of it with the right IE. The other code should use the t(l)v_put routines as well but were left untouched for now.
2009-11-19[lchan] Fix the SAPI reset in the chan allocation...Holger Hans Peter Freyther1-1/+1
Reset the whole array instead of just the first element.
2009-10-29[lchan] Keep track which SAPIs has been established with the BTSHolger Hans Peter Freyther1-0/+3
Keep track of which SAPIs have been established either by the BTS (from the MS) or by us. This can be used by the on-waves BSC code to figure out if a new request should be made.
2009-10-27misc: Use NULL instead of integer value for a NULL pointerHolger Hans Peter Freyther1-2/+2
2009-08-10when channel allocator operates in reverse order, prefer SDCCH/8 over SDCCH/4Harald Welte1-2/+11
2009-08-10introduce bts->chan_alloc_reverse flagHarald Welte1-17/+38
The channel allocator can be set in ascending or descending order. Ascnending means we first try to allocate channels on TRX0, then TRX1, etc. Descending means we first try to allocate cahnnels on TRXn, then n-1 down to 0.
2009-08-10use list iteration macros to iterate over list of TRXHarald Welte1-6/+7
2009-08-10move chcomb4pchan to public abis_nm_chcomb4pchan() functionHarald Welte1-10/+1
2009-08-09chane TRX0/TS0 channel combination to not include a CBCHHarald Welte1-5/+5
We don't support CBCH anyway, and using CBCH will reduce the number of uesable SDCCH/4 channels to 3 on TS0
2009-08-09move search for existing lchan for subscriber to new functionHarald Welte1-0/+15
There's now a new function called 'lchan_for_subscr()' which can be used to determine if there is any existing lchan for this subscriber.
2009-08-08start using the RLL RELEASE proceduresHarald Welte1-1/+1
So far, we immediately disable the RF channel without following a proper RLL RELEASE procedure. This patch changes this. If we locally terminate the connection, the channel allocator now triggers a RLL RELEASE REQuest, which is responsed by the MS with a RLL RELEASE CONFirm, based on which we send the RF CHANnel RELease to the BTS. If the MS terminates the connection, we receive a RLL RELEASE INDication, based on which we trigger RF CHANnel RELease to the BTS.
2009-07-29make channel allocator policy multi-TRX awareHarald Welte1-14/+28
For now, we assume that TRX1 (and higher) all have a TCH/F configuration on all of their timeslots
2009-06-26Merge branch 'master' into tallocHarald Welte1-1/+1
2009-06-26fix typosHarald Welte1-1/+1
2009-06-21switch to dynamically allocated BTS and TRX data structuresHarald Welte1-6/+7
This makes it much easier to do run-time configuration using the vty interface.
2009-06-10reworked MNCC codebaseHarald Welte1-2/+2
This is Harald's reworked MNCC base, slowly heading towards integration into master. The key changes are: * provide much more structure to the data in gsm_mncc * encode_* and decode_* functions now take a structure rather than tons of individual arguments (whose order nobody can remember) * make sure we don't have copies of the same code everywhere by introducing mncc_set_cause() and mncc_release_ind() * save horizontal screen space if possible * make sure we break lines > 80 characters
2009-06-10move openbsc into its own subdirectoryHarald Welte1-0/+256