aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-octphy/l1_oml.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-05-29 16:23:02 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-29 21:13:45 +0000
commit9eeb0b1a136fc8c24a86cb4d832c264674c10db0 (patch)
tree00e96234634355c26b8b2c97156ba7275f6d0d20 /src/osmo-bts-octphy/l1_oml.c
parenta8bf666a099ecc7bb8436f31b7f30e246ef50015 (diff)
Add version to phy_instance
Diffstat (limited to 'src/osmo-bts-octphy/l1_oml.c')
-rw-r--r--src/osmo-bts-octphy/l1_oml.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osmo-bts-octphy/l1_oml.c b/src/osmo-bts-octphy/l1_oml.c
index 4652e103..ccef2314 100644
--- a/src/osmo-bts-octphy/l1_oml.c
+++ b/src/osmo-bts-octphy/l1_oml.c
@@ -1140,14 +1140,14 @@ int l1if_check_app_sys_version(struct gsm_bts_trx *trx)
LOGP(DL1C, LOGL_INFO, "Tx APP-INFO-SYSTEM.req\n");
- return l1if_req_compl(fl1h, msg, app_info_sys_compl_cb, 0);
+ return l1if_req_compl(fl1h, msg, app_info_sys_compl_cb, pinst);
}
static int app_info_compl_cb(struct octphy_hdl *fl1h, struct msgb *resp,
void *data)
{
char ver_hdr[32];
-
+ struct phy_instance *pinst = data;
tOCTVC1_MAIN_MSG_APPLICATION_INFO_RSP *air =
(tOCTVC1_MAIN_MSG_APPLICATION_INFO_RSP *) resp->l2h;
@@ -1171,6 +1171,7 @@ static int app_info_compl_cb(struct octphy_hdl *fl1h, struct msgb *resp,
talloc_replace(fl1h->info.app.name, fl1h, air->szName);
talloc_replace(fl1h->info.app.description, fl1h, air->szDescription);
talloc_replace(fl1h->info.app.version, fl1h, air->szVersion);
+ osmo_strlcpy(pinst->version, ver_hdr, sizeof(pinst->version));
/* in a completion call-back, we take msgb ownership and must
* release it before returning */