mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Added check for HAVE_DOT11 macro in RSNInformation header/source files.
This commit is contained in:
@@ -27,7 +27,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TINS_RSN_INFORMATION
|
||||
#include "config.h"
|
||||
|
||||
#if !defined(TINS_RSN_INFORMATION) && defined(HAVE_DOT11)
|
||||
#define TINS_RSN_INFORMATION
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -27,8 +27,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdexcept>
|
||||
#include "rsn_information.h"
|
||||
#ifdef HAVE_DOT11
|
||||
|
||||
#include <stdexcept>
|
||||
#include "exceptions.h"
|
||||
#include "pdu_option.h"
|
||||
#include "dot11/dot11_base.h"
|
||||
@@ -152,3 +154,5 @@ RSNInformation RSNInformation::from_option(const PDUOption<uint8_t, Dot11> &opt)
|
||||
return RSNInformation(opt.data_ptr(), opt.data_size());
|
||||
}
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
|
||||
Reference in New Issue
Block a user