From 30445f1e975b275c2246f477ba62db986c17abec Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Mon, 21 Sep 2015 21:06:57 -0700 Subject: [PATCH] Guard 802.11 parsing code on PPI around HAVE_DOT11 --- src/ppi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ppi.cpp b/src/ppi.cpp index 967db71..9c63b20 100644 --- a/src/ppi.cpp +++ b/src/ppi.cpp @@ -100,6 +100,7 @@ void PPI::write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU *) { } void PPI::parse_80211(const uint8_t* buffer, uint32_t total_sz) { + #ifdef HAVE_DOT11 if (_data.size() >= 13) { // Is FCS-at-end on? if ((_data[12] & 1) == 1) { @@ -111,6 +112,7 @@ void PPI::parse_80211(const uint8_t* buffer, uint32_t total_sz) { } } inner_pdu(Dot11::from_bytes(buffer, total_sz)); + #endif // HAVE_DOT11 } } // Tins