wifi:
1. make menuconfig can set the WiFi mgmt short buffer num 2. fix several scan bugs
This commit is contained in:
parent
9a1bbcfa1a
commit
4ea4d4744c
|
@ -1128,6 +1128,13 @@ menu Wi-Fi
|
||||||
Setting a longer beacon length also assists with debugging as the conflicting root nodes can be identified
|
Setting a longer beacon length also assists with debugging as the conflicting root nodes can be identified
|
||||||
more quickly.
|
more quickly.
|
||||||
|
|
||||||
|
config ESP32_WIFI_MGMT_SBUF_NUM
|
||||||
|
int "WiFi mgmt short buffer number"
|
||||||
|
range 6 32
|
||||||
|
default 32
|
||||||
|
help
|
||||||
|
Set the number of WiFi management short buffer.
|
||||||
|
|
||||||
config ESP32_WIFI_DEBUG_LOG_ENABLE
|
config ESP32_WIFI_DEBUG_LOG_ENABLE
|
||||||
bool "Enable WiFi debug log"
|
bool "Enable WiFi debug log"
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -110,6 +110,7 @@ typedef struct {
|
||||||
int rx_ba_win; /**< WiFi Block Ack RX window size */
|
int rx_ba_win; /**< WiFi Block Ack RX window size */
|
||||||
int wifi_task_core_id; /**< WiFi Task Core ID */
|
int wifi_task_core_id; /**< WiFi Task Core ID */
|
||||||
int beacon_max_len; /**< WiFi softAP maximum length of the beacon */
|
int beacon_max_len; /**< WiFi softAP maximum length of the beacon */
|
||||||
|
int mgmt_sbuf_num; /**< WiFi management short buffer number, the minimum value is 6, the maximum value is 32 */
|
||||||
int magic; /**< WiFi init magic number, it should be the last field */
|
int magic; /**< WiFi init magic number, it should be the last field */
|
||||||
} wifi_init_config_t;
|
} wifi_init_config_t;
|
||||||
|
|
||||||
|
@ -183,6 +184,12 @@ extern const wpa_crypto_funcs_t g_wifi_default_wpa_crypto_funcs;
|
||||||
#define WIFI_SOFTAP_BEACON_MAX_LEN 752
|
#define WIFI_SOFTAP_BEACON_MAX_LEN 752
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_ESP32_WIFI_MGMT_SBUF_NUM
|
||||||
|
#define WIFI_MGMT_SBUF_NUM CONFIG_ESP32_WIFI_MGMT_SBUF_NUM
|
||||||
|
#else
|
||||||
|
#define WIFI_MGMT_SBUF_NUM 32
|
||||||
|
#endif
|
||||||
|
|
||||||
#define WIFI_INIT_CONFIG_DEFAULT() { \
|
#define WIFI_INIT_CONFIG_DEFAULT() { \
|
||||||
.event_handler = &esp_event_send, \
|
.event_handler = &esp_event_send, \
|
||||||
.osi_funcs = &g_wifi_osi_funcs, \
|
.osi_funcs = &g_wifi_osi_funcs, \
|
||||||
|
@ -201,6 +208,7 @@ extern const wpa_crypto_funcs_t g_wifi_default_wpa_crypto_funcs;
|
||||||
.rx_ba_win = WIFI_DEFAULT_RX_BA_WIN,\
|
.rx_ba_win = WIFI_DEFAULT_RX_BA_WIN,\
|
||||||
.wifi_task_core_id = WIFI_TASK_CORE_ID,\
|
.wifi_task_core_id = WIFI_TASK_CORE_ID,\
|
||||||
.beacon_max_len = WIFI_SOFTAP_BEACON_MAX_LEN, \
|
.beacon_max_len = WIFI_SOFTAP_BEACON_MAX_LEN, \
|
||||||
|
.mgmt_sbuf_num = WIFI_MGMT_SBUF_NUM, \
|
||||||
.magic = WIFI_INIT_CONFIG_MAGIC\
|
.magic = WIFI_INIT_CONFIG_MAGIC\
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2d497667233a118384a79aec9428a042fbebd366
|
Subproject commit aa6fe8cd2ec3f8a7e01490c81a5a83a5c322e8c6
|
Loading…
Reference in a new issue