├── .gitignore ├── LICENSE ├── Makefile ├── README.rst ├── main ├── Kconfig.projbuild ├── component.mk ├── ieee80211.h └── main.cpp └── sdkconfig /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | sdkconfig.old 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # This is a project Makefile. It is assumed the directory this Makefile resides in is a 3 | # project subdirectory. 4 | # 5 | 6 | PROJECT_NAME := deauth-monitor 7 | 8 | include $(IDF_PATH)/make/project.mk 9 | 10 | -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | esp32-deauth-monitor 2 | ==================== 3 | 4 | This is a firmware application for the Espressif ESP32. 5 | 6 | It will monitor deauthentication packets sent to and from the AP SSID you 7 | specify in `Deauth Monitor -> WiFi SSID` using `make menuconfig`. 8 | 9 | The code is licensed under the Apache License 2.0 as described in the file 10 | LICENSE. 11 | 12 | -------------------------------------------------------------------------------- /main/Kconfig.projbuild: -------------------------------------------------------------------------------- 1 | menu "Deauth Monitor" 2 | 3 | config WIFI_SSID 4 | string "WiFi SSID" 5 | default "myssid" 6 | help 7 | SSID (network name) to monitor deauth packets for. 8 | 9 | endmenu 10 | 11 | -------------------------------------------------------------------------------- /main/component.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Main component makefile. 3 | # 4 | # This Makefile can be left empty. By default, it will take the sources in the 5 | # src/ directory, compile them and link them into lib(subdirectory_name).a 6 | # in the build directory. This behaviour is entirely configurable, 7 | # please read the ESP-IDF documents if you need to do this. 8 | # 9 | -------------------------------------------------------------------------------- /main/ieee80211.h: -------------------------------------------------------------------------------- 1 | /* IEEE 802.11 Definitions 2 | * 3 | * Inspired and with some details copied from the Linux kernel. 4 | * https://github.com/torvalds/linux/blob/master/include/linux/ieee80211.h 5 | * 6 | * Copyright (C) 2017 Mikkel Kroman 7 | */ 8 | 9 | #ifndef IEEE80211_H 10 | #define IEEE80211_H 11 | 12 | #include 13 | 14 | /* 15 | * DS bit usage 16 | * 17 | * TA = transmitter address 18 | * RA = receiver address 19 | * DA = destination address 20 | * SA = source address 21 | * 22 | * ToDS FromDS A1(RA) A2(TA) A3 A4 Use 23 | * ----------------------------------------------------------------- 24 | * 0 0 DA SA BSSID - IBSS/DLS 25 | * 0 1 DA BSSID SA - AP -> STA 26 | * 1 0 BSSID SA DA - AP <- STA 27 | * 1 1 RA TA DA SA unspecified (WDS) 28 | */ 29 | 30 | #define IEEE80211_FCTL_FTYPE 0x000c 31 | #define IEEE80211_FCTL_STYPE 0x00f0 32 | #define IEEE80211_FCTL_TODS 0x0100 33 | #define IEEE80211_FCTL_FROMDS 0x0200 34 | 35 | #define IEEE80211_FTYPE_MGMT 0x0000 36 | 37 | #define IEEE80211_STYPE_ASSOC_REQ 0x0000 38 | #define IEEE80211_STYPE_ASSOC_RESP 0x0010 39 | #define IEEE80211_STYPE_REASSOC_REQ 0x0020 40 | #define IEEE80211_STYPE_REASSOC_RESP 0x0030 41 | #define IEEE80211_STYPE_PROBE_REQ 0x0040 42 | #define IEEE80211_STYPE_PROBE_RESP 0x0050 43 | #define IEEE80211_STYPE_BEACON 0x0080 44 | #define IEEE80211_STYPE_ATIM 0x0090 45 | #define IEEE80211_STYPE_DISASSOC 0x00A0 46 | #define IEEE80211_STYPE_AUTH 0x00B0 47 | #define IEEE80211_STYPE_DEAUTH 0x00C0 48 | #define IEEE80211_STYPE_ACTION 0x00D0 49 | 50 | namespace ieee80211 { 51 | 52 | class Header { 53 | public: 54 | /** 55 | * @brief checks if IEEE80211_FTYPE_MGMT and IEEE80211_STYPE_DEAUTH is set 56 | */ 57 | inline int is_deauth() 58 | { 59 | return (frame_control & (IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == 60 | (IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_DEAUTH); 61 | } 62 | 63 | /** 64 | * @brief check if IEEE80211_FCTL_FROMDS is set 65 | */ 66 | inline bool has_fromds() 67 | { 68 | return (frame_control & IEEE80211_FCTL_FROMDS) != 0; 69 | } 70 | 71 | /** 72 | * @brief check if IEEE80211_FCTL_TODS is set 73 | */ 74 | inline bool has_tods() 75 | { 76 | return (frame_control & IEEE80211_FCTL_TODS) != 0; 77 | } 78 | 79 | public: 80 | uint16_t frame_control; 81 | uint16_t duration_id; 82 | uint8_t addr1[6]; 83 | uint8_t addr2[6]; 84 | uint8_t addr3[6]; 85 | uint16_t seq_ctrl; 86 | uint8_t addr4[6]; 87 | union { 88 | struct { 89 | uint16_t reason_code; 90 | } __attribute__((packed)) deauth; 91 | } u; 92 | } __attribute__((packed, aligned(2))); 93 | 94 | } 95 | 96 | #endif 97 | -------------------------------------------------------------------------------- /main/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "freertos/FreeRTOS.h" 3 | #include 4 | #include "esp_wifi.h" 5 | #include "esp_system.h" 6 | #include "esp_event.h" 7 | #include "esp_event_loop.h" 8 | #include "nvs_flash.h" 9 | #include 10 | #include 11 | #include "driver/gpio.h" 12 | #include "ieee80211.h" 13 | 14 | static const char *TAG = "deauth-monitor"; 15 | 16 | esp_err_t event_handler(void *ctx, system_event_t *event) 17 | { 18 | return ESP_OK; 19 | } 20 | 21 | int8_t wifi_get_target_channel() { 22 | wifi_scan_config_t config = { 23 | .ssid = (uint8_t*)CONFIG_WIFI_SSID, 24 | .bssid = 0, 25 | .channel = 0, 26 | .show_hidden = true, 27 | .scan_type = WIFI_SCAN_TYPE_ACTIVE, 28 | .scan_time = { .active = { .min = 100, .max = 300 } }, 29 | }; 30 | 31 | ESP_ERROR_CHECK( esp_wifi_scan_start(&config, true) ); 32 | 33 | uint16_t ap_num = 5; 34 | wifi_ap_record_t wifi_records[ap_num]; 35 | 36 | ESP_ERROR_CHECK( esp_wifi_scan_get_ap_records(&ap_num, wifi_records) ); 37 | 38 | // If ap_num is non-zero, we found a matching SSID 39 | if (ap_num > 0) { 40 | // Return the channel for the first result 41 | return wifi_records[0].primary; 42 | } 43 | 44 | return -1; 45 | } 46 | 47 | void wifi_rf_cb(void *buf, wifi_promiscuous_pkt_type_t type) { 48 | wifi_promiscuous_pkt_t* pkt = reinterpret_cast(buf); 49 | ieee80211::Header* hdr = reinterpret_cast(pkt->payload); 50 | 51 | if (type != WIFI_PKT_MGMT) 52 | { 53 | ESP_LOGE(TAG, "type=%d - expected WIFI_PKT_MGMT", type); 54 | } 55 | 56 | if (hdr->is_deauth()) 57 | { 58 | 59 | bool tods, fromds; 60 | 61 | tods = hdr->has_tods(); 62 | fromds = hdr->has_fromds(); 63 | 64 | if (!tods && !fromds) 65 | { 66 | // IBSS/DLS 67 | ESP_LOGI(TAG, "DEAUTH (IBSS/DLS): reason=%d addr1=" MACSTR " addr2=" MACSTR " addr3=" MACSTR " addr4=" MACSTR, 68 | hdr->u.deauth.reason_code, MAC2STR(hdr->addr1), MAC2STR(hdr->addr2) , MAC2STR(hdr->addr3), 69 | MAC2STR(hdr->addr4)); 70 | } 71 | else if (!tods && fromds) 72 | { 73 | // AP -> STA 74 | ESP_LOGI(TAG, "DEAUTH (AP -> STA): reason=%d destination=" MACSTR " bssid=" MACSTR " sender=" MACSTR, 75 | hdr->u.deauth.reason_code, MAC2STR(hdr->addr1), MAC2STR(hdr->addr2) , MAC2STR(hdr->addr3)); 76 | } 77 | else if (tods && !fromds) 78 | { 79 | // AP <- STA 80 | ESP_LOGI(TAG, "DEAUTH (AP <- STA): reason=%d destination=" MACSTR " bssid=" MACSTR " sender=" MACSTR, 81 | hdr->u.deauth.reason_code, MAC2STR(hdr->addr3), MAC2STR(hdr->addr1) , MAC2STR(hdr->addr2)); 82 | } 83 | else if(tods && fromds) 84 | { 85 | // unspecified (WDS) 86 | ESP_LOGI(TAG, "DEAUTH (unspecified (WDS)): reason=%d addr1=" MACSTR " addr2=" MACSTR " addr3=" MACSTR " addr4=" MACSTR, 87 | hdr->u.deauth.reason_code, MAC2STR(hdr->addr1), MAC2STR(hdr->addr2) , MAC2STR(hdr->addr3), 88 | MAC2STR(hdr->addr4)); 89 | } 90 | } 91 | } 92 | 93 | void init_promiscuous_wifi(uint8_t target_channel) { 94 | wifi_promiscuous_filter_t filter = { 95 | .filter_mask = WIFI_PROMIS_FILTER_MASK_MGMT 96 | }; 97 | 98 | ESP_ERROR_CHECK( esp_wifi_set_promiscuous_filter(&filter) ); 99 | ESP_ERROR_CHECK( esp_wifi_set_channel(target_channel, WIFI_SECOND_CHAN_NONE) ); 100 | ESP_ERROR_CHECK( esp_wifi_set_promiscuous(true) ); 101 | ESP_ERROR_CHECK( esp_wifi_set_promiscuous_rx_cb(wifi_rf_cb) ); 102 | } 103 | 104 | extern "C" void app_main(void) 105 | { 106 | wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT(); 107 | uint32_t cpu_frequency_hz = rtc_clk_cpu_freq_value(rtc_clk_cpu_freq_get()); 108 | 109 | ESP_LOGI(TAG, "CPU frequency: %d MHz", cpu_frequency_hz / 1000000); 110 | 111 | nvs_flash_init(); 112 | tcpip_adapter_init(); 113 | 114 | ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) ); 115 | ESP_ERROR_CHECK( esp_wifi_init(&cfg) ); 116 | ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) ); 117 | ESP_ERROR_CHECK( esp_wifi_start() ); 118 | 119 | int8_t target_channel = -1; 120 | 121 | // Find the WiFi channel for the target SSID 122 | while ((target_channel = wifi_get_target_channel()) == -1) { 123 | ESP_LOGW(TAG, "Could not find target SSID %s - trying again", CONFIG_WIFI_SSID); 124 | vTaskDelay(1000 / portTICK_PERIOD_MS); 125 | } 126 | 127 | ESP_LOGI(TAG, "Target monitoring channel: %d", target_channel); 128 | 129 | init_promiscuous_wifi(target_channel); 130 | } 131 | 132 | -------------------------------------------------------------------------------- /sdkconfig: -------------------------------------------------------------------------------- 1 | # 2 | # Automatically generated file; DO NOT EDIT. 3 | # Espressif IoT Development Framework Configuration 4 | # 5 | 6 | # 7 | # SDK tool configuration 8 | # 9 | CONFIG_TOOLPREFIX="xtensa-esp32-elf-" 10 | CONFIG_PYTHON="python" 11 | 12 | # 13 | # Bootloader config 14 | # 15 | # CONFIG_LOG_BOOTLOADER_LEVEL_NONE is not set 16 | # CONFIG_LOG_BOOTLOADER_LEVEL_ERROR is not set 17 | # CONFIG_LOG_BOOTLOADER_LEVEL_WARN is not set 18 | CONFIG_LOG_BOOTLOADER_LEVEL_INFO=y 19 | # CONFIG_LOG_BOOTLOADER_LEVEL_DEBUG is not set 20 | # CONFIG_LOG_BOOTLOADER_LEVEL_VERBOSE is not set 21 | CONFIG_LOG_BOOTLOADER_LEVEL=3 22 | 23 | # 24 | # Security features 25 | # 26 | # CONFIG_SECURE_BOOT_ENABLED is not set 27 | # CONFIG_FLASH_ENCRYPTION_ENABLED is not set 28 | 29 | # 30 | # Serial flasher config 31 | # 32 | CONFIG_ESPTOOLPY_PORT="/dev/ttyUSB0" 33 | CONFIG_ESPTOOLPY_BAUD_115200B=y 34 | # CONFIG_ESPTOOLPY_BAUD_230400B is not set 35 | # CONFIG_ESPTOOLPY_BAUD_921600B is not set 36 | # CONFIG_ESPTOOLPY_BAUD_2MB is not set 37 | # CONFIG_ESPTOOLPY_BAUD_OTHER is not set 38 | CONFIG_ESPTOOLPY_BAUD_OTHER_VAL=115200 39 | CONFIG_ESPTOOLPY_BAUD=115200 40 | CONFIG_ESPTOOLPY_COMPRESSED=y 41 | # CONFIG_FLASHMODE_QIO is not set 42 | # CONFIG_FLASHMODE_QOUT is not set 43 | CONFIG_FLASHMODE_DIO=y 44 | # CONFIG_FLASHMODE_DOUT is not set 45 | CONFIG_ESPTOOLPY_FLASHMODE="dio" 46 | # CONFIG_ESPTOOLPY_FLASHFREQ_80M is not set 47 | CONFIG_ESPTOOLPY_FLASHFREQ_40M=y 48 | # CONFIG_ESPTOOLPY_FLASHFREQ_26M is not set 49 | # CONFIG_ESPTOOLPY_FLASHFREQ_20M is not set 50 | CONFIG_ESPTOOLPY_FLASHFREQ="40m" 51 | # CONFIG_ESPTOOLPY_FLASHSIZE_1MB is not set 52 | CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y 53 | # CONFIG_ESPTOOLPY_FLASHSIZE_4MB is not set 54 | # CONFIG_ESPTOOLPY_FLASHSIZE_8MB is not set 55 | # CONFIG_ESPTOOLPY_FLASHSIZE_16MB is not set 56 | CONFIG_ESPTOOLPY_FLASHSIZE="2MB" 57 | CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y 58 | CONFIG_ESPTOOLPY_BEFORE_RESET=y 59 | # CONFIG_ESPTOOLPY_BEFORE_NORESET is not set 60 | CONFIG_ESPTOOLPY_BEFORE="default_reset" 61 | CONFIG_ESPTOOLPY_AFTER_RESET=y 62 | # CONFIG_ESPTOOLPY_AFTER_NORESET is not set 63 | CONFIG_ESPTOOLPY_AFTER="hard_reset" 64 | # CONFIG_MONITOR_BAUD_9600B is not set 65 | # CONFIG_MONITOR_BAUD_57600B is not set 66 | CONFIG_MONITOR_BAUD_115200B=y 67 | # CONFIG_MONITOR_BAUD_230400B is not set 68 | # CONFIG_MONITOR_BAUD_921600B is not set 69 | # CONFIG_MONITOR_BAUD_2MB is not set 70 | # CONFIG_MONITOR_BAUD_OTHER is not set 71 | CONFIG_MONITOR_BAUD_OTHER_VAL=115200 72 | CONFIG_MONITOR_BAUD=115200 73 | 74 | # 75 | # Deauth Monitor 76 | # 77 | CONFIG_WIFI_SSID="myssid" 78 | 79 | # 80 | # Partition Table 81 | # 82 | CONFIG_PARTITION_TABLE_SINGLE_APP=y 83 | # CONFIG_PARTITION_TABLE_TWO_OTA is not set 84 | # CONFIG_PARTITION_TABLE_CUSTOM is not set 85 | CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" 86 | CONFIG_PARTITION_TABLE_CUSTOM_APP_BIN_OFFSET=0x10000 87 | CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv" 88 | CONFIG_APP_OFFSET=0x10000 89 | 90 | # 91 | # Compiler options 92 | # 93 | CONFIG_OPTIMIZATION_LEVEL_DEBUG=y 94 | # CONFIG_OPTIMIZATION_LEVEL_RELEASE is not set 95 | CONFIG_OPTIMIZATION_ASSERTIONS_ENABLED=y 96 | # CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is not set 97 | # CONFIG_OPTIMIZATION_ASSERTIONS_DISABLED is not set 98 | 99 | # 100 | # Component config 101 | # 102 | 103 | # 104 | # Application Level Tracing 105 | # 106 | # CONFIG_ESP32_APPTRACE_DEST_TRAX is not set 107 | CONFIG_ESP32_APPTRACE_DEST_NONE=y 108 | # CONFIG_ESP32_APPTRACE_ENABLE is not set 109 | CONFIG_ESP32_APPTRACE_LOCK_ENABLE=y 110 | 111 | # 112 | # FreeRTOS SystemView Tracing 113 | # 114 | # CONFIG_AWS_IOT_SDK is not set 115 | # CONFIG_BT_ENABLED is not set 116 | CONFIG_BT_RESERVE_DRAM=0 117 | 118 | # 119 | # ESP32-specific 120 | # 121 | # CONFIG_ESP32_DEFAULT_CPU_FREQ_80 is not set 122 | CONFIG_ESP32_DEFAULT_CPU_FREQ_160=y 123 | # CONFIG_ESP32_DEFAULT_CPU_FREQ_240 is not set 124 | CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=160 125 | CONFIG_MEMMAP_SMP=y 126 | # CONFIG_MEMMAP_TRACEMEM is not set 127 | # CONFIG_MEMMAP_TRACEMEM_TWOBANKS is not set 128 | # CONFIG_ESP32_TRAX is not set 129 | CONFIG_TRACEMEM_RESERVE_DRAM=0x0 130 | # CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH is not set 131 | # CONFIG_ESP32_ENABLE_COREDUMP_TO_UART is not set 132 | CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=y 133 | # CONFIG_ESP32_ENABLE_COREDUMP is not set 134 | # CONFIG_TWO_UNIVERSAL_MAC_ADDRESS is not set 135 | CONFIG_FOUR_UNIVERSAL_MAC_ADDRESS=y 136 | CONFIG_NUMBER_OF_UNIVERSAL_MAC_ADDRESS=4 137 | CONFIG_SYSTEM_EVENT_QUEUE_SIZE=32 138 | CONFIG_SYSTEM_EVENT_TASK_STACK_SIZE=4096 139 | CONFIG_MAIN_TASK_STACK_SIZE=4096 140 | CONFIG_IPC_TASK_STACK_SIZE=1024 141 | CONFIG_NEWLIB_STDOUT_ADDCR=y 142 | # CONFIG_NEWLIB_NANO_FORMAT is not set 143 | CONFIG_CONSOLE_UART_DEFAULT=y 144 | # CONFIG_CONSOLE_UART_CUSTOM is not set 145 | # CONFIG_CONSOLE_UART_NONE is not set 146 | CONFIG_CONSOLE_UART_NUM=0 147 | CONFIG_CONSOLE_UART_BAUDRATE=115200 148 | # CONFIG_ULP_COPROC_ENABLED is not set 149 | CONFIG_ULP_COPROC_RESERVE_MEM=0 150 | # CONFIG_ESP32_PANIC_PRINT_HALT is not set 151 | CONFIG_ESP32_PANIC_PRINT_REBOOT=y 152 | # CONFIG_ESP32_PANIC_SILENT_REBOOT is not set 153 | # CONFIG_ESP32_PANIC_GDBSTUB is not set 154 | CONFIG_ESP32_DEBUG_OCDAWARE=y 155 | CONFIG_INT_WDT=y 156 | CONFIG_INT_WDT_TIMEOUT_MS=300 157 | CONFIG_INT_WDT_CHECK_CPU1=y 158 | CONFIG_TASK_WDT=y 159 | # CONFIG_TASK_WDT_PANIC is not set 160 | CONFIG_TASK_WDT_TIMEOUT_S=5 161 | CONFIG_TASK_WDT_CHECK_IDLE_TASK=y 162 | CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU1=y 163 | CONFIG_BROWNOUT_DET=y 164 | CONFIG_BROWNOUT_DET_LVL_SEL_0=y 165 | # CONFIG_BROWNOUT_DET_LVL_SEL_1 is not set 166 | # CONFIG_BROWNOUT_DET_LVL_SEL_2 is not set 167 | # CONFIG_BROWNOUT_DET_LVL_SEL_3 is not set 168 | # CONFIG_BROWNOUT_DET_LVL_SEL_4 is not set 169 | # CONFIG_BROWNOUT_DET_LVL_SEL_5 is not set 170 | # CONFIG_BROWNOUT_DET_LVL_SEL_6 is not set 171 | # CONFIG_BROWNOUT_DET_LVL_SEL_7 is not set 172 | CONFIG_BROWNOUT_DET_LVL=0 173 | # CONFIG_ESP32_TIME_SYSCALL_USE_RTC is not set 174 | CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1=y 175 | # CONFIG_ESP32_TIME_SYSCALL_USE_FRC1 is not set 176 | # CONFIG_ESP32_TIME_SYSCALL_USE_NONE is not set 177 | CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC=y 178 | # CONFIG_ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL is not set 179 | CONFIG_ESP32_RTC_CLK_CAL_CYCLES=1024 180 | CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 181 | # CONFIG_ESP32_XTAL_FREQ_40 is not set 182 | # CONFIG_ESP32_XTAL_FREQ_26 is not set 183 | CONFIG_ESP32_XTAL_FREQ_AUTO=y 184 | CONFIG_ESP32_XTAL_FREQ=0 185 | CONFIG_WIFI_ENABLED=y 186 | CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=10 187 | CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=32 188 | # CONFIG_ESP32_WIFI_STATIC_TX_BUFFER is not set 189 | CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER=y 190 | CONFIG_ESP32_WIFI_TX_BUFFER_TYPE=1 191 | CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=32 192 | CONFIG_ESP32_WIFI_AMPDU_ENABLED=y 193 | CONFIG_ESP32_WIFI_TX_BA_WIN=6 194 | CONFIG_ESP32_WIFI_RX_BA_WIN=6 195 | CONFIG_ESP32_WIFI_NVS_ENABLED=y 196 | CONFIG_PHY_ENABLED=y 197 | 198 | # 199 | # PHY 200 | # 201 | CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=y 202 | # CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION is not set 203 | CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER=20 204 | CONFIG_ESP32_PHY_MAX_TX_POWER=20 205 | # CONFIG_ETHERNET is not set 206 | 207 | # 208 | # FAT Filesystem support 209 | # 210 | CONFIG_FATFS_CODEPAGE_ASCII=y 211 | # CONFIG_FATFS_CODEPAGE_437 is not set 212 | # CONFIG_FATFS_CODEPAGE_720 is not set 213 | # CONFIG_FATFS_CODEPAGE_737 is not set 214 | # CONFIG_FATFS_CODEPAGE_771 is not set 215 | # CONFIG_FATFS_CODEPAGE_775 is not set 216 | # CONFIG_FATFS_CODEPAGE_850 is not set 217 | # CONFIG_FATFS_CODEPAGE_852 is not set 218 | # CONFIG_FATFS_CODEPAGE_855 is not set 219 | # CONFIG_FATFS_CODEPAGE_857 is not set 220 | # CONFIG_FATFS_CODEPAGE_860 is not set 221 | # CONFIG_FATFS_CODEPAGE_861 is not set 222 | # CONFIG_FATFS_CODEPAGE_862 is not set 223 | # CONFIG_FATFS_CODEPAGE_863 is not set 224 | # CONFIG_FATFS_CODEPAGE_864 is not set 225 | # CONFIG_FATFS_CODEPAGE_865 is not set 226 | # CONFIG_FATFS_CODEPAGE_866 is not set 227 | # CONFIG_FATFS_CODEPAGE_869 is not set 228 | # CONFIG_FATFS_CODEPAGE_932 is not set 229 | # CONFIG_FATFS_CODEPAGE_936 is not set 230 | # CONFIG_FATFS_CODEPAGE_949 is not set 231 | # CONFIG_FATFS_CODEPAGE_950 is not set 232 | CONFIG_FATFS_CODEPAGE=1 233 | CONFIG_FATFS_MAX_LFN=255 234 | 235 | # 236 | # FreeRTOS 237 | # 238 | # CONFIG_FREERTOS_UNICORE is not set 239 | CONFIG_FREERTOS_CORETIMER_0=y 240 | # CONFIG_FREERTOS_CORETIMER_1 is not set 241 | CONFIG_FREERTOS_HZ=100 242 | CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION=y 243 | # CONFIG_FREERTOS_CHECK_STACKOVERFLOW_NONE is not set 244 | # CONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL is not set 245 | CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=y 246 | # CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK is not set 247 | CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 248 | CONFIG_FREERTOS_ASSERT_FAIL_ABORT=y 249 | # CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE is not set 250 | # CONFIG_FREERTOS_ASSERT_DISABLE is not set 251 | # CONFIG_FREERTOS_BREAK_ON_SCHEDULER_START_JTAG is not set 252 | # CONFIG_ENABLE_MEMORY_DEBUG is not set 253 | CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1024 254 | CONFIG_FREERTOS_ISR_STACKSIZE=1536 255 | # CONFIG_FREERTOS_LEGACY_HOOKS is not set 256 | CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16 257 | # CONFIG_SUPPORT_STATIC_ALLOCATION is not set 258 | CONFIG_TIMER_TASK_PRIORITY=1 259 | CONFIG_TIMER_TASK_STACK_DEPTH=2048 260 | CONFIG_TIMER_QUEUE_LENGTH=10 261 | # CONFIG_FREERTOS_DEBUG_INTERNALS is not set 262 | 263 | # 264 | # Log output 265 | # 266 | # CONFIG_LOG_DEFAULT_LEVEL_NONE is not set 267 | # CONFIG_LOG_DEFAULT_LEVEL_ERROR is not set 268 | # CONFIG_LOG_DEFAULT_LEVEL_WARN is not set 269 | CONFIG_LOG_DEFAULT_LEVEL_INFO=y 270 | # CONFIG_LOG_DEFAULT_LEVEL_DEBUG is not set 271 | # CONFIG_LOG_DEFAULT_LEVEL_VERBOSE is not set 272 | CONFIG_LOG_DEFAULT_LEVEL=3 273 | CONFIG_LOG_COLORS=y 274 | 275 | # 276 | # LWIP 277 | # 278 | # CONFIG_L2_TO_L3_COPY is not set 279 | CONFIG_LWIP_MAX_SOCKETS=10 280 | CONFIG_LWIP_THREAD_LOCAL_STORAGE_INDEX=0 281 | # CONFIG_LWIP_SO_REUSE is not set 282 | # CONFIG_LWIP_SO_RCVBUF is not set 283 | CONFIG_LWIP_DHCP_MAX_NTP_SERVERS=1 284 | # CONFIG_LWIP_IP_FRAG is not set 285 | # CONFIG_LWIP_IP_REASSEMBLY is not set 286 | 287 | # 288 | # TCP 289 | # 290 | CONFIG_TCP_MAXRTX=12 291 | CONFIG_TCP_SYNMAXRTX=6 292 | CONFIG_TCP_MSS=1436 293 | CONFIG_TCP_SND_BUF_DEFAULT=5744 294 | CONFIG_TCP_WND_DEFAULT=5744 295 | CONFIG_TCP_RECVMBOX_SIZE=6 296 | CONFIG_TCP_QUEUE_OOSEQ=y 297 | CONFIG_TCP_OVERSIZE_MSS=y 298 | # CONFIG_TCP_OVERSIZE_QUARTER_MSS is not set 299 | # CONFIG_TCP_OVERSIZE_DISABLE is not set 300 | 301 | # 302 | # UDP 303 | # 304 | CONFIG_UDP_RECVMBOX_SIZE=6 305 | CONFIG_LWIP_DHCP_DOES_ARP_CHECK=y 306 | CONFIG_TCPIP_TASK_STACK_SIZE=2560 307 | # CONFIG_PPP_SUPPORT is not set 308 | 309 | # 310 | # ICMP 311 | # 312 | # CONFIG_LWIP_MULTICAST_PING is not set 313 | # CONFIG_LWIP_BROADCAST_PING is not set 314 | 315 | # 316 | # mbedTLS 317 | # 318 | CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=16384 319 | # CONFIG_MBEDTLS_DEBUG is not set 320 | # CONFIG_MBEDTLS_UNSAFE_ACCELERATION is not set 321 | CONFIG_MBEDTLS_HAVE_TIME=y 322 | # CONFIG_MBEDTLS_HAVE_TIME_DATE is not set 323 | 324 | # 325 | # OpenSSL 326 | # 327 | # CONFIG_OPENSSL_DEBUG is not set 328 | CONFIG_OPENSSL_ASSERT_DO_NOTHING=y 329 | # CONFIG_OPENSSL_ASSERT_EXIT is not set 330 | 331 | # 332 | # SPI Flash driver 333 | # 334 | # CONFIG_SPI_FLASH_ENABLE_COUNTERS is not set 335 | CONFIG_SPI_FLASH_ROM_DRIVER_PATCH=y 336 | 337 | # 338 | # Wear Levelling 339 | # 340 | CONFIG_WL_SECTOR_SIZE_4096=y 341 | CONFIG_WL_SECTOR_SIZE=4096 342 | --------------------------------------------------------------------------------