Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set linker parameter in CMakeLists file to allow building using idf.py #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
(Maybe) Port of https://github.com/spacehuhn/esp8266_deauther to the ESP32,
based on the `esp_wifi_80211_tx` function described in https://github.com/Jeija/esp32-80211-tx

# How does this work
In compiled [ESP32 WiFi Stack libraries](https://github.com/espressif/esp32-wifi-lib) there is a function `ieee80211_raw_frame_sanity_check` that blocks some types of raw 802.11 frames from being sent. Using `zmuldefs` linker flag during compilation (see `main/CMakeLists.txt`) this function from WiFi Stack librabries can be overriden to always return `0` which leads to unrestricted raw frame transmission.

# Building

Install [esp-idf](https://github.com/espressif/esp-idf). This project is built and tested with
commit 5ef1b390026270503634ac3ec9f1ec2e364e23b2.

`make` #Project has custom linker flags, run this instead of `idf.py build`
Build project as usual using `idf.py build`.

Built with v4.1-dev-763-ga45e99853

# Flashing

`make flash`
`idf.py flash`
1 change: 1 addition & 0 deletions main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ idf_component_register(
INCLUDE_DIRS
"."
)
target_link_libraries(${COMPONENT_LIB} -Wl,-zmuldefs)