diff options
author | Oliver Smith <osmith@sysmocom.de> | 2019-09-25 10:39:40 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2019-10-11 10:46:02 +0000 |
commit | 5fee4d1ff5fac53bc21ed19abf2f84456486fa44 (patch) | |
tree | f8387d2bcff68f83320ff3da3f02c2e02a7ef439 /include/osmo-bts/scheduler_backend.h | |
parent | a4c54b531c05151f7074be952a22f1891aa0fcc6 (diff) |
log: set L1 SAPI log context
Add a new common L1 SAPI enum, to unify all the BTS specific SAPIs.
Translate to this enum, and set the context for uplink messages in
each BTS specific implementation.
Set the context for downlink messages in the common l1sap code, by
converting the osmo_phsap_prim back to the SAPI value (mostly looking at
chan_nr). The new functions for doing this conversion,
get_common_sapi_by_trx_prim() and get_common_sapi_ph_data(), are based
on the existing to_gsmtap() and gsmtap_ph_data() functions.
Note that we can't set the uplink SAPI context in the common code,
because then we can't set it as early as possible. In this patch, the
SAPI context is set for the PHYs where the SAPI is readily available.
With additional conversion from the RSL channel, the SAPI context could
be set for osmo-bts-trx in a follow up patch.
Related: OS#2356
Depends: (libosmocore) I814cb3328d99faca9220adb5a80ffb934f219d7d
Change-Id: I6b7bb2e1d61502b61214f854a4ec5cbb7267545b
Diffstat (limited to 'include/osmo-bts/scheduler_backend.h')
0 files changed, 0 insertions, 0 deletions