summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* fw/abb/twl3025: handle interrupt on powerbutton pressSteve Markgraf2011-08-301-0/+7
| | | | | | | | | | | | | | | Since the powerbutton on the Pirelli DP-L10 doesn't seem to be connected to the keypad scan matrix at all, we're using Iota's PWON interrupt to determine if the powerbutton has been pressed, and power off the phone after it has been released again. This also affects the Compal phones, since the interrupt happens quite some time before the keypad driver notices the keypress. The code in the keypad driver that has been used so far to power off the phone will remain as a backup when running without interrupts at all (e.g. the loader application). Signed-off-by: Steve Markgraf <steve@steve-m.de>
* [mobile] Disable SMS by default, because SMS is not supportedAndreas Eversberg2011-08-131-1/+1
|
* mobile/vty: Add missing 's' for 'skip-max-per-band' configuration parameterSteve Markgraf2011-08-111-1/+1
| | | | | Thanks to Sylvain for pointing this out. Signed-off-by: Steve Markgraf <steve@steve-m.de>
* Fix of wong Classmark 2 when doing CM Service Request.Andreas Eversberg2011-08-063-7/+13
| | | | | | Same reason as the commit below... (3b2b3b09a) Thanx again to Dieter for pointing this out.
* Fix of wong Classmark 1 on Location Updating and IMSI DetachAndreas Eversberg2011-08-041-3/+7
| | | | | | | | | | The reason for the the wrong power capability comes from the fact that "rr->cd_now" is not yet set and so the ARFCN is 0 which causes the GSM900 power capability to be used. It is set to "Class 4" in the configuration file per default, however this value is not defined for GSM1800/1900. Thanx to Dieter Spaar for finding this bug!
* fw/calypso/dsp: Fix wrong hardcoded boot code constantSylvain Munaut2011-08-031-1/+1
| | | | | | | | No functional impact tough. Thanks to Job <baseband@hackwerk.org> on the ML for pointing this out Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* gsmmap: Dump SYSTEM INFORMATION messages while processingAndreas Eversberg2011-07-311-16/+17
|
* Fixed broken gsmmap.Andreas Eversberg2011-07-312-1/+11
|
* Merge commit '1a99df84e12315c63f2e96a2972864e4c311712d'Sylvain Munaut2011-07-303-6/+6
|\
| * gsm/gsm48_ie: Fix frequency list decodingAndreas.Eversberg2011-07-301-1/+1
| | | | | | | | | | Fix-by: Andreas.Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| * use the 'L' prefix in debug names (DLINP instead of DINP)Harald Welte2011-07-291-4/+4
| |
* | layer23: Add mobile support for sending / receiving voice frame through MNCCAndreas.Eversberg2011-07-2815-39/+333
| | | | | | | | | | | | | | Support GSM FR codec only so far. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* | fw/prim_tch: Add support for sending frame from l23 (TRAFFIC_REQ/CONF)Sylvain Munaut2011-07-281-3/+73
| | | | | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* | fw/prim_tch: Add support for sending traffic frames to l23 (TRAFFIC_IND)Sylvain Munaut2011-07-281-2/+28
| | | | | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* | fw/layer1/l23_api: Add processing of the new audio_modeSylvain Munaut2011-07-284-10/+33
| | | | | | | | | | | | This currently just stores it into the l1 sync state struct Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* | l23/l1ctl: Add default values for audio_modeSylvain Munaut2011-07-281-0/+3
| | | | | | | | | | | | Theses value should simulate the old behavior Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* | fw/l1: Add a queue for traffic frame to send to network (TRAFFIC_REQ)Sylvain Munaut2011-07-282-0/+28
| | | | | | | | | | | | | | | | Also hard limit to maximum 4 pending frames (should not happen !), the upstream is supposed to do its own flow control. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* | l1ctl: Add definition for TRAFFIC_{REQ,CONF,IND}Sylvain Munaut2011-07-281-1/+1
| | | | | | | | | | | | Also adapt packet creation length in L1 Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* | layer23: Adapt to new logging API: fix calls to log_initAndreas.Eversberg2011-07-282-2/+2
| | | | | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* | Merge commit '430be849945688ae107b079db1e216329b1a1f06'Andreas.Eversberg2011-07-2841-194/+3509
|\|
| * sms: Fix style issues with the code, add spaces after keywordsHolger Hans Peter Freyther2011-07-241-5/+5
| |
| * sms: SMS where cropped (from VTY), concatenation of SMS where not possibleDennis Wehrle2011-07-241-29/+89
| | | | | | | | | | | | | | | | | | | | | | | | Additionally it wasn't possible to send concatenated sms from the vty. To send multiple sms, it is necessary to use padding bits and add a user_data_header. Therefore the gsm_7bit_encode function was splitted to gsm_7bit_encode and gsm_septets2octets. gsm_septets2octets: this is the old gsm_7bit_encode function + additional padding parameter Additionally the gsm_7bit_decode function was modified to take account for the user_data_header. With the new gsm_get_octet_len function you can get the octet length for a given septet length. I also added several sms tests.
| * remove DLRSL and DLNM, we don't need themHarald Welte2011-07-211-12/+0Star
| | | | | | | | | | They are not used anywhere in our libraries, so they should be defined by the respective applications
| * make sure we don't have namespace clashes between libraries and appsHarald Welte2011-07-191-6/+6
| | | | | | | | | | | | | | | | * All loging prefixes in libraries should be DL like DLINP * All signals / subsystems should be called S_L_* SS_L_* * All command nodes should be called L_*_NODE This makes sure existinc code still compiles as expected
| * logging: add libosmo-abis logging subsystemsPablo Neira Ayuso2011-07-181-0/+34
| | | | | | | | | | | | This adds the libosmo-abis logging subsystems to libosmocore, it uses the new change that harald proposed based on negative numbers for library logging subsystems.
| * lapdm: fix memory leak due to unreachable codeHarald Welte2011-07-161-1/+0Star
| | | | | | | | detected by Smatch
| * gsm 08.08: use ANSI function definition with (void)Harald Welte2011-07-161-1/+1
| |
| * tlv: Make tlv parser arrays 256 entries wide to prevent overflow on 0xffHarald Welte2011-07-161-1/+1
| | | | | | | | | | | | | | If we encounter a tag with 0xFF, we overflow our existing tlv_parse array definitions. Warning: this breaks ABI
| * gprs_cipher_core: Fix potential buffer overflowsHarald Welte2011-07-161-3/+3
| | | | | | | | detected by Smatch
| * telnet_interface: if we don't check for the return value, don't use retHarald Welte2011-07-161-5/+4Star
| |
| * telnet_interface: get rid of 'const' warningHarald Welte2011-07-161-1/+1
| |
| * get rid of non-ANSI function declarations missing (void)Harald Welte2011-07-163-6/+6
| | | | | | | | Detected by Smatch
| * timer: use (void) for functions that take no argumentsHarald Welte2011-07-161-3/+3
| | | | | | | | This has been detected by http://smatch.sourceforge.net/
| * osmo_hexdump: Fix segfault when input is too long.Holger Hans Peter Freyther2011-07-151-0/+2
| | | | | | | | | | | | | | | | | | | | In snprinftf the size is a size_t (unsigned) in case we want to write more than we have available, len_remain will be < 0. This was spotted while removing hexdump from simtrace and comparing it to our implementation. int snprintf(char *str, size_t size, const char *format, ...);
| * GSM 08.08: Fix generation of CIPHER MODE REJECTHarald Welte2011-07-121-1/+1
| | | | | | | | | | The message has a total length of 4 octets, so don't allocate only 3 in the msgb.
| * gsm 08.08: add value_strings and gsm0808_msg_name() functionHarald Welte2011-07-111-0/+86
| |
| * fix against corrupted output in parallel loggingHarald Welte2011-07-021-1/+1
| | | | | | | | | | | | | | | | | | In 825607672215b7a12ea6e201a89cd5209f6d657f it was attempted to fix a bug previously introduced by logging related changes. The problem is that a va_list can be corrupted after it has been used once, so we need to va_copy before each successive use. And if we copy it, we also need to use the copy, and not the original ;)
| * lapdm: make sure we flush all queues whenever entering IDLE stateHarald Welte2011-06-291-0/+11
| | | | | | | | | | this fixes a memory leak where the final UA would always remain in memory after a LAPDm entity has been disconnected.
| * add msgb_set_talloc_ctx() to set the talloc context for msgb allocationsHarald Welte2011-06-291-0/+5
| |
| * make sure abis_nm <-> osmocom pchan type conversion always worksHarald Welte2011-06-291-0/+2
| |
| * LAPDm: Uplink SACCH frames use format B, not format B4Harald Welte2011-06-291-5/+12
| |
| * LAPDm: When Rx DATA from L1, L1 does not know the SAPIHarald Welte2011-06-271-13/+14
| | | | | | | | We have to determine the SAPI ourselves inside the LAPDm header.
| * Fix the generation of the log_categories string + LAPDMHarald Welte2011-06-271-4/+7
| | | | | | | | | | | | | | | | ... I should do more testing :( Conflicts: src/logging.c
| * logging: make sure to add the internal categories, as intendedHarald Welte2011-06-271-0/+6
| |
| * add LAPDm code from osmocom-bb into libosmocoreHarald Welte2011-06-273-1/+2518
| |
| * logging: introduce library-internal logging categoriesHarald Welte2011-06-272-21/+93
| | | | | | | | | | | | | | | | | | | | We do this by using a trick: library-internal log categories use negative subsystem numbers, which are converted into positive array indexes at the time of logging. library-internal log categories need to be knwo at compile-time, while application-specified categories now are of unlimited number, as they are dynamically allocated.
| * import gsm0502_calc_paging_group() from openbscHarald Welte2011-06-262-1/+44
| |
| * add some utility functions for paging related calculation (TS 05.02)Harald Welte2011-06-261-7/+7
| |
| * add gsm48_number_of_paging_subchannels() functionHarald Welte2011-06-261-0/+13
| | | | | | | | (from openbsc's rsl_number_of_paging_subchannels)
| * merge process.[ch] with application.[ch]Harald Welte2011-06-264-74/+63Star
| |