mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_example: Enable MbedTLS for DPP enrollee by default
This commit is contained in:
parent
6e826523b1
commit
bac4173161
@ -5,7 +5,6 @@ set(srcs "port/os_xtensa.c"
|
||||
"src/ap/wpa_auth_ie.c"
|
||||
"src/common/sae.c"
|
||||
"src/common/wpa_common.c"
|
||||
"src/common/dpp.c"
|
||||
"src/utils/bitfield.c"
|
||||
"src/crypto/aes-siv.c"
|
||||
"src/crypto/sha256-kdf.c"
|
||||
@ -59,8 +58,7 @@ set(esp_srcs "esp_supplicant/src/esp_wpa2.c"
|
||||
"esp_supplicant/src/esp_wpa_main.c"
|
||||
"esp_supplicant/src/esp_wpas_glue.c"
|
||||
"esp_supplicant/src/esp_wps.c"
|
||||
"esp_supplicant/src/esp_wpa3.c"
|
||||
"esp_supplicant/src/esp_dpp.c")
|
||||
"esp_supplicant/src/esp_wpa3.c")
|
||||
if(CONFIG_ESP_WIFI_SOFTAP_SUPPORT)
|
||||
set(esp_srcs ${esp_srcs} "esp_supplicant/src/esp_hostap.c")
|
||||
endif()
|
||||
@ -162,13 +160,22 @@ if(CONFIG_WPA_11KV_SUPPORT)
|
||||
else()
|
||||
set(roaming_src "")
|
||||
endif()
|
||||
|
||||
if(CONFIG_WPA_MBO_SUPPORT)
|
||||
set(mbo_src "src/common/mbo.c")
|
||||
else()
|
||||
set(mbo_src "")
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS "${srcs}" ${esp_srcs} "${tls_src}" "${roaming_src}" "${crypto_src}" "${mbo_src}"
|
||||
if(CONFIG_WPA_DPP_SUPPORT)
|
||||
set(dpp_src "src/common/dpp.c"
|
||||
"esp_supplicant/src/esp_dpp.c")
|
||||
else()
|
||||
set(dpp_src "")
|
||||
endif()
|
||||
|
||||
idf_component_register(SRCS "${srcs}" ${esp_srcs} "${tls_src}" "${roaming_src}"
|
||||
"${crypto_src}" "${mbo_src}" "${dpp_src}"
|
||||
INCLUDE_DIRS include port/include esp_supplicant/include
|
||||
PRIV_INCLUDE_DIRS src src/utils esp_supplicant/src
|
||||
PRIV_REQUIRES mbedtls esp_timer)
|
||||
@ -193,7 +200,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
||||
CONFIG_ECC
|
||||
CONFIG_IEEE80211W
|
||||
CONFIG_SHA256
|
||||
CONFIG_DPP
|
||||
CONFIG_WNM
|
||||
)
|
||||
|
||||
@ -219,4 +225,7 @@ endif()
|
||||
if(CONFIG_WPA_MBO_SUPPORT)
|
||||
target_compile_definitions(${COMPONENT_LIB} PRIVATE CONFIG_MBO)
|
||||
endif()
|
||||
if(CONFIG_WPA_DPP_SUPPORT)
|
||||
target_compile_definitions(${COMPONENT_LIB} PRIVATE CONFIG_DPP)
|
||||
endif()
|
||||
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY LINK_INTERFACE_MULTIPLICITY 3)
|
||||
|
@ -52,8 +52,8 @@ menu "Supplicant"
|
||||
rigorously. Disabling this add the workaorunds with various APs.
|
||||
Enabling this may cause inter operability issues with some APs.
|
||||
|
||||
menuconfig WPA_11KV_SUPPORT
|
||||
bool "Enable 802.11k, 802.11v APIs handling in supplicant"
|
||||
config WPA_11KV_SUPPORT
|
||||
bool "Enable 802.11k, 802.11v APIs handling"
|
||||
default n
|
||||
help
|
||||
Select this option to enable 802.11k 802.11v APIs(RRM and BTM support).
|
||||
@ -68,7 +68,7 @@ menu "Supplicant"
|
||||
and on the radio environment. Current implementation adds beacon report,
|
||||
link measurement, neighbor report.
|
||||
|
||||
menuconfig WPA_SCAN_CACHE
|
||||
config WPA_SCAN_CACHE
|
||||
bool "Keep scan results in cache"
|
||||
depends on WPA_11KV_SUPPORT
|
||||
default n
|
||||
@ -76,10 +76,19 @@ menu "Supplicant"
|
||||
Keep scan results in cache, if not enabled, those
|
||||
will be flushed immediately.
|
||||
|
||||
menuconfig WPA_MBO_SUPPORT
|
||||
bool "Enable MBO support in supplicant"
|
||||
depends on WPA_11KV_SUPPORT
|
||||
config WPA_MBO_SUPPORT
|
||||
bool "Enable MBO support"
|
||||
default n
|
||||
select WPA_11KV_SUPPORT
|
||||
select WPA_SCAN_CACHE
|
||||
help
|
||||
Select this option to enable WiFi Multiband operation certification support.
|
||||
|
||||
config WPA_DPP_SUPPORT
|
||||
bool "Enable DPP support"
|
||||
default n
|
||||
select WPA_MBEDTLS_CRYPTO
|
||||
help
|
||||
Select this option to enable WiFi Easy Connect Support.
|
||||
|
||||
endmenu
|
||||
|
@ -1,16 +1,8 @@
|
||||
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ESP_DPP_H
|
||||
#define ESP_DPP_H
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@ -12,6 +12,7 @@
|
||||
#include "esp_wifi.h"
|
||||
#include "common/ieee802_11_defs.h"
|
||||
|
||||
#ifdef CONFIG_DPP
|
||||
static void *s_dpp_task_hdl = NULL;
|
||||
static void *s_dpp_evt_queue = NULL;
|
||||
static void *s_dpp_api_lock = NULL;
|
||||
@ -674,3 +675,4 @@ void esp_supp_dpp_deinit(void)
|
||||
dpp_global_deinit(s_dpp_ctx.dpp_global);
|
||||
esp_dpp_post_evt(SIG_DPP_DEL_TASK, 0);
|
||||
}
|
||||
#endif
|
||||
|
@ -0,0 +1 @@
|
||||
CONFIG_WPA_DPP_SUPPORT=y
|
Loading…
x
Reference in New Issue
Block a user