nimble/ll: Add 'ignored' flag to ble_hdr flags
This flag will be used by scanner to indicate that PDU is not valid and
shall be simply ignored. It's pretty much the same as failed CRC, but it
should be easier to debug if we have separate flags for both cases.
@@ -82,6 +82,7 @@ struct ble_mbuf_hdr_rxinfo
};
/* Flag definitions for rxinfo */
+#define BLE_MBUF_HDR_F_IGNORED (0x8000)
#define BLE_MBUF_HDR_F_SCAN_REQ_TXD (0x4000)
#define BLE_MBUF_HDR_F_INITA_RESOLVED (0x2000)
#define BLE_MBUF_HDR_F_EXT_ADV_SEC (0x1000)
@@ -115,6 +116,9 @@ struct ble_mbuf_hdr
uint32_t rem_usecs;
};
+#define BLE_MBUF_HDR_IGNORED(hdr) \
+ (!!((hdr)->rxinfo.flags & BLE_MBUF_HDR_F_IGNORED))
+
#define BLE_MBUF_HDR_SCAN_REQ_TXD(hdr) \
(!!((hdr)->rxinfo.flags & BLE_MBUF_HDR_F_SCAN_REQ_TXD))
