Skip to content

Commit f01fed1

Browse files
committed
Fix build for Zephyr
1 parent 9006d3b commit f01fed1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

core/wlan_parser.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,20 @@
1111
#include <stdint.h>
1212
#include <endian.h>
1313

14+
#include "log.h"
15+
16+
#if defined(__ZEPHYR__)
17+
LOG_MODULE_REGISTER(UWIFI);
18+
#else
19+
static const char* LOG_TAG = "UWIFI";
20+
#endif
21+
1422
#include "platform.h"
1523
#include "wlan80211.h"
16-
#include "util.h"
1724
#include "channel.h"
18-
#include "wlan_util.h"
1925
#include "wlan_parser.h"
20-
#include "log.h"
26+
#include "wlan_util.h"
27+
#include "util.h"
2128

2229
void uwifi_parse_information_elements(unsigned char* buf, size_t bufLen, struct uwifi_packet *p)
2330
{

0 commit comments

Comments
 (0)