diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-12-06 13:09:48 +0100 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-12-06 13:09:48 +0100 |
commit | 961776a2f97cb6d2877939f1cd1a21545ce8c57d (patch) | |
tree | 73ed1152f04dc28d8b3d555b903c9f6fc19642ea | |
parent | de5758d307f6794b4126c6cf5251a5c5a8b9f193 (diff) |
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
-rw-r--r-- | src/input/ipaccess.c | 8 |
1 files 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, |