aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_init.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-06bsc_init: Allow DTXu and enable DTXd on RSL (experimental)Holger Hans Peter Freyther1-2/+8
Allow the MS to use uplink discontinous transmission by setting the right bit in the SystemInformation and set DTXd/DTXu on the RSL channel commands. This is configurable via dtx-used (0|1) on the network level and still considered as experimental.
2010-08-25bsc_init: Compare it with the right enum typeHolger Hans Peter Freyther1-1/+1
In both cases the int value was zero, so it actually worked
2010-07-30[BSC] Add support for configfile-hardcoded System Information messagesHarald Welte1-19/+27
2010-07-14abis_nm: Create a signal data structure for the NACK messageHolger Hans Peter Freyther1-4/+5
Provide the message type and the msgb of the NACK message.
2010-06-30bsc_api: Move the API init into the main function.Holger Hans Peter Freyther1-2/+0
The BSC API will not be used until the first iteration through the event loop so it is safe to call it after the bootstrap.
2010-06-21bsc_init: Avoid unaligned access to nanobts_attr_nsvc0Holger Hans Peter Freyther1-6/+16
nanobts_attr_nsvc0 + 10 is unlikely to be 32 bit aligned and will trigger an alignment error on ARM..
2010-06-20[BSC] Fix off-by-one error in computing mobile allocationlaforge1-1/+1
2010-06-20[BSC] Hopping: Add MA IE to ASS CMD, IMM ASS CMD and HO CMDHarald Welte1-6/+25
Also, make sure the bit ordering in the pre-computed MA is correct, as well as the cell channel description of the target cell being present in the HO CMD.
2010-06-20[BSC] Keep a SYSTEM INFORMATION cache for each BTSHarald Welte1-19/+36
This will later be useful for handover where we need to copy the cell channel allocation into a normal 04.08 message
2010-06-20[BSC] Generate MA for each timeslot that has hopping enabledHarald Welte1-0/+44
The MA is used in 04.08 channel assignment related messages
2010-06-15bsc_api: Create osmo_msc, and initialize the MSC API in the bsc_init.Holger Hans Peter Freyther1-0/+2
2010-05-26Add ARFCN range check for GSM 850 bandHarald Welte1-0/+8
This should make OpenBSC work with a nanoBTS in GSM 850 band.
2010-05-25Migrate VTY code to libosmovtyHarald Welte1-1/+1
2010-05-22bsc_init: Do not use magic numbers for GSM 12.21 states.Holger Hans Peter Freyther1-6/+6
2010-05-16VTY: decouple telnet_interface from 'struct gsmnet'Harald Welte1-3/+9
We want the VTY and telnet code to be independent from the BSC application(s). As a side note, we also like to eliminate static global variables for 'struct gsm_network' all over the code. As such, telnet_init() is now passed along a "private" pointer, which getst stored in telnet_connection.priv. This telnet_connection is then stored in vty->priv, which in turn gets dereferenced if anyone needs a reference to 'struct gsm_network' from the BSC vty code. Also: * vty_init() now calls cmd_init() * the ugliness that telnet_init() calls back into the application by means of bsc_vty_init() function has been removed. * telnet_init() now returns any errors, so the main program can exit e.g. if the port is already in use.
2010-05-13abis: Pass the abis_om_obj_inst in the nm_state_event..Holger Hans Peter Freyther1-1/+2
2010-05-11[gprs] NS/BSSGP: Make all timers configurable from VTYHarald Welte1-0/+4
2010-04-30[misc] Remove spaces, fix indention.Holger Hans Peter Freyther1-3/+3
2010-04-28bsc_init: Fix ccch description in SI messagesSylvain Munaut1-2/+28
The previous code just hardcoded RSL_BCCH_CCCH_CONF_1_C, but we need to inspect the timeslot config to know what to use. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-04-25[vty] Allow to set the RACH NM attributes on a per BTS basisHolger Hans Peter Freyther1-0/+16
Be able to tune the RACH settings of the BTS via the vty interface, by default they are initialized to -1 which means we will use the content of the static array (BTS default) and can be changed via the VTY interface. I have verified the setting on the nanoBTS with wireshark and I have tested writing the config file.
2010-04-18GPRS: Enable EGPRS coding schemes in Cell Attributes if 'gprs mode egprs'Harald Welte1-4/+9
2010-04-18GPRS: change 'gprs enabled <0-1>' to 'gprs mode (none|gprs|egprs)'Harald Welte1-4/+4
This causes some config file breakage but sounds like a much cleaner approach than to have two separate config variables for this.
2010-04-17[statistics] Keep track of OML/RSL failures of the BTS.Holger Hans Peter Freyther1-0/+5
2010-04-15[bsc_init] When the RSL/OML connection drops, free all lchansHolger Hans Peter Freyther1-2/+27
Free all allocated channels on the TRX that failed, go through lchan_free to signal higher layers and then force a reset of the channel. Make the TRX and TS unusable by setting the operational set to 0 (not really defined) which should be reset once the RSL is coming up again.
2010-03-24Move the version/copyright string to a separate fileHolger Hans Peter Freyther1-14/+0
It didn't really belong into the bsc_init.c... now we could even easily autogenerate this file.
2010-03-24Include bscconfig.h without ../ for the srcdir != build dir caseHolger Hans Peter Freyther1-1/+1
2010-03-24Move the copyright and version header to bsc_init.cHolger Hans Peter Freyther1-0/+14
The copyright/version will be used from within the VTY code which might be linked into binaries even when bsc_hack.c is not linked into it.
2010-03-22GPRS: make NSEI configurable from VTYHarald Welte1-0/+4
2010-03-22GPRS: remove outdated FIXME about patching CGIHarald Welte1-1/+0
2010-03-22GPRS: remove "#define GPRS" compile-time defineHarald Welte1-16/+14
It is now possible to enable/disable GPRS support purely based on the vty / config file.
2010-03-22GPRS: make NSVC parameters VTY-configurableHarald Welte1-2/+7
2010-03-22Create new gprs-conf branch with the non-SGSN part of the gprs branchHarald Welte1-1/+130
This new gprs-conf branch is intended to contain everything needed to configure GPRS in the nanoBTS, but without implementing the SGSN/GGSN functionality. The SGSN/GGSN development will happen in a branch based on this branch called "gprs-sgsn"
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-2/+2
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2010-02-09[bsc] Allow to set a EGSM900, RGSM900 ARFCNHolger Hans Peter Freyther1-2/+4
For R-GSM900 the channels 955-1023 are within the 900er band. The System Information Type generation can not cope with these channels yet.
2010-01-03[bsc_init] Send OPSTART if SITE_MANAGER reports off-lineSylvain Munaut1-2/+4
The exact sequence the states the BTS goes through is slightly different for one of the nanoBTS 139 I have and it needs this to start. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-31[misc] Utilize rf_locking by setting the nm_state.administrativeHolger Hans Peter Freyther1-2/+1
* On start the vty code will call the abis_nm method and this will set the administrative state to unlock/lock * During startup the BTS will report its state as well and would possible overwrite the set administrative. We are only going to update the administrative if it was 0 before. This appears to work on all of my tests. In case this will not be the case for others we will have to split the administrative into two sets one for the BTS and one for the BSC.
2009-12-24print ARFCN, LAC and CID when bootstrapping RSLHarald Welte1-3/+4
2009-12-23Fix segfault in case BTS has more TRX than we have configuredHarald Welte1-0/+2
2009-12-22bts: Allow config of RACH control parameters tx-integer & max retransSylvain Munaut1-5/+0
Tweaking theses can be useful especially tx-integer that influence both the spread of rach attemps and the delay between two attemps. Looking up GSM 04.08 3.3.1.1.2 & 10.5.2.29 can help determine good values. The default are choosed with a wide spacing between attemps (tx integer = 9 -> T=12 & S=217 (non-combined CCCH/SDCCH) or 115 (for combined CCCH/SDCCH)). This alleviates the problem of responding to several RACH attempts by a same MS, allocating several RF channels when only 1 is needed. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-22missing semicolon at end of statementHarald Welte1-1/+1
2009-12-21it's LOGL_ERROR, not LOG_ERRORHarald Welte1-1/+1
2009-12-21make sure bootstrap_bts() only contains static initializationHarald Welte1-3/+5
values that might change at runtime are moved to set_system_infos() which we might now also call at runtime to update the BTS with changes in the SI
2009-12-21remove duplicate flag for cell barringHarald Welte1-3/+1
it's sufficient if we keep the state of cell barring in one place
2009-12-21[gprs] SI 13 should only be generated on C0 (BCCH-carrying TRX)Harald Welte1-7/+8
2009-12-20remove hand full of 'extern ipacc_rtp_direct' definitionsHarald Welte1-1/+0
and instead declare it in gsm_data.h
2009-12-19system_information: DEBUGP() SI13/5/6 during startupHarald Welte1-12/+12
2009-12-17logging: introduce log levels at caller siteHarald Welte1-14/+14
This introduces a new LOGP() macro together with LOGL_* definition to support multiple log levels (severities) throughout the codebase. Please note that the actual logging system does not use them yet, in this patch we simply introduce the new macros at the caller site.
2009-12-17[handover] first functional handover implementationHarald Welte1-0/+1
With this commit, we can successfully hand over a channel from one cell to another cell. We implement asynchronous intra-BSC (but inter-BTS) handover. Changes: * introduce new DHO log category * extend rsl_chan_activate_lchan() with argument for HO reference * introduce actual minimal handover decision making in handover_decision.c * various fixes to bsc_handover_start() in handover_logic.c
2009-12-16[system_information] Print more debugging about what's going onHarald Welte1-5/+11
2009-12-14make sure BSIC is patched into NM tables before initializing BS11Harald Welte1-0/+1