aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc
AgeCommit message (Collapse)AuthorFilesLines
2012-09-17abis_nm: Log an error when the channel combination can not be set.Holger Hans Peter Freyther1-1/+1
2012-09-11osmo-bsc: Include rf statistics in the location-state TRAP as wellDaniel Willmann1-0/+81
The first fields are still the location up to the height. The next field is "operational" if any of the trx are operational, otherwise "inoperational" The second to last field contains "locked" if all of the trx are in the admin state, otherwise "unlocked". The last field represents the rf policy currently in effect. It is one of (on|off|grace|unknown). <tstamp>,<valid>,<lat>,<lon>,<height>,<oper>,<admin>,<policy>
2012-09-11bts_hsl_femtocell.c: Use PRIx64 to printf the uint64_tHolger Hans Peter Freyther1-2/+3
bts_hsl_femtocell.c: In function ‘hsl_sign_link_up’: bts_hsl_femtocell.c:206:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘uint64_t’ [-Wformat] bts_hsl_femtocell.c:210:2: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘uint64_t’ [-Wformat]
2012-09-11bsc_init: Initialize rc on all paths to address a compiler warningHolger Hans Peter Freyther1-0/+1
bsc_init.c:203:6: warning: ‘rc’ may be used uninitialized in this function [-Wmaybe-uninitialized] bsc_init.c:101:6: note: ‘rc’ was declared here
2012-09-11misc: Address compiler warning on unused variablesHolger Hans Peter Freyther4-14/+8
abis_nm.c: In function ‘abis_nm_get_attr’: abis_nm.c:1380:11: warning: unused variable ‘cur’ [-Wunused-variable] abis_nm.c: In function ‘ipac_parse_bcch_info’: abis_nm.c:2588:11: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] bts_nokia_site.c:1310:6: warning: variable ‘constructed’ set but not used [-Wunused-but-set-variable] bts_nokia_site.c: At top level: bts_nokia_site.c:1364:12: warning: ‘dump_elements’ defined but not used [-Wunused-function] gsm_04_08.c: In function ‘mm_rx_loc_upd_req’: gsm_04_08.c:521:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] osmo_msc.c: In function ‘msc_ciph_m_compl’: osmo_msc.c:122:7: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] bts_hsl_femtocell.c: In function ‘hslfemto_bootstrap_om’: bts_hsl_femtocell.c:101:11: warning: variable ‘cur’ set but not used [-Wunused-but-set-variable] bts_hsl_femtocell.c: In function ‘hsl_drop_oml’: bts_hsl_femtocell.c:232:21: warning: variable ‘line’ set but not used [-Wunused-but-set-variable] handover_logic.c: In function ‘ho_chan_activ_ack’: handover_logic.c:197:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
2012-09-07OM2000: don't silently send CON/IS/TF configuration requestHarald Welte1-0/+9
2012-09-07RBS2000: Don't sent IS configuration if we want to config TFHarald Welte1-1/+1
2012-09-07OM2000: make sure to route messages to IXU/DXU over BTS oml linkHarald Welte1-2/+3
Messages to CF and other core objects need to go to the BTS (IXU/DXU) OML link, not to the OML link of the primary TRX!
2012-09-07OM2000: don't signal operational state for a unknown MOHarald Welte1-0/+3
This case happens if the BTS signals operational state for a TRXC which is not configured as TRX in the openbsc.cfg
2012-08-29RSL: Add basic support for CSD transparent modeHarald Welte1-6/+45
We now have a lchan->csd_mode member that determines if RSL should activate the channel in CSD transparent services or not. The previous code always assumed CSD is non-transparent. (This requires libosmocore >= eed26116c96f03c6128fac3dead9054714af6cab)
2012-08-29reimplement chan_compat_with_mode() to take care of CSDHarald Welte1-9/+34
2012-08-29bsc_api: Invert logic of chan_compat_with_mode()Harald Welte1-4/+4
A function called this way should return 1 if it is compatible, so something like "if (!chan_compat_with_mode())" will check if it is not compatible.
2012-08-17VTY: improve VTY prompt and make sure exit/end works everywhereHarald Welte1-4/+4
Some nodes below 'config' didn't have ournode_exit / ournode_end, and thus were not able to properly perform this function. exit should always only go back one level, while end drops us back to ENABLE_NODE. The prompt now represents the nesting level, and there's one consistent space after the final prompt character (typically #).
2012-08-17VTY: dynamically create BTS "type" command syntaxHarald Welte1-1/+13
2012-08-17BSC VTY: use numeric ranges for bts/trx/timeslot numbersHarald Welte1-8/+8
This effectively limits the number of BTSs to 256, but I think that's acceptable for now. Unfortuantely there's no decent way to dynamically update the valid number range depending on how many BTSs are actually configured in the system :/
2012-08-17dynamically generate a proper VTY reference for phys_chan_configHarald Welte1-0/+34
this uses vty_cmd_string_from_valstr() from _very_ recent libosmocore, so you have to update the library, sorry.
2012-08-17... and more VTY help fixesHarald Welte1-4/+7
2012-08-17Some more VTY documentation / help fixesHarald Welte2-8/+13
2012-08-16complete the VTY help messages so we don't get "null" in the manualHarald Welte3-43/+180
2012-08-14abis_nm: Add function abis_nm_get_attr() to get attributes from BTSHarald Welte1-0/+19
2012-07-21libbsc: Add documentation to MM INFO, LAC, TSC, CIHolger Hans Peter Freyther1-4/+6
2012-07-16BSC API: Don't treat a RRLP message as NOTICE eventHarald Welte1-0/+6
While generally we should log troly unknown RR messages, we can simply pass along RRLP messages (which aren't unknown!) In real networks, the RRLP would probably not end up at the MSC, but well, sometimes we don't care what real/classic networks do.
2012-07-12move BTS-specific timezone override into sub-structureHarald Welte1-6/+8
Group all three structure members involved in bts-specific timezone handling into a sub-structure.
2012-07-12handover: Not finding a HO record on CHAN ACT NACK is not an errorHarald Welte1-1/+1
... it might well a completely non-ho-related establishment
2012-07-04BSC VTY: Allow encryption to be set to A5/3Harald Welte1-2/+3
We are currently not checking if the BTS actually suports that cipher, and we particularly don't have any hack for ip.access which apparently seems to re-use the RSL algorithm identifier for A5/2.
2012-07-02BSC: introduce new "sysmobts" BTS modelHarald Welte8-8/+92
so far, osmo-bts/sysmobts used to be entered as "sysmobts" type in the configuration file. However, there are some differences in the protocol/behaviour and we should reflect that by a new BTS plugin (with lots of code reuse from the nanobts driver).
2012-07-02pre-fix measurement reports with subscriber identityHarald Welte1-3/+7
... otherwise it's impossible to distinguish them from each other.
2012-06-28ipaccess: some more comments on timer valuesHarald Welte1-2/+5
2012-06-16split libgb into a separate library for outside useHarald Welte1-1/+1
This also removes the dependency to osmo_sock() inside libcommon and replaces it with osmo_sock_* from libosmocore
2012-06-03Allow VTY-based configuration of T3105Harald Welte4-6/+9
This timer will only be forwarded to BS11 and Ericsson Abis so far, not to Nokia and ip.access BTS yet.
2012-05-31abis_rsl_rcvmsg(): Fix msgb memory leak in error pathHarald Welte1-1/+2
Thanks to Andreas Eversberg for spotting this one.
2012-05-31vty / cfg_bts_tsc: TSC range is 0..7, not 0..255Harald Welte1-6/+1
2012-05-17bsc: Move the osmo_bsc_rf file into the libbsc code and renameHolger Hans Peter Freyther2-1/+366
The nitb will provide the RF interface as well.
2012-04-26RSL add debug statements when sending RSL EST REQ and RSL REL REQ.Harald Welte1-0/+6
2012-04-26bsc_api: Fix wrong order of log category and level argumentsHarald Welte1-1/+1
2012-04-26bsc_api: log RR STATUS from MS as NOTICE, not DEBUG levelHarald Welte1-1/+1
2012-04-18lchan: Fix the name of the SACCH in the variable namesHolger Hans Peter Freyther2-6/+6
Call the channel by the right name.
2012-04-17bsc_api: Send RR Release and de-activate the SACCH on errorHolger Hans Peter Freyther1-2/+2
In case the connection should not be created/accepted release the channel by sending a RR Release and de-activating the SACCH. Phones should deal better with that behavior.
2012-04-11bsc: Allow to run a mixed TCH/H, TCH/F configurationHolger Hans Peter Freyther1-4/+22
In case the call handling starts on a TCH/H switch to a TCH/F if fullrate is requested. Add a method that is used to determine if the mode and current channel are compatible with each other.
2012-03-16bsc: Create a osmo_bsc_data and embed osmo_msc_dataHolger Hans Peter Freyther1-2/+2
We want to have multiple MSCs but we also have some data that is only present on a per BSC basis. Right now the MSC data is not allocated with talloc, so we have some change in the talloc contexts.
2012-03-01Improved generation of SYSTEM INFORMATIONs 2* and 5* for neighbour bandsAndreas Eversberg2-41/+265
In addition to SI 2 and SI 5, the SI 2ter and 2bis is generated, if neighbour cells in other bands exist. Also it is indicated in the rest octets of SI3, that SI 2ter is used. If no neighbour cell in a different band exists, the SI 2ter and SI 5ter is omitted. A special case is P-GSM range (channels 1-124). To be compatible with older phones, SI 2bis and SI 5bis is used. If the BCCH lays inside the P-GSM band, only neighbour cells of the P-GSM range are included in SI 2 and SI 5. If neighbour cells exist in the same band (900), but lay outside the P-GSM range, the SI 2bis and SI 5bis is used to extend the list of neighbour cells. The extension is also indicated in SI 2 and SI 5. If the BCCH lays inside the P-GSM range, but no neighbour cell exists in the same band outside the P-GSM range, the SI 2bis ans SI 5bis are omitted.
2012-02-17fix generation of frequency list (E-GSM vs. P-GSM 900)Harald Welte1-2/+3
2012-02-03bts_ipaccess_nanobts.c: Remove unused variable.Holger Hans Peter Freyther1-3/+0
This must have been obsoleted by the move to libosmo-abis. GCC warning: bts_ipaccess_nanobts.c: In function ‘ipaccess_drop_oml’: bts_ipaccess_nanobts.c:509:21: warning: variable ‘line’ set but not used [-Wunused-but-set-variable]
2012-02-03abis_rsl.c: Remove unused variable net.Holger Hans Peter Freyther1-2/+0
The old BSC code had code to override the payload type, this has been removed, remove the variable accessing it. GCC warning: abis_rsl.c: In function ‘ipa_rtp_pt_for_lchan’: abis_rsl.c:1590:22: warning: unused variable ‘net’ [-Wunused-variable]
2012-02-03abis_rsl: The rach information was not used, introduce a signalHolger Hans Peter Freyther1-12/+16
Introduce a SS_CCCH for the paging and the rach load. The paging code could now start using the signal. GCC warning: abis_rsl.c: In function ‘rsl_rx_ccch_load’: abis_rsl.c:1371:11: warning: variable ‘rach_access_count’ set but not used [-Wunused-but-set-variable] abis_rsl.c:1370:11: warning: variable ‘rach_busy_count’ set but not used [-Wunused-but-set-variable] abis_rsl.c:1369:11: warning: variable ‘rach_slot_count’ set but not used [-Wunused-but-set-variable]
2012-02-03abis_rsl.c: Remove unused variable ts_numberHolger Hans Peter Freyther1-2/+1
GCC warning: abis_rsl.c: In function ‘rsl_rx_chan_rqd’: abis_rsl.c:1245:10: warning: variable ‘ts_number’ set but not used [-Wunused-but-set-variable]
2012-02-03abis_om2000.c: Remove unused variable to_trx_oml.Holger Hans Peter Freyther1-1/+0
GCC warning: abis_om2000.c: In function ‘abis_om2k_sendmsg’: abis_om2000.c:804:6: warning: unused variable ‘to_trx_oml’ [-Wunused-variable]
2012-02-03vty: Remove two unimplemented OML functionsHolger Hans Peter Freyther1-24/+0
attribute get|set <0-255> (.HEX) was never implemented and the output about the unused attributes clutter the build output, remove them. GCC warning: abis_nm_vty.c: In function ‘oml_attrib_get’: abis_nm_vty.c:141:25: warning: unused variable ‘oms’ [-Wunused-variable] abis_nm_vty.c: In function ‘oml_attrib_set’: abis_nm_vty.c:152:25: warning: unused variable ‘oms’ [-Wunused-variable]
2012-02-03misc: abis_nm.c Use the result of ret.Holger Hans Peter Freyther1-1/+7
Use LOGP(DNM, LOGL_ERROR, ...); for errors in the abis_nm_rx_sw_act_req method. GCC warning: abis_nm.c: In function ‘abis_nm_rx_sw_act_req’: abis_nm.c:412:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
2012-01-29ARFCNs are in the range of 0..1023, not 0..1024Harald Welte2-5/+5
I'm sure I read somewhere that it actually was 0..1024, as I kept wondering how stupid it was to use 10bit+1. However, that source was incorrect, as GSM TS 05.05 quite clearly states 0..1023