aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc
AgeCommit message (Collapse)AuthorFilesLines
2018-02-08enable and disable ACC ramping when link comes up / goes downstsp/acc_rampStefan Sperling1-1/+6
Change-Id: I07930f25e8ff25ee0e3b0d0a561693140ba3dc56
2018-02-08move ramp_init() call to bootstrap_bts()Stefan Sperling1-0/+2
Change-Id: Id3c72a69c41db61ef051a7e122739e8e93eb710b
2018-02-08add a VTY command for acc ramp step sizeStefan Sperling1-2/+26
Change-Id: I6759f5b2a0b68e4d797e6309c2a046a1f2538d50
2018-02-08show complete ACC config in VTYStefan Sperling1-1/+11
Change-Id: I4115c7b98373d199cf2a46f7d840f2e77de51e80
2018-02-08add VTY command to configure ramping step intervalStefan Sperling2-2/+40
Change-Id: I6a296afb9be58a1528f19993251a975caee0855b
2018-02-08don't read barred bitmasks directly where it isn't neededStefan Sperling1-2/+2
Change-Id: Ida05eef654a8762cdc8fee2eb0b9df7abcc6a492
2018-02-08remove default step interval; it doesn't make sense to have thisStefan Sperling1-12/+9
Change-Id: I8e432649cbdd4f164e08e2897c5191f8c421fdf4
2018-02-08improve commentStefan Sperling1-1/+1
Change-Id: I3e74dfb445bf6dbcccb3aba0aba6f0a6b347f04b
2018-02-08improve commentsStefan Sperling1-2/+2
Change-Id: I215e14b44d2e6c75dc245bbb9bef72dfe22fa2ac
2018-02-08notify BTS also in short-cut ramping step caseStefan Sperling1-0/+1
Change-Id: I5887218d49c4d09070ce820e16ae3c49c4b7b968
2018-02-08improve a debug log messageStefan Sperling1-1/+1
Change-Id: I17589a342bae644fb1d3a271e168e99823295ada
2018-02-08use default step interval if load cannot be determinedStefan Sperling1-1/+1
Change-Id: I298b40426a46062cbd77f0f5dc195a3b9f4d82bb
2018-02-08document a helper functionStefan Sperling1-0/+4
Change-Id: I3d9c926a616ba3398c3f0982e10697e7a02d3108
2018-02-08rename another helper functionStefan Sperling1-4/+4
Change-Id: If2a102f37faf670207555952b57ebe262d7c0ae5
2018-02-08rename a helper functionStefan Sperling1-2/+2
Change-Id: Ifcef5c9b0ff633935adcfac9c584c987add482db
2018-02-06rename vty commandStefan Sperling1-2/+2
Change-Id: I81ea6183bbef94de5031fc84706154fe04f352da
2018-02-06do not conflict with the 'rach access-control-class' vty commandStefan Sperling3-35/+69
Change-Id: If46a01e5a43de38cbaeeeb2d5b91c4879cfc0e15
2018-02-06show 'acc-ramping' in bts configStefan Sperling1-0/+2
Change-Id: Ie3ad2399b11ad6df03d3c7fdd53e7699fb134c3e
2018-02-06add a VTY option to enable/disable acc ramdingStefan Sperling2-2/+30
Change-Id: I1cb10ccf56eed5daf8bd224011491061e15dad8f
2018-02-06make it possible to enable/disable rumping at startupStefan Sperling1-3/+13
Change-Id: If72dd56d376d4ce0a362896e44b350d3b251b507
2018-02-06move acc_ramp.c to libbscStefan Sperling2-0/+178
Change-Id: I179ec309f772d1cdb9f34b3afbca4d705eac9652
2018-02-06initial acc ramping implementation (untested)Stefan Sperling1-2/+4
Change-Id: I2b1868765346c7aba966cecd7b8db9aae9b047bb
2018-02-05Add stat items for the BTS's channel load average and T3122.Stefan Sperling1-0/+3
In addition to logging the current values of a BTS's channel load average and T3122 override, maintain stat items for these values. This allows for plotting these values over time, for instance. These values show up in the VTY under 'show stats' like this: base transceiver station: Channel load average.: 25 % T3122 IMMEDIATE ASSIGNMENT REJECT wait indicator.: 32 s Change-Id: Icace0176e8b1d23d7c7b4816f7c67c65312844fa Suggested-by: laforge
2018-02-05vty: print RTP IP of lchan if actually bound; print remote (mgw) IPHarald Welte1-5/+15
Change-Id: I87840aa0f5b9c04d7736bf5f649142219853711a
2018-02-05Make "waiting indicator" of IMMEDIATE ASSIGN REJECT dynamic.Stefan Sperling5-22/+122
The IMMEDIATE ASSIGN REJECT message contains a wait indicator which tells an MS requesting a channel to wait for a specified amount of time before trying to request a channel again, i.e. the wait indicator controls the T3122 timeout value in the MS. Previously, the wait indicator was fixed to 10 seconds. This is not sufficient if there are a lot of MS requesting channels because the MS will retry too soon. Instead of using a fixed value, maintain a dynamic wait indicator value based on average channel load. The load (used vs. available channels on a BTS) is sampled once per second, and once 8 samples have been collected we update a BTS-specific T3122 wait indicator based on the measured load. While the wait indicator could go up to 255 seconds, this initial implementation keeps it in the range from 10 to 128 seconds. Further experimentation and testing will show whether higher wait indicator values are desirable, if the sampling rate needs to change, or if the function mapping the load measurement to a wait indicator value should change (currently we map the load average linearly into the range [10, 128] inclusive). Change-Id: I57e38f6d6ba3b23cc6e1f9520b90261dbb1f1cec Related: OS#2592
2018-01-28remove obsolete gsm_subscriber_connection.bts memberHarald Welte2-3/+0
This member was merely a cache for conn->lchan->ts->trx->bts, so let's avoid having to keep copies of the same data (which needs to be kept up to date). Change-Id: Id3bff8b18425ef5d45eb460ac9eb620023013ba0
2018-01-25Remove an unused variable.Stefan Sperling1-7/+0
Local variable is_lu in rsl_rx_chan_rqd() has been unused since commit 6082a377f57901302816a2e57e75a3f262b7b7e6. Change-Id: I67594afcfa4104e91352d50f40ae9f2bc20f4cd1
2018-01-22HO: Add a penalty timer list to the subscriber connection entityAndreas Eversberg1-0/+10
This penalty timer is used to temporarily block cells where handover or assignment failed or where handover is not allowed. This is usefull to prevent repeated handover attempts to broken cells or cells that have limited allowed distance. Change-Id: I95cb7e3211b2470b773965e7aa94d8eb6c8c1a3a
2018-01-21Fix: meas_rep.c will only use valid DL measurement reportsAndreas Eversberg1-4/+19
When averaging measurements, only the valid reports are used. If there is no valid report in the averaging window at all, an error is returned. Change-Id: I33056225ead788340755e98113d72e1cbf3ebce6
2018-01-19HO: add queue to cache DTAP messages during handover/assignmentAndreas Eversberg1-0/+73
Add ho_dtap_cache to gsm_subscriber_connection, a stock msgb queue to be used with msgb_enqueue() and msgb_dequeue(). Keep a counter of queue length, to enforce a sane maximum counter for cached messages. So far a hardcoded maximum of 23 messages will be cached. Have balanced ho_dtap_cache_add() and ho_dtap_cache_flush() functions. The original patch was by jolly, but I have basically completely replaced it with the simpler msgb queue pattern. Change-Id: I6e4d93628befb3d97e5cee0343cd9f8ba0b8620c
2018-01-19HO: make bts_by_arfcn_bsic() publicNeels Hofmeyr1-2/+2
Change-Id: Ie746f76433f6b46a71a91b7714cc034c4355d993
2018-01-19HO: rename gsm_bts_neighbor() to bts_by_arfcn_bsic()Neels Hofmeyr1-14/+13
The name sounds like it is looking up neighbors, instead it simply traverses the global list of BTSes. Rename to reflect what it does. Move FIXME comment to its logical place: at the invocation of bts_by_arfcn_bsic(). Change-Id: I063870d09f782a4f18e85d87c7cd17fe660cb3fd
2018-01-19HO: Count number of free timeslot on a given BTSAndreas Eversberg1-0/+64
This is needed for handover algorithm to balance free slots and to prevent congestion of one cell, while other cells still have free capacities. Change-Id: Ic8bee8a515ee8aa9a99af71756fe60b8dd8f868b
2018-01-19HO: Change debug category at handover decision: DHO -> DHODECAndreas Eversberg1-8/+8
Change-Id: I7322b790f647b681bfe3a9c95b04516fbc7cbf88
2018-01-19HO: add handover algo 2 parameters; skip HO 1 if HO 2 is configuredNeels Hofmeyr1-0/+4
Change-Id: I8811ee8a75be09048042b511ee4bd9bc1de63976
2018-01-19HO: enable handover by initializing at startup; rename init functionNeels Hofmeyr1-1/+1
Change-Id: I224884c84895ebf6c8cf498c16616214cb2b5779
2018-01-19Correctly set T3105 for ipaccess BTS typeAndreas Eversberg1-2/+2
The given value is 10 * ms, so 13 is used instead of 128. If T3105 is set at config to something greater 0, it is used instead of the default value. Adjusst nanobts_omlattr_test.c accordingly. Change-Id: I3d9687619ba4de35f5d2eff3026d903534b2bbd4
2018-01-19Allow assignment to TCH channel with signalling only modeAndreas Eversberg1-3/+2
This makes sense, if silent call is used. Assignment allows to change from SDCCH (or whatever was available) to given TCH rate. Change-Id: I2efe9d7ab429e902581ebb9e0e006f2aec6d8972
2018-01-19Do not perform assignment, if the new channel equals the current oneAndreas Eversberg1-1/+12
This can happen, if a TCH/H was requested, but because it is not available, a TCH/F is allocated. If the old channel was TCH/F already, it makes no sense to assign it. Change-Id: I284125483fc14b8f82e32ee61aa3866746238eae
2018-01-19HO: If handover logic is used to do assignment, signal assignment resultAndreas Eversberg1-0/+29
Change-Id: I465caef03626e67d9b3a21bdf730589b9852c211
2018-01-19HO: Always update rqd_ta after receiving measurement reportAndreas Eversberg1-0/+2
The up-to-date rqd_ta is required for assignment command. If the phone moves, the timing advance might change. The rqd_ta will be updated by each measurement report. Change-Id: If1a592e590cfed55ff3dca5be89e2946e8017a22
2018-01-19HO: Changed availablilty of ts_is_usable() from static to externAndreas Eversberg1-1/+1
Change-Id: I3471e38327c4b98490faed9b604fb76438ba9954
2018-01-19fixup: neigh_meas_avg: fix condition to reduce window sizeNeels Hofmeyr1-1/+1
Change-Id: Ia2269be448436d676289c84b9b05da7f51ee4a85
2018-01-19fixup: neigh_meas_avg: detect invalid window size as <=0, log if invalidNeels Hofmeyr1-1/+3
Change-Id: I8c5d0642aeb4fbee73a035b9f73cf3a09b1bcf90
2018-01-19HO: Count neighbor measurements and reduce window of neigh_meas_avgAndreas Eversberg1-0/+8
Always start with a counter of 0 for a new measurement report. If the neigh_meas_avg is caluclated over the given window, the window is reduced, if there are less measurement reports received so far. Change-Id: I1c74f27f9663a3083610c985a080fca331c19bd3
2018-01-19HO: Count the actual meas.rep. get_meas_rep_avg fails if not reachedAndreas Eversberg3-2/+17
get_meas_rep_avg will return -EINVAL, if the required number of measurements are not reached. There will be no handover possible until the given number of measurements are available. Change-Id: Ibc4410b4e162cdb6c070128d2c63946bb79d6d65
2018-01-19Fix of checking TCH rate at chan_compat_with_modeAndreas Eversberg1-1/+5
In case of current channel equals TCH/F and we request half rate, we must return 0, so the calling function will trigger assignment. Change-Id: Ibb4cb9aef1a1146f984d7c969bfba53c647cae07
2018-01-19HO: Assign SDCCH on channel requestAndreas Eversberg1-2/+20
This is needed, so channel can be negotiated before the actual channel type is assigned. In case there is no SDCCH available, try to assign what ever the MS requested. If this is not possible try to assign TCH/F. If this is still not possible, reject channel request. Change-Id: I10fc9f60c58c6b7ed424a86ce23bf6b9802c9eb1
2018-01-19Fix: If paging for half rate was requested, use hr, if supported by MSAndreas Eversberg1-1/+1
Change-Id: I6d1c9701808ee542771fee145250927019a2f5f6
2018-01-19cosmetic: explicitly init ho_ref start valueNeels Hofmeyr1-1/+1
The static ho_ref seems to be implicitly initialized to zero, but let's make it explicit for code readability. Change-Id: I00493bcb7ef3e38fb8e0077c60c5bac7199f1073