log4cpp is mandatory for GNU Radio
This commit is contained in:
+2
-5
@@ -94,11 +94,8 @@ if(NOT CPPUNIT_FOUND)
|
|||||||
message(FATAL_ERROR "CppUnit required to compile ieee802-11")
|
message(FATAL_ERROR "CppUnit required to compile ieee802-11")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (LOG4CPP_FOUND)
|
if(NOT LOG4CPP_FOUND)
|
||||||
message(STATUS "Found LOG4CPP: ${LOG4CPP_LIBRARIES}")
|
message(FATAL_ERROR "LOG4CPP required to compile ieee802-11")
|
||||||
add_definitions("-DGR_IEEE80211_LOG4CPP")
|
|
||||||
else ()
|
|
||||||
message(STATUS "LOG4CPP not found (not required).")
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|||||||
@@ -29,12 +29,7 @@
|
|||||||
#define MAX_ENCODED_BITS ((16 + 8 * MAX_PSDU_SIZE + 6) * 2 + 288)
|
#define MAX_ENCODED_BITS ((16 + 8 * MAX_PSDU_SIZE + 6) * 2 + 288)
|
||||||
|
|
||||||
#define dout d_debug && std::cout
|
#define dout d_debug && std::cout
|
||||||
|
|
||||||
#if defined(HAVE_LOG4CPP) && defined(ENABLE_GR_LOG) && defined(GR_IEEE80211_LOG4CPP)
|
|
||||||
#define mylog(msg) do { if(d_log) { GR_LOG_INFO(d_logger, msg) }} while(0);
|
#define mylog(msg) do { if(d_log) { GR_LOG_INFO(d_logger, msg) }} while(0);
|
||||||
#else
|
|
||||||
#define mylog(msg) do { d_log && std::cout << msg << std::endl; } while(0);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct mac_header {
|
struct mac_header {
|
||||||
//protocol version, type, subtype, to_ds, from_ds, ...
|
//protocol version, type, subtype, to_ds, from_ds, ...
|
||||||
|
|||||||
Reference in New Issue
Block a user