aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2009-10-26add some random thoughts on hopping and the oml interfaceHarald Welte2-0/+75
2009-10-26[TLV] Split the parser into 'parse loop' and 'parse single value'Sylvain Munaut2-72/+104
This is needed when you need to manually parse TLV blocks that don't follow the logic supported by tlv_parse but you still want to rely on working code and not fiddle with details.
2009-10-26[ip.access] Add an example configuration fileSylvain Munaut1-0/+38
2009-10-26Fix segfault, use trx->bts rather than bts in patch_nm_tables()Harald Welte1-1/+1
2009-10-26Merge remote branch 'origin/master'Harald Welte26-410/+474
2009-10-24ip.access: Use Channel Combination from config fileHarald Welte1-4/+4
bsc_init.c still contained a hard-coded channel configuration, i.e. CCCH_combined on TS0 of C0, and TCH/F on all other channels. Now it correctly uses the value as specified in the config file.
2009-10-24[GPRS] Add RSL function for ip.access PDCH activationHarald Welte2-0/+31
If we have a dynamic TCH/F / PDCH channel configuration, then we can either ACTIVATE CHANNEL it for a TCH/F, or we need to send this vendor-specific PDCH ACTIVATE command to use it as a PDCH. As opposed to a fixed configuration, this allows an intelligent BSC channel allocator to use otherwise idle channels as PDCH as long as no more TCH's are needed.
2009-10-24[GPRS] introudce PDCH and PDCH/TCH physical channelsHarald Welte4-1/+11
GPRS needs PDCH (Packet Data Channels), and we need support in our data model as well as OML and RSL for it
2009-10-24[OML] Add support for ip.access SET ATTRIBUTE messageHarald Welte2-0/+12
Since TS 12.21 implements only SET ATTRIBUTE for some object classes, ip.access had to extend it to be able to set attributes on arbitrary objects. We now introduce a function implementing that message.
2009-10-24[GPRS] add data structures for OML of NSE,CELL,NSVCEHarald Welte3-0/+45
Supporting GPRS means we have a number of additional OML objects to deal with. We need to extend our gsm_bts structure to at least include the nm_state for each of those objects.
2009-10-24[TLV] extend TLV parser with support for TvLVHarald Welte2-0/+69
Tag-variableLength-Value is an encoding scheme used in the GPRS NS and BSSGP protocols, where the length value can be 8 or 16 bits, depending on actual demand.
2009-10-23[gsm48] Make method name consistent...Holger Hans Peter Freyther1-2/+2
We use rx_rr to indicate that we have received a radio resource message but one method was using rr_rx. Fix that.
2009-10-22Include e1_input.h for the e1inp_lineHolger Hans Peter Freyther1-0/+2
2009-10-22Fix spelling of defaultHolger Hans Peter Freyther1-1/+1
2009-10-22Fix compiler warning. 0 does not work on stringsHolger Hans Peter Freyther1-1/+1
2009-10-22Fix compiler warning and cast const away.Holger Hans Peter Freyther1-1/+1
TLVP_VAL returns a const u_int8_t* and we assign it to a non const, cast const away.
2009-10-22[rrlp] Fix compiler warningsHolger Hans Peter Freyther3-2/+3
The apdu is static const u_int8_t. Change the signature to have a const in there to make the compiler happy, include chan_alloc.h for lchan methods.
2009-10-22Fix warnings by removing unused variablesHolger Hans Peter Freyther3-7/+1
2009-10-22Forward declare methods to fix compiler warningsHolger Hans Peter Freyther3-0/+7
Put the used method in the header files or use extern in the case of a vty method used by token_auth
2009-10-22[db] Fix compile warnings in db.cHolger Hans Peter Freyther1-3/+5
For the compiler classmark1 is a struct and the compiler is unaware that it fits into an unsigned int. Use memcpy to copy it to a u_int8_t (the compiler should inline this). dbi_conn_quote_binary_copy works on unsigned char* change q_apdu to be unsigned char.
2009-10-22[wireshark] RSL: add more decoders for ip.accessHarald Welte1-296/+150
Also, make sure we always use BASE_NONE with FT_BYTES, as current wireshark svn has an ASSERT() about this.
2009-10-22[wireshark] abis_oml: Always use BASE_NONE with FT_BYTESHarald Welte1-12/+12
2009-10-21[ipaccess] revert commit 9bd7bc1b4c4a3ba42da46931df650837c1a7e889Harald Welte1-1/+5
Commit 9bd7bc1b4c4a3ba42da46931df650837c1a7e889 caused the RSL initialization to happen too early, resulting in the BTS bootstrapping but missing [some of?] the system information types.
2009-10-21Merge remote branch 'origin/master'Harald Welte4-2/+23
2009-10-21Merge branch 'holger/merge-on-waves-msc'Holger Hans Peter Freyther4-2/+23
2009-10-21[debug] Use gcc attribute to enable printf checkingHolger Hans Peter Freyther1-1/+1
Inform the compiler that the same rules as printf apply to the debugp method. This will check if the arguments match the format string.
2009-10-21[timer] Initialize i with zeroHolger Hans Peter Freyther1-1/+1
In case no timers were registered the result was not defined.
2009-10-21[msgb] Add msgb_reset to reset an existing msgb* to the initial stateHolger Hans Peter Freyther2-0/+21
The reset is useful if one msgb is supposed to be used over and over again and is avoiding to use msgb_free,msgb_alloc in the application code.
2009-10-20[ipaccess] fix ipaccess-config (we now use TEI as stream ID)Harald Welte1-1/+1
2009-10-20[nanoBTS] move nanoBTS initialization completely into state event handlerHarald Welte2-66/+76
2009-10-20[abis_nm] introduce debugp_foh() function for object class printingHarald Welte1-15/+17
2009-10-20ip.access: use correct stream identifier when connecting RSLHarald Welte1-1/+1
2009-10-20input/ipaccess: remove one more static variableHarald Welte1-5/+1
2009-10-20ip.access: Support multi-TRX / RSL stream IDHarald Welte2-24/+55
In order to support multi-TRX configurations, we need to be able to cope with multiple RSL streams (each with their own stream identifier) inside one ip.access TCP connection. Since this is very similar to using the TEI on a E1 line, we simply recycle the logic and data fields that are used for the TEI.
2009-10-19[abis_nm] print ip.access TCP port in correct byte orderHarald Welte1-1/+1
2009-10-19[abis_nm] print ip.access stream_id in RSL connect ackHarald Welte1-0/+3
2009-10-19[abis_nm] introduce and use abis_nm_ipaccess_rsl_connect()Harald Welte3-9/+32
2009-10-19ip.access / multi-TRX: correctly identify TRX number on SW ACT REPHarald Welte1-1/+5
2009-10-19ip.access maximum output power depends on GSM bandHarald Welte1-1/+15
2009-10-19[abis_nm]: Print Object Class of ip.access messagesHarald Welte1-0/+5
2009-10-09add ipaccess specific attribute set messageHarald Welte1-0/+3
Partially apply 9ba65525eaa06a1768aaf35bdee98afcf8026e0a to get rid of a compile problem. The other part of the mentioned commit is still in the gprs branch. Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2009-10-08[bsc_init] use new NM_AVSTATE_* enum instead of hard-coded numbersHarald Welte1-2/+2
2009-10-08add availability state abis_nm enumHarald Welte1-0/+10
2009-10-08[abis_nm] print object class/instance for NACKHarald Welte1-2/+8
2009-10-08[abis_nm]: print ip.access SET ATTR [N]ACKHarald Welte1-0/+11
2009-10-08use tx delay timer instead of usleep() in ip.access input driverAndreas Eversberg1-9/+24
this fixes the delay of audio caused by stalling of the openbsc process. the use of 'usleep(100000)' for slowing down transmission to nanoBTS is replaced by the tx-delay timer. i did this on bs11 code, so i did it the same way. it actually queues frames for transmission not nanoBTS. on transmission a timer is started and when this timer expires, the next frame in the queue is transmitted (timer restarted) until the queue is empty.
2009-10-06Merge branch 'holger/merge-on-waves-msc'Holger Hans Peter Freyther3-25/+26
2009-10-06[gsm0408] Add parameter to gsm48_send_rr_ciph_mode for controling the responseHolger Hans Peter Freyther2-3/+3
This parameter controls if the response should include the IMEISV or not. This will be set by the MSC and this is why this parameter was added.
2009-10-06[gsm0408] Move encryption message creation to gsm_04_08_utils.cHolger Hans Peter Freyther2-24/+25
Be able to use the cipher mode command message from the MSC code.
2009-10-05[ipaccess] Add nanoBTS 1900 supportMike Haben6-22/+19
Add support for 1900 nanoBTS by using unified bts_type GSM_BTS_TYPE_NANOBTS for 900, 1800 and 1900 versions. Reduce the nanoBTS enum values to one and derive the version from the user supplied band. In the future we might want to do auto band detection. The configuration file needs to be changed to refer to nanobts instead of nanobts900/nanobts1800. Signed-off-by: Mike Haben <michael.haben@btinternet.com> Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>