mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into feature/btdm_bluedroid
This commit is contained in:
Submodule components/esp32/lib updated: b01f9683da...2559c73c2c
@@ -19,7 +19,7 @@ config L2_TO_L3_COPY
|
||||
config LWIP_MAX_SOCKETS
|
||||
int "Max number of open sockets"
|
||||
range 1 16
|
||||
default 4
|
||||
default 10
|
||||
help
|
||||
Sockets take up a certain amount of memory, and allowing fewer
|
||||
sockets to be open at the same time conserves memory. Specify
|
||||
|
@@ -393,6 +393,7 @@ esp_err_t tcpip_adapter_dhcps_option(tcpip_adapter_option_mode_t opt_op, tcpip_a
|
||||
uint32_t end_ip = 0;
|
||||
dhcps_lease_t *poll = opt_val;
|
||||
|
||||
if (poll->enable){
|
||||
memset(&info, 0x00, sizeof(tcpip_adapter_ip_info_t));
|
||||
tcpip_adapter_get_ip_info(WIFI_IF_AP, &info);
|
||||
softap_ip = htonl(info.ip.addr);
|
||||
@@ -413,6 +414,7 @@ esp_err_t tcpip_adapter_dhcps_option(tcpip_adapter_option_mode_t opt_op, tcpip_a
|
||||
if (end_ip - start_ip > DHCPS_MAX_LEASE) {
|
||||
return ESP_ERR_TCPIP_ADAPTER_INVALID_PARAMS;
|
||||
}
|
||||
}
|
||||
|
||||
memcpy(opt_info, opt_val, opt_len);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user