From 961776a2f97cb6d2877939f1cd1a21545ce8c57d Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Thu, 6 Dec 2018 13:09:48 +0100 Subject: log IPA tags correctly Due to apparent copy-paste errors, wrong values were being logged for IPA tags in ipa_bts_id_resp(). Fixes: 4c57eef663e870247cb7a72130a50750317a44b9 Change-Id: I29a0401db0760219b9b9176709a88d589312261b Related: OS#3355 --- src/input/ipaccess.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index 8c02996..136aa79 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -603,15 +603,15 @@ ipa_bts_id_resp(const struct ipaccess_unit *dev, uint8_t *data, int len, int trx break; case IPAC_IDTAG_LOCATION1: if (dev->location1) - osmo_strlcpy(str, dev->swversion, sizeof(str)); + osmo_strlcpy(str, dev->location1, sizeof(str)); break; case IPAC_IDTAG_LOCATION2: if (dev->location2) - osmo_strlcpy(str, dev->swversion, sizeof(str)); + osmo_strlcpy(str, dev->location2, sizeof(str)); break; case IPAC_IDTAG_EQUIPVERS: if (dev->equipvers) - osmo_strlcpy(str, dev->swversion, sizeof(str)); + osmo_strlcpy(str, dev->equipvers, sizeof(str)); break; case IPAC_IDTAG_SWVERSION: if (dev->swversion) @@ -627,7 +627,7 @@ ipa_bts_id_resp(const struct ipaccess_unit *dev, uint8_t *data, int len, int trx break; case IPAC_IDTAG_SERNR: if (dev->serno) - osmo_strlcpy(str, dev->swversion, sizeof(str)); + osmo_strlcpy(str, dev->serno, sizeof(str)); break; default: LOGP(DLINP, LOGL_NOTICE, -- cgit v1.2.3