about summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorZduniusz <31253374+Zduniusz@users.noreply.github.com>2023-04-15 04:42:28 +0200
committerGitHub <noreply@github.com>2023-04-15 12:42:28 +1000
commit7b7e77b71449f76c262dc247785c15c6220cf890 (patch)
treebde6c303640e78293faa4f306e1dc85f64d98fb7 /CMakeLists.txt
parentcf8c10c71a73f42b8ed113f823b4ae60db692d8a (diff)
downloadlibwifi-7b7e77b71449f76c262dc247785c15c6220cf890.tar.gz
libwifi-7b7e77b71449f76c262dc247785c15c6220cf890.tar.bz2
libwifi-7b7e77b71449f76c262dc247785c15c6220cf890.zip
Add support for ESP32 (#17)
* Add support for ESP32

* core: Check length of body before allocating

Frames with no body may be worth parsing, but should avoid the allocation
of zero-length bodies. Instead, we'll check if the body exists in the
parsed data and if that length is zero, return early with success.

Fixes #16

* misc: Run GitHub build actions on pull requests

* Add support for ESP32

---------

Co-authored-by: Zduniusz <Zduniusz@thisemaildoesnotexist.com>
Co-authored-by: Marc <marc@malloc.me>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e33a5fd..acedf75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -1,5 +1,17 @@
1cmake_minimum_required(VERSION 3.18) 1cmake_minimum_required(VERSION 3.18)
2 2
3if (DEFINED ESP_PLATFORM)
4 file(GLOB_RECURSE libwifi_src
5 "src/libwifi/*.h"
6 "src/libwifi/*.c"
7 )
8 idf_component_register(
9 SRCS ${libwifi_src}
10 INCLUDE_DIRS "src/"
11 )
12 return()
13endif()
14
3project(wifi DESCRIPTION "802.11 Parsing / Generation library" VERSION 0.1) 15project(wifi DESCRIPTION "802.11 Parsing / Generation library" VERSION 0.1)
4 16
5execute_process(COMMAND git rev-parse --abbrev-ref HEAD OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE GITBRANCH) 17execute_process(COMMAND git rev-parse --abbrev-ref HEAD OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE GITBRANCH)