aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2009-12-15mroe comments on meas_rep data structuresHarald Welte1-0/+5
2009-12-15introduce cache of 6 last recently received measurement reports for each lchanHarald Welte5-21/+47
2009-12-15add BSIC parameter to gsm_bts_neighbor()Harald Welte2-3/+6
When looking for the gsm_bts of a neighbor cell, use BSIC and ARFCN tuple rather than just ARFCN for better identification purpose.
2009-12-14Implement gsm_bts_neighbor() function to determine neighbor BTSHarald Welte2-0/+21
We will need this for the actual handover algorithm implementation, as we will only know the current BTS and the BCCH ARFCN of the strongest cell in the measurement reports. Using this new function, we can resolve the matching gsm_bts.
2009-12-1404.08 MEAS REP: Convert relative cell number to ARFCNHarald Welte2-7/+12
Since we are keeping a bitvec of the neighbor cells, we can now use bitvec_get_nth_set_bit() to determine the ARFCN for each reported cell in the 04.08 MEASUREMENT REPORT.
2009-12-14bitvec: Introduce bitvec_get_nth_set_bit() functionHarald Welte2-0/+19
This is particularly important for determining the ARFCN for cells reported in 04.08 MEAS REP.
2009-12-14system_information: use bitvec to generate frequency listsHarald Welte3-66/+63
We use a 1024-bit-sized bitvec to generate the BA and neighbor frequency list. This bitvec is still generated from the list of all BTS's inside the BSC, but this patch is the first step to generalize this, i.e. generate arbitrary neighbor lists.
2009-12-14bitvec updates and code simplificationHarald Welte2-9/+43
* introduce a new bitvec_get_bit_pos() function to determine the bit value at a given position inside a bit vector * make sure bitvec_{get,set}_bit_pos() share code as possible
2009-12-14[system_information] fix bit map 0 frequency list generationHarald Welte1-2/+9
Our frequency lists for GSM900 were completely wrong, as the bit map 0 encoding was not used correctly. This patch should fix it.
2009-12-14fix compiler warnings in gsm_04_08.cHarald Welte1-2/+2
2009-12-14make sure BSIC is patched into NM tables before initializing BS11Harald Welte1-0/+1
2009-12-14[PATCH] fix MM INFO parsing in vty_interfaceHarald Welte1-0/+1
2009-12-14Add VTY setting for whether or not to sending MM INFOHarald Welte3-2/+17
2009-12-13fix segfault in token_auth on SS_SUBSCR != ATTACHHarald Welte1-2/+2
2009-12-13introduce new signal every time we get a mobile identityHarald Welte2-0/+7
2009-12-13[RRLP] make RRLP mode configurable from config fileHarald Welte4-7/+89
We now support different RRLP modes (including "none" to disable RRLP), you can configure it via "rrlp mode" in the "network" section of openbsc.cfg.
2009-12-12Gracefully reject non-speech callsHarald Welte3-25/+70
As we currently really only deal with voice/speech calls and don't support FAX and DATA (CSD) calls, we now gracefully reject them.
2009-12-12make speech calls with NECI=1 workHarald Welte1-1/+3
Fix minor bug with speech calls in case of NECI=1
2009-12-12[04.08] use lchan_auto_release to quickly close channelHarald Welte1-7/+11
In some cases, we can try to close the lchan a bit faster than our lchan release timeout: * After we've sent LOC UPD ACCEPT and MM INFO * After a phone has confirmed the RELEASE of a call
2009-12-12If we're trying to allocate TCH/H but don't have it, fallback to TCH/FHarald Welte1-0/+3
The rationale is as following: If we have NECI=1, then the phone will request a channel with CHREQ "0100xxxx Originating speech call from dual-rate mobile station when TCH/H is sufficient and supported by the MS for speech calls", then we will try to allocate a TCH/H [as it is sufficient]. However, if there are no free TCH/H slots on the BTS, we abandon and can't handle the MO call at all :(
2009-12-12If we establish a TCH/H voice call, the reason is CALL, not OTHERHarald Welte1-1/+1
2009-12-12[RSL] print human-readable channel type during channel allocation failureHarald Welte1-2/+2
2009-12-12[VTY] add more cell reselection parameters to VTYHarald Welte3-6/+37
allow setting of 'cell reselection hysteresis' and 'rxlev access min' from VTY for experiments with cell reselection.
2009-12-12print some more RF related information about BTS in VTYHarald Welte1-0/+6
2009-12-12utility functions to convert RXLEV into dBm and vice versaHarald Welte2-0/+26
2009-12-12fix some integer underflows in MS power calculationHarald Welte1-3/+13
2009-12-12Merge remote branch 'origin/master'Harald Welte1-0/+8
2009-12-12add warning about accept-all network on non-barred cellsHarald Welte1-0/+8
2009-12-09fix compile warning in db.cHarald Welte1-1/+1
2009-12-09mark lchan2chan_nr() using a 'const' parameterHarald Welte2-2/+2
which fixes some compile warnings at some callers.
2009-12-06remove execute permission from abis_nm.cHarald Welte1-0/+0
2009-12-06location updating reject cause now specified on VTY rather than command line ↵Harald Welte5-13/+18
argument
2009-12-06Fix make distcheck by adding the new headers...Holger Hans Peter Freyther1-1/+2
2009-12-06[bsc_hack] Ignore the sigpipe...Holger Hans Peter Freyther1-0/+1
We might read or write on the OML link when the BTS is reset and will get SIGPIPE interrupt and be gone... Just ignore the SIGPIPE we will get the "exception" on the next run of bsc_select and kill the (old) OML link.
2009-12-05[sms] trivial: Removed unneeded double check in unbcdifySteffen Neubauer1-2/+1
2009-12-05[system_information] fix BCCH list generation for GSM900Harald Welte1-0/+2
We have to make sure to skip the global list header
2009-12-04[BS11] don't put invalid channel combination into the config fileHarald Welte2-2/+2
2009-12-02ip.access: add nanoBTS channel combination constraintsHarald Welte1-1/+79
2009-12-02ip.access speech mode for TCH/H channelsHarald Welte1-9/+30
2009-12-02move RTP socket information from timeslot to lchanHarald Welte4-54/+47
With ip.access, in case of TCH/H, we have one RTP stream for each half-slot (lchan), not just one per on-air timeslot. This is quite different from a classic BTS where the TRAU frames of the two TCH/H channels would be part of the same 16k sub-slot in a E1 timeslot.
2009-12-01Replace template-based SYSTEM INFORMATION with real implementationHarald Welte13-294/+1220
Before this commit, OpenBSC used templates for the SYSTEM INFO 1, 2, 3, 4, 5 and 6 messages. Those templates were patched in various places to reflect the network config like ARFCN. Now, we actually generate those SI messages ourselves, using values from the configuration file, and even calculating neighbor cell lists. All bts'es that you have configured in OpenBSC will end up in the neighbor cell list - which should be more than sufficient for the current small-single-site networks.
2009-12-01make use of new S_GLOBAL_SHUTDOWN signal to properly close pcap_fdHarald Welte1-0/+17
This avoids broken pcap files with partial packets due to non-flushed buffers.
2009-12-01Introduce new S_GLOBAL_SHUTDOWN signalHarald Welte2-0/+7
This is used to notify various parts of OpenBSC that we're shutting down.
2009-12-01Assign default values for T3101 and T3113Harald Welte2-0/+6
Without those default values, old config files will no longer work after commit 23975e718fd456ff8be7effbb915903f1bc173be
2009-11-30[handover] export measurement reports via signalHarald Welte3-1/+7
This patch introduces the S_LCHAN_MEAS_REP signal which is used to export measurement reports as input to the yet-to-be-written handover algorithm.
2009-11-29[handover] Implement handover control logicHarald Welte3-1/+254
Code to implement handover control logic. A yet-to-be-implemented handover algorithm will call bsc_handover_start(old_lchan, new_bts) to start the handover process.
2009-11-29[handover] Introduce new handover related LCHAN signalsHarald Welte3-5/+63
This introduces the signals S_LCHAN_ACTIVATE_{ACK,NACK} and S_LCAN_HANDOVER_{FAIL,COMPL,DETECT} as well as code that actually issues those signals. The signals are relevant for a yet-to-be-written handover control logic.
2009-11-29[handover] Implement 04.08 HANDOVER COMMANDHarald Welte3-6/+73
This is needed by a yet-to-be-implemented handover algorithm, after it has allocated a new lchan for the MS. Also missing: handling the actual HANDOVER COMPLETE / FAIL messages in response.
2009-11-29print debug statement in case of HANDOVER COMPLETE or HANDOVER FAILEDHarald Welte1-0/+8
2009-11-29New complete measurement result/report handlingHarald Welte4-85/+165
This patch extends struct gsm_meas_rep into a complete structure containing all information from both uplink and downlink measurement results/reports. This is a first step to provide this complete measurement data as a C structure into a to-be-implemented handover decision algorithm.