<h3>Contribution description</h3>
<p>This PR adds a generic RX info structure for LoRa devices. This obsoletes the <code>netdev_sx127x_lora_packet_info_t</code> structure, so MAC layers are not dependent on driver specific headers.</p>

<h3>Testing procedure</h3>
<p>Test documentation with <code>make doc</code>.<br>
Test that <code>tests/pkg_semtech_loramac</code>, <code>examples/lorawan</code> and <code>tests/drivers_sx127x</code> compile with no errors.<br>
You should be able to see these RX info with <code>tests/drivers_sx127x</code></p>

<h3>Issues/PRs references</h3>
<p>Addresses <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="217249394" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/6797" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/6797/hovercard?comment_id=260303912&comment_type=review_comment" href="https://github.com/RIOT-OS/RIOT/pull/6797#discussion_r260303912">#6797 (comment)</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="410775094" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/11022" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/11022/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/11022">#11022</a></p>


<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/11144'>https://github.com/RIOT-OS/RIOT/pull/11144</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>netdev/lora: add netdev_lora_rx_info structure</li>
  <li>drivers/sx127x: use netdev_lora_rx_info structure for RX info</li>
  <li>pkg/semtech_loramac: use netdev_lora_rx_info structure for RX info</li>
  <li>drivers/sx127x: remove netdev_sx127x_lora_packet_info structure</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11144/files#diff-0">drivers/include/net/netdev/lora.h</a>
    (46)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11144/files#diff-1">drivers/sx127x/include/sx127x_netdev.h</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11144/files#diff-2">drivers/sx127x/sx127x_netdev.c</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11144/files#diff-3">pkg/semtech-loramac/contrib/semtech_loramac.c</a>
    (3)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11144.patch'>https://github.com/RIOT-OS/RIOT/pull/11144.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11144.diff'>https://github.com/RIOT-OS/RIOT/pull/11144.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11144">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AEn7YGIbT513gJGDup41qqikxrFpcrCkks5vUpVPgaJpZM4blur8">mute the thread</a>.<img src="https://github.com/notifications/beacon/AEn7YMUsqS2Nt9x038edndGTFuDFbS6bks5vUpVPgaJpZM4blur8.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/RIOT-OS/RIOT","title":"RIOT-OS/RIOT","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/RIOT-OS/RIOT"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"netdev/lora: add netdev_lora_rx_info structure for RX info (#11144)"}],"action":{"name":"View Pull Request","url":"https://github.com/RIOT-OS/RIOT/pull/11144"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11144",
"url": "https://github.com/RIOT-OS/RIOT/pull/11144",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>