Skip to content

Instantly share code, notes, and snippets.

View wojtess's full-sized avatar
💭
Do a flip

wojtess

💭
Do a flip
View GitHub Profile
@wojtess
wojtess / README.MD
Last active September 28, 2024 03:12
esp32 send any raw ieee802.11 packet/injection mode

ESP-IDF have exported function esp_err_t esp_wifi_80211_tx(wifi_interface_t ifx, const void *buffer, int len, bool en_sys_seq); It allows user to send raw ieee802.11 packets, it allows only certain types of packet.

To bypass check and send all packets you want you need to remove one call and replace it with mov instruction.

To use bypass copy "bypass.S" next to your "main.c", change CMakeLists.txt to something like this: idf_component_register(SRCS "main.c" "bypass.S" "other_c_files.c" INCLUDE_DIRS ".") and use esp_wifi_80211_tx_mod to send any packet you want using example code from bypass.c

@wojtess
wojtess / gist:21259881e213c2d0e25607efa5218de0
Created June 14, 2024 15:55
Tang nano 9k problem with UART under litex.
PROBLEM:
my tang nano 9k was having problems with uart under litex. It looks like problem with internal UART to USB converter.
pin 17 and 18(default used in `litex_boards/platforms/sipeed_tang_nano_9k.py` file) are connected to BL702,
so I assume that this is problem with proprietary software made my sipeed.
HOW TO FIX:
Change pins of UART and use external UART to USB module.
change `serial` pins in `_io` array.
to do this change lines from 34 to 39 to this:
```