Harald Welte
04190eabd3
lapdm: Introduce LAPDM_MODE_{BTS,MS} to run on both sides
...
We also introduce some related functions like
lapdm_{entity,channel}_set_mode()
lapdm_{entity,channel}_reset()
This is all in preparation for the Osmo-BTS Work.
2011-06-24 12:23:17 +02:00
Harald Welte
68d03b86f4
lapdm: implement RSL CHAN RQD generation from PH-RA.ind
2011-06-24 00:42:01 +02:00
Harald Welte
bee8a01b8d
lapdm: use msgb_tlv_put instead of manual equivalent
2011-06-24 00:13:17 +02:00
Harald Welte
88f5d463d2
fix some spillage from recent conversion
2011-06-24 00:04:50 +02:00
Harald Welte
3008f31074
lapdm: remove dependency to osmocom_data.h
2011-06-24 00:04:37 +02:00
Harald Welte
e4ea01041e
lapdm: remove get_rsl_name() and use libosmogsm:gsm_rsl_name() instead
2011-06-23 23:57:34 +02:00
Harald Welte
3538c38835
further decouple lapdm code from osmocom_ms and l1ctl
...
we introduce a new primitive layer betwen PH and DL, enabling the
use of the LAPDm code in applications that are not based on L1CTL
2011-06-23 23:55:20 +02:00
Harald Welte
5d65fcba6c
add l1ctl_proto.h #includes to lots of files
...
this is apparently a result of no longer including it indirectly via lapdm.h
2011-06-22 23:08:55 +02:00
Harald Welte
f36e4fe86c
remove l1ctl data structure form l2_ph_chan_conf()
...
This brings us one step closer to de-couple LAPDm from L1CTL
2011-06-22 23:04:20 +02:00
Harald Welte
4d5f74375a
remove l1ctl data structure from l2_ph_data_ind()
2011-06-22 23:01:18 +02:00
Harald Welte
f47de03fe1
lapdm.c: remove unneeded header file #includes
2011-06-21 19:51:01 +02:00
Harald Welte
7ad100b94e
layer23: make LAPDm code mostly independent of 'struct osmocom_ms'
...
This is one step in the direction of re-using the lapdm code in osmo-bts.
2011-06-21 19:51:01 +02:00
Harald Welte
ddb20b8b4e
remove osmocom_ms reference from lapdm_init()
...
... yet another step in making lapdm code independent of osmocom_ms
2011-06-21 19:48:20 +02:00
Harald Welte
a2f615e522
remove 'osmocom_ms' from struct lapdm_enetity
...
and replace it with more general l1_ctx nad l3_ctx.
2011-06-21 19:47:34 +02:00
Wolfram Sang
5bbea93772
board: mtk: increase RAM sizes in linker script
...
gcc3 (and some gcc4) produce code which does not fit into the
0x5000-sized RAM sections. Extend them to 0x6000 for now, so it will
build correctly again. The created binary (gcc3) has been successfully
tested on my G2.
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2011-05-30 21:51:58 +02:00
Wolfram Sang
fc0a28f524
mtk: uart: remove forgotten calypso-include
...
Dunno how that survived...
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
2011-05-30 21:51:58 +02:00
Andreas.Eversberg
58ac7e0e98
[layer23] Adding Quadband support and GSM 4x0 support
...
This makes it possible to use GSM 850 and PCS 1900 bands, as used in the
US. The support relies on the phone hardware.
Each band (900, DCS, 850, PCS, 480 and 450) can be enabled and
disabled individually for each setting.
2011-05-29 19:51:54 +02:00
Sylvain Munaut
16ec2358a0
fw/rffe/compal: Add support for 850 band
...
The HW switch supports it.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-05-29 19:51:54 +02:00
Sylvain Munaut
706c3b0db7
fw/trf6151: Use a #define to enable/disable out-of-spec warnings
...
We also disable them by default because:
- It can operate fine out of spec
- Some phone will actually do it (like using the DCS port for PCS)
- It's verbose for nothing for most people anyway
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-05-29 19:51:54 +02:00
Sylvain Munaut
4684c75a66
fw/trf6151: Better PLL settings routines
...
* We actually support TX 850/1900 now
* We try to find the better settings for a given frequency,
no matter if it's in spec or not ...
(for e.g. TXin in DCS downlink is better done with PCS config)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-05-29 19:51:54 +02:00
Sylvain Munaut
a78316c831
fw/rffe: Add function to query RF wiring
...
Depending on the chipset and the HW, not all ports are connected
and we need to know what we can use when we have the choice ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-05-29 19:51:54 +02:00
Sylvain Munaut
36c2f7f420
Merge commit '3710e462f85824cd9d84b3f95e6b2ea694119ff9'
2011-05-29 19:49:53 +02:00
Sylvain Munaut
3710e462f8
gsmtap_util: Remove msg_free from the wq call back
...
write_queue already frees the message after the callback is called.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-05-29 19:48:15 +02:00
Harald Welte
41d84e08bb
Makefile: disable the check for sys/socket.h in the libosmocore target build
2011-05-29 17:01:26 +02:00
Sylvain Munaut
2743496f8a
src/Makefile: The configure.in was renamed configure.ac -> update Makefile
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-05-29 15:55:24 +02:00
Sylvain Munaut
da37aa275e
Merge commit 'f2699501bc20a1dc5ee965ca1cbb8f18a3471ff8'
2011-05-29 15:53:59 +02:00
Sylvain Munaut
f2699501bc
gsm/sysinfo: Fix rsl2sitype array size
...
0xff is the maximum value ... so there is 256 elements.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-05-29 15:39:48 +02:00
Harald Welte
8c6be75d4f
gsm/sysinfo: don't include netinet/in.h
2011-05-29 15:37:49 +02:00
Harald Welte
cd623ebb56
bitvec: add missing stdint.h
2011-05-29 15:37:38 +02:00
Harald Welte
08de66dd5e
socket: remove unused IPv4 related header includes
2011-05-29 15:26:48 +02:00
Harald Welte
783730eae1
Merge commit '4d3a7b124e08a597d5f01fb2a71f3a4677a360a9'
2011-05-27 18:17:05 +02:00
Harald Welte
4d3a7b124e
socket: Skip ifa's without ifa->ifa_addr
...
Apparently getifaddrs() returns ifa's without an ifa_addr set.
2011-05-24 21:46:07 +02:00
Harald Welte
11c7193ad8
Import abis_nm_{chcomb4pchan,pchan4chcomb}() from openbsc
2011-05-24 17:22:55 +02:00
Alexander Huemer
7d4e2d7a84
libosmocore: rename configure.in -> configure.ac
...
rename autoconf input file to align with osmocom-bb host applications,
and because that suffix is preferred nowadays.
2011-05-24 17:19:35 +02:00
Alexander Huemer
3d79f53284
libosmocore: add missing AC_LANG_SOURCE for current autoconf
...
autoconf >=2.68 demands the body of an AC_COMPILE_IFELSE to be wrapped in
an AC_LANG_SOURCE macro, otherwise outputs annoying warnings on the
invocation of `autoreconf -i`. this patch follows that demand.
2011-05-24 17:19:35 +02:00
Harald Welte
b5503136fa
Import sytem information related definitions + code from openbsc
2011-05-24 15:01:53 +02:00
Harald Welte
d76345aefa
Merge commit '3036612d59a5c8d97b2086a5e7817613f45948ef'
2011-05-23 22:17:26 +02:00
Holger Hans Peter Freyther
3036612d59
abis_nm: Mark the structs as extern to avoid compiler warning
...
warning: array ‘abis_nm_obj_class_names’ assumed to have one element
2011-05-23 21:41:34 +02:00
Harald Welte
ea4b12aa5d
abis_nm: remove abis_nm_obj_class_name / abis_nm_adm_state_name
...
and export the underlying raw value_string arrays instead:
abis_nm_obj_class_names / abis_nm_adm_state_names.
This permits the caller to use get_string_value() as well as
get_value_string().
2011-05-23 20:41:31 +02:00
Harald Welte
61dc63e354
rename abis_nm_adm_name() to abis_nm_adm_state_name()
2011-05-23 20:30:17 +02:00
Harald Welte
f7a1bcce0c
abis_nm: import definitions and common code on A-bis OML from OpenBSC
2011-05-22 22:45:16 +02:00
Harald Welte
4185fa5d9b
libosmogsm: add ipaccess related header file
2011-05-22 21:57:15 +02:00
Harald Welte
68b1574257
socket: use listen() and SO_REUSEADDR, new osmo_sock_init_ofd() function
...
osmo_sock_init_ofd() is a wrapper around osmo_sock_init() which will
take care of initializing and registering a 'struct osmo_fd' for the
newly-created socket.
2011-05-22 21:47:29 +02:00
Harald Welte
8265939c5e
remove debug printf from socket.c
2011-05-22 20:30:18 +02:00
Harald Welte
13692a6bd3
gsmtap: deal with apps that call gsmtap_send*() with NULL gsmtap_inst
2011-05-22 20:06:11 +02:00
Harald Welte
b62b04bbf3
vty: print actual application name rather than always OpenBSC on connect
2011-05-22 19:15:07 +02:00
Harald Welte
308f9e506e
layer23: update to new GSMTAP API in libosmocore >= 0.3.1
2011-05-22 12:36:55 +02:00
Harald Welte
8226b8eae9
Merge commit 'e476442cf0e84c65565ace545f5b73602b5f0ffc'
2011-05-22 12:26:42 +02:00
Harald Welte
e476442cf0
GSMTAP/socket code: Check for sys/socket.h and conditionally compile
2011-05-22 12:25:57 +02:00
Harald Welte
393ddf9e79
Merge commit '33cb71ac91fb870702dbb71595dba4a554001e3c'
2011-05-22 12:07:37 +02:00