aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/l1_if.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-05-10 16:01:56 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-27 07:55:41 +0000
commit72993079edf3fa3285c4c50ef92bd6517b933d36 (patch)
tree918d842917ab460ac00d4f989241ad296dddf532 /src/osmo-bts-sysmo/l1_if.c
parente0fb3ae52d747b26b6487ec67c79eceaf37a125c (diff)
Implement basic Get Attribute responder
Add 3GPP TS 52.021 ยง8.11.2 Get Attribute Response handling: * report OsmoBTS version * report sysmoBTS sub-model * report OsmoBTS variant Requires I7ecb0c4339530d3a8354a2f94b34063dda87e030 in OpenBSC. Change-Id: I09f95ed995fab5def9dc6e8cc201012fba4db28d Related: OS#1614
Diffstat (limited to 'src/osmo-bts-sysmo/l1_if.c')
-rw-r--r--src/osmo-bts-sysmo/l1_if.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 85fa3d75..ea7fc93b 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -1839,6 +1839,7 @@ static void fill_trx_power_params(struct gsm_bts_trx *trx,
int bts_model_phy_link_open(struct phy_link *plink)
{
struct phy_instance *pinst = phy_instance_by_num(plink, 0);
+ struct femtol1_hdl *hdl;
struct gsm_bts *bts;
OSMO_ASSERT(pinst);
@@ -1864,6 +1865,9 @@ int bts_model_phy_link_open(struct phy_link *plink)
bts->c0->nominal_power = rc;
}
+ hdl = pinst->u.sysmobts.hdl;
+ osmo_strlcpy(bts->sub_model, sysmobts_model(hdl->hw_info.model_nr, hdl->hw_info.trx_nr), sizeof(bts->sub_model));
+
phy_link_state_set(plink, PHY_LINK_CONNECTED);
return 0;