aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/oml.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-20Use tlvp_val16_unal() / tlvp_val32_unal() to align 16 and 32 bit valuesAndreas Eversberg1-26/+32
This is required for CPUs < armv6, to access 16 and 32 values at right memory locations.
2012-10-04OML: TA is a 8bit value, not 16bitHarald Welte1-4/+2
... as jolly correctly pointed out.
2012-07-11OML: add missing ntohs() for UL/DL_TBF_EXTHarald Welte1-2/+2
Thanks to Andreas for spotting this.
2012-07-08signal: Add signals for setting/change of GPRS MO attributesAndreas Eversberg1-0/+8
2012-07-08Fixes for handling of GPRS NSE/NSVC/CELL MOAndreas Eversberg1-5/+8
2012-06-28Add 12.21 handling for GPRS NSE/NSVC/CELL MOHarald Welte1-0/+162
We now bring the GPRS related MO up in DEPENDENCY state and parse the various NS, BSSGP and RLC parameters as set by the BSC via 12.21/OML.
2012-04-19add a VTY command for activating PDCH channels (in EGPRS mode)Harald Welte1-0/+4
This allows us to do RF measurements (EDGE EVM and the like) even without having any PCU/RLC/MAC code as of now. To use it, configure PDCH type timeslots (e.g. TS 7) in the BSC and then use "trx 0 7 activate 0" to manually activate the PDTCH lchan on top of that timeslot. The BTS will now happily transmit EDGE/8PSK data.
2012-04-12misc: Fix compiler warning about printing a ptrdiffHolger Hans Peter Freyther1-1/+1
Use 't' modifier for pointer diff in the printf statement. oml.c: In function ‘oml_rx_set_bts_attr’: oml.c:403:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 9 has type ‘int’ [-Wformat]
2012-04-05oml: temporary debug hackHarald Welte1-1/+6
2012-03-18Ensure that ADM_STATE IE is presnent when sending NM_MT_CHG_ADM_STATE_ACKHarald Welte1-1/+14
2012-03-15OML: when allocating merged tlvp arrays for MO, use bts contextHarald Welte1-1/+1
'ts' is not a talloc-managed pointer but an offset into the bts structure. As such, we cannot pass it to talloc as context!
2012-01-23misc: Check return value of msgb _alloc functionsHolger Hans Peter Freyther1-1/+5
Attempt to catch all functions that allocate a msgb and didn't check the return value of the allocation.
2012-01-14oml: Use talloc_free(ptr) instead of talloc_free(ptr_to_ptr)Holger Hans Peter Freyther1-1/+1
tp_merged points to memory allocated by talloc_zero, no need to hand the address of that to talloc itself.
2012-01-14OML SET CHAN ATTR: merge TS attributes (not BTS) and fix mem leakHarald Welte1-1/+5
We have to * merge the new attributes with the exiting TS (not BTS) attributes * in case of success, attach the new merged attributes to our state * in case of success, free the old attributes Thanks to Holger for pointing this out.
2011-11-07common: Include bts.h for bts_shutdownHolger Hans Peter Freyther1-0/+1
2011-09-09OML: make sure max_power_red is scaled by 2 to convert from 12.21 to dBmHarald Welte1-2/+3
2011-07-01logging sanitization (use proper log levels, etc.)Harald Welte1-10/+7
2011-07-01fix BTS initialization orderHarald Welte1-5/+4
The sequence is as follows: 0) start osmo-bts 1) start connection attempts to BTS 2) issue L1-RESET.req 3) receive L1-RESET.conf 4) issue RF-ACTIVATE.req 5) receive RF-ACTIVATE.conf 6) receive attributes for TRX 7) receive opstart for TRX 8) issue MPH-INIT.req [...] The important point here is: We don't want the BSC to set TRX attributes or do TRX opstart before our RF related hardware is initialized.
2011-06-29OML: fix memory leaks by centralized msgb_free() for rx msgsHarald Welte1-5/+2
2011-06-29Fix support of SDCCH4Harald Welte1-2/+2
In SDCCH4, we use lchan number 0...3 for the SDCCH/SACCH, and we statically use lchan[4] as the dummy for activating the CCCH L1 SAPIs. In order to make combined and non-combined CCCH orthogonal, we simply also use lchan[4] in that case. On a 'pure' CCCH, therefore lchan 0..3 are unused and 4 is the actual CCCH.
2011-06-27re-work original osmo-bts with support for sysmocom femtobtsHarald Welte1-234/+666
This code re-works osmo-bts to add support for the upcoming sysmocom BTS. It also tries to add some level of abstraction between the generic part of a BTS (A-bis, RSL, OML, data structures, paging scheduling, BCCH/AGCH scheduling, etc.) and the actual hardware-specific bits. The hardware-specific bits are currently only implemented for the sysmocom femtobts, but should be (re-)added for osmocom-bb, as well as a virtual BTS for simulation purpose later. The sysmocom bts specific parts require hardware-specific header files which are (at least currently) not publicly distributed.
2011-05-22oml: re-use common definitions that are now in libosmocoreHarald Welte1-74/+6
2011-05-22[partial] port to new libosmocore-0.3 APIsHarald Welte1-1/+1
2011-03-04Fix include paths and start to make code compileHarald Welte1-9/+9
(still lots of missing references into osmocom-bb code)
2011-03-04Import all C and Header files from jolly/bts branch of osmocom-bb.gitHarald Welte1-0/+549
The BTS code shall reside in a separate git repository, thus I'm importing the C and H files here.