<p>Pau Espin Pedrol <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/11680">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Neels Hofmeyr: Looks good to me, approved
  Max: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">abis_nm: Allow sending and receiving Get Attributes (Response) against nanoBTS<br><br>* Allow sending Get Attributes message in abis_nm_get_attr.<br>* Don't try to decode Get Attribute Response Info for nanoBTS, since it<br>  uses a different formatting than the one defined in specs.<br><br>Related: OS#3624<br>Change-Id: I53d01e73791cf5450aa34b1ac8f051730e3a70f9<br>---<br>M src/osmo-bsc/abis_nm.c<br>1 file changed, 5 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c</span><br><span>index 828d567..76fba59 100644</span><br><span>--- a/src/osmo-bsc/abis_nm.c</span><br><span>+++ b/src/osmo-bsc/abis_nm.c</span><br><span>@@ -566,7 +566,10 @@</span><br><span> </span><br><span>  abis_nm_tlv_parse(&tp, bts, foh->data, oh->length-sizeof(*foh));</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-  return parse_attr_resp_info(bts, trx, foh, &tp);</span><br><span style="color: hsl(120, 100%, 40%);">+  /* nanoBTS doesn't send Get Attribute Response Info, uses its own format */</span><br><span style="color: hsl(120, 100%, 40%);">+       if (bts->type != GSM_BTS_TYPE_NANOBTS)</span><br><span style="color: hsl(120, 100%, 40%);">+             return parse_attr_resp_info(bts, trx, foh, &tp);</span><br><span style="color: hsl(120, 100%, 40%);">+  return 0;</span><br><span> }</span><br><span> </span><br><span> /* 3GPP TS 52.021 ยง6.2.5 */</span><br><span>@@ -1641,7 +1644,7 @@</span><br><span>   struct abis_om_hdr *oh;</span><br><span>      struct msgb *msg;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   if (bts->type != GSM_BTS_TYPE_OSMOBTS) {</span><br><span style="color: hsl(120, 100%, 40%);">+   if (bts->type != GSM_BTS_TYPE_OSMOBTS && bts->type != GSM_BTS_TYPE_NANOBTS) {</span><br><span>          LOGPC(DNM, LOGL_NOTICE, "Getting attributes from BTS%d type %s is not supported.\n",</span><br><span>                     bts->nr, btstype2str(bts->type));</span><br><span>                return -EINVAL;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11680">change 11680</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11680"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I53d01e73791cf5450aa34b1ac8f051730e3a70f9 </div>
<div style="display:none"> Gerrit-Change-Number: 11680 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>