aboutsummaryrefslogtreecommitdiffstats
path: root/src/bsc_hack.c
AgeCommit message (Collapse)AuthorFilesLines
2009-06-10move openbsc into its own subdirectoryHarald Welte1-1159/+0
2009-06-09don't prefix every line with timestamp, this saves some screen real estateHarald Welte1-1/+5
2009-06-09some more commentsHarald Welte1-2/+3
2009-06-09bsc_hack.c: Fix the -l db option (Andreas Eversberg)Holger Freyther1-1/+1
Add ':' to indicate an argument will follow -l.
2009-06-06Revert "[db] Keep track of the current gsm_network"Holger Freyther1-1/+1
This was a stupid decision. We will have to assign the network at some other place. The problem will be a problem when we have two gsm_networks in one process and the same subscriber is traveling in both networks.
2009-06-02[e1] Correctly initialize the e1link (Andreas Eversberg)Holger Freyther1-8/+24
During bootstrap of BS11, the e1links are initialized. This must also be done when BS11 is already bootstrapped (when restarting OpenBSC). It is required to correctly multiplex the audio traffic between channels. Without it, all time slots refer to card 0, slot 0, subslot 0, which causes crashes when handling TRAU frames..
2009-05-28* give Siemens ObjClass reasonable names rather than A3/A5/A6Harald Welte1-2/+2
* add nm_state objects for RACK and CCLK * add obj_class human-readable printing for all vendor obj_classes * add human-readable printing of administrative state * add enum for cell_alloc numbers
2009-05-23some more comments on the abis attributesHarald Welte1-3/+5
2009-05-23make sure even our predefined structures use HARDCODED_BSIC as initial valueHarald Welte1-2/+2
2009-05-23Add user-configurable BSIC settingHarald Welte1-0/+4
2009-05-23* replace some more hex bytes in init msgs by #definesHarald Welte1-10/+14
* when using patch_tables(), use the ARFCN of the BTS, not the cmdline argument
2009-05-23An application that has own events and file descriptors, must pollHarald Welte1-1/+1
select function ob libbsc. A "polling" flag is used to enable polling. In this case select() will not sleep until file descriptor events occurr or nearest timer expires. Also a return value will indicate if there was an event that has been handled. If there was an event, the application decides to poll again and don't wait. In case for bsc_hack, the polling flag is not set. select will sleep as usual. (Andreas Eversberg)
2009-05-01remove misleading debug messagesHarald Welte1-6/+3
2009-05-01make sure we terminate bsc_hack if the OML/RSL listening sockets cannot be ↵Harald Welte1-2/+1
created
2009-05-01Fix long-standing bug: nanoBTS now even works after cold boot (first time ↵Harald Welte1-20/+48
after power up). The problem in the old logic was that we started talking to a given object (e.g. radio carrier) one we received an administrative state change report. It turns out we have to wait for the software activation report instead - and everything suddenly works.
2009-05-01no need to make gsmnet structure non-static (fix from last commit)Harald Welte1-1/+1
2009-05-01* Add support for multiple ip.access nanoBTS at one BSCHarald Welte1-17/+36
* keep track of site_id/bts_id in struct gsm_bts * dynamically match incoming OML/RSL over TCP connections by BTS Unit ID * introduce new debug category DINP (separate from DMI for hexdumps) * remove ia_config() as it is no longer needed * * ensure that signalling links / E1 line information is correctly printed * when bootstrapping RSL or OML, tell us for which BTS it is being doen * separate bootstrap_bts() out from bootstrap_network() * statically configure two ip.access BTS, one with unit id's 1800/0/0 and 1801/0/0
2009-05-01abis_nm wants to use bts->bts_nr (the number of the BTS in the OML link) ratherHarald Welte1-9/+9
than bts->nr (the number of the BTS in the BSC).
2009-04-22[misdn] Add option to automatically release layer2 on exitHolger Freyther1-2/+8
Patch by Andreas Eversberg to automatically release layer2 on exit of the application. Made the naming of the variables consistent (only release_l2 and not both release_l2 and l2_release).
2009-04-22[bsc_hack] Allow to select the cardnr defaulting to number 0Holger Freyther1-2/+8
Patch from Andreas Eversberg to allow to select the ISDN card number. The default remains the same.
2009-04-22[bsc_hack] Allow to set the location area codeHolger Freyther1-2/+8
Patch by Andreas Eversberg to allow to set the location area code from the command line.
2009-04-19[bsc_hack] House keeping, remove dead codeHolger Freyther1-7/+0
This callback is not used from within the paging layer. We do have a different set of callbacks in place. Remove it here.
2009-04-19[db] Keep track of the current gsm_networkHolger Freyther1-1/+1
2009-04-19[bsc_hack] Initialize db as part of the networkHolger Freyther1-12/+12
Let us establish the rule that there is one DB per network. This will allow to assign a BTS of the network to a subscriber that is loaded from the db across restarts.
2009-03-31[e1] Enable dumping of LAPD frames againHolger Freyther1-5/+1
Kill mi_set_pcap_fd from the header, introduce e1_set_pcap_fd and call it from bsc_hack.c. Hook into abis_rsl_sendmsg and _abis_nm_sendmsg for sending and e1inp_rx_ts for reading. It compiles and should not cause a regression.
2009-03-10move is_ipaccess_bts() and parse_btstype9) to gsm_data.cHarald Welte1-18/+1
2009-03-09[misc] Fix compile warnings...Holger Freyther1-0/+3
2009-02-24fix non-randomness of TMSI by seeding the PRNG. Later we should use opensslHarald Welte1-0/+3
2009-02-24enable IMSI ATTACH/DETACHHarald Welte1-1/+1
* this tells us whenever a MS is switched off * also ensures that we get LOCATION UPDATe every time MS is switched on, even if it already has TMSI
2009-02-2125C3 is over, so call our network OpenBSCHarald Welte1-2/+2
2009-02-18use official TCH/F for initial channel modes rather than BS-11 specific 0x09Harald Welte1-7/+7
2009-02-17don't reduce power quite as much to make sure we still get a singal (bs-11) ↵Harald Welte1-5/+5
and nanoBTS doesn't refuse the attribute at all
2009-02-15* use more constants to name the various BTS/TRX/... attributesHarald Welte1-31/+80
* set BS power reduction up to 30dB reduction. we want to be quiet!
2009-02-15support non-123 ARFCN on nonoBTSHarald Welte1-1/+8
2009-02-15* use the correct BCCH channel type for nanoBTSHarald Welte1-33/+5
* remove old code * ensure that the default BTS type really is BS-11 * document the '-t' commandline argument in the --help message With this commit, I can get the nanoBTS 900 working with OML and RSL, register to the network from phones. Paging is not tested yet, and voice traffic handling is completely missing..
2009-02-15Add support for ip.access RSL link on port 3003Harald Welte1-0/+8
2009-02-15* add bsc_hack commandline argument to select BTS typeHarald Welte1-12/+199
* add event-based OML bring-up for nanoBTS
2009-02-11[ccch load] Enable notifications for CCCH/PAGING LOAD againHolger Freyther1-2/+2
Set the threshold to 0% for the load indication. The paging buffer space will be used by the paging notifications and we will ignore the racch usage notification for now.
2009-02-10* fill the e1_link member of every bts_trx_ts structureHarald Welte1-1/+10
* introduce new timer as part of every paging request
2009-02-09[paging] Cleanup page -> paging in function namesHolger Freyther1-1/+1
2009-02-09* add trau_mux implementation to relay from one incoming TRAUHarald Welte1-11/+27
channel to another one (simple voice call switching) * add a way more generic E1 input layer, abstracting out the misdn low-level interface. This also adds infrastructure for multiple TRX in one BTS, as well as multiple BTS on one E1 link * add a E1 subchannel multiplexer for sending multiple 16kbit sub-channels one one 64kBps E1 channel * add TRAU IDLE frame generation * terminate bsc_hack in case there is a E1 / mISDN init error * introduce 'e1_config.c' file with static configuration of our E1 setup (which TRX/BTS is configured for which TEI/SAPI/E1). This should later become a config file rather than a compiled C file. WARNING: all this compiles but is not tested yet. Expect fix-up committs over the next hours or so
2009-02-07make sure certain functions are per TRX, not per BTS, such asHarald Welte1-7/+7
* rsl_chan_activate() * rsl_bcch_info() * rsl_sacch_filling()
2009-02-06[paging] Move the paging state into struct gsm_btsHolger Freyther1-3/+2
There is a 1:1 relationship between gsm_bts and the paging operation. Move the paging state into the gsm_bts which is simplfying the code a lot. This was hinted by LaF0rge. (I'm not happy with the names of the structs)
2009-02-06increase CCCH LOAD indication threshold to 50% to remove lots of noiseHarald Welte1-2/+2
2009-02-04[paging] Keep a copy of the Control Channel Description in the bts structHolger Freyther1-0/+11
- Initialize Control Channel Description of SI3 - Patch the table - Setting ATT now is easy - Paging can now extract all required information... to determine the right paging group.
2009-02-01Enable CCCH LOAD INDICATION always, from 0% upwards, and report it every secondHarald Welte1-3/+3
2009-01-18abis_nm_reset_resource is a bs11 specific functionHarald Welte1-3/+3
2009-01-18* prefix all BS11 specific OML functions with proper nameHarald Welte1-6/+6
* add more BS11 specific OML commands (TRX power, logon, OML TEI, ...)
2009-01-06Hook the paging code into bsc_hack.c and telnet_interface.cHarald Welte1-0/+11
Wrote and test code to add and remove paging requests... This will be using the fact that the linux list is building a circle on each tick we can send one/x paging requests and continue round robin...
2009-01-06Allow to set a different ARFCNHarald Welte1-3/+24
Add the -f option to use a different channel. This is done by patching the various tables before the OML and RSL is brought up. It looks like it is working... Patch by Harald, moving of the patch_tables invocation by zecke