[riot-notifications] [RIOT-OS/RIOT] sys/net/gnrc: fix in-band signaling of no RSSI/LQI (#15754)

benpicco notifications at github.com
Tue Jan 12 18:53:56 CET 2021


@benpicco commented on this pull request.



> @@ -46,6 +46,19 @@ extern "C" {
  */
 #define GNRC_NETIF_HDR_L2ADDR_PRINT_LEN (GNRC_NETIF_HDR_L2ADDR_MAX_LEN * 3)
 
+/**
+ * @brief   Special value to indicate that no RSSI value is present
+ *
+ * See @ref gnrc_netif_hdr_t::rssi
+ */
+#define GNRC_NETIF_HDR_NO_RSSI          (INT16_MIN)
+/**
+ * @brief   Special value to indicate that no LQI value is present
+ *
+ * See @ref gnrc_netif_hdr_t::lqi
+ */
+#define GNRC_NETIF_HDR_NO_LQI           (INT8_MIN)

This gives `0x80`/127 which is a reasonable LQI value.
255 is the best possible LQI, a LQI of 0 would be worst, not sure if such packets could still be observed. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15754#pullrequestreview-566526750
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210112/a521891f/attachment.htm>


More information about the notifications mailing list