From 688a851f25dbfe31253ed0c302162502d58bd2a3 Mon Sep 17 00:00:00 2001 From: Gulshan Singh Date: Sun, 19 Feb 2023 10:01:55 -0800 Subject: [PATCH] Set CRC and payload decrypted flags PCAP packet header --- lib/src/pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/pcap.c b/lib/src/pcap.c index 1a1e8ec..8bd145e 100644 --- a/lib/src/pcap.c +++ b/lib/src/pcap.c @@ -176,7 +176,7 @@ btbb_pcap_append_packet(btbb_pcap_handle * h, const uint64_t ns, const btbb_packet *pkt) { if (h && h->pcap_file) { - uint16_t flags = BREDR_DEWHITENED | BREDR_SIGPOWER_VALID | + uint16_t flags = BREDR_DEWHITENED | BREDR_SIGPOWER_VALID | BREDR_CRC_CHECKED | BREDR_CRC_VALID | BREDR_PAYLOAD_DECRYPTED | ((noisedbm < sigdbm) ? BREDR_NOISEPOWER_VALID : 0) | ((reflap != LAP_ANY) ? BREDR_REFLAP_VALID : 0) | ((refuap != UAP_ANY) ? BREDR_REFUAP_VALID : 0);