]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agoMerge branch 'feature/update_cjson_lib_to_1.7.11_v3.3' into 'release/v3.3'
Angus Gratton [Fri, 10 May 2019 14:02:31 +0000 (22:02 +0800)]
Merge branch 'feature/update_cjson_lib_to_1.7.11_v3.3' into 'release/v3.3'

cJSON: update to v1.7.11 (v3.3)

See merge request idf/esp-idf!4971

6 years agoMerge branch 'bugfix/http_file_server_backport_v3.3' into 'release/v3.3'
Angus Gratton [Fri, 10 May 2019 03:03:32 +0000 (11:03 +0800)]
Merge branch 'bugfix/http_file_server_backport_v3.3' into 'release/v3.3'

File Server Example : Check longer than allowed filenames when converting from URIs to filepaths (backport v3.3)

See merge request idf/esp-idf!4938

6 years agoMerge branch 'bugifx/httpd_reuseaddr_backport_v3.3' into 'release/v3.3'
Angus Gratton [Fri, 10 May 2019 02:45:55 +0000 (10:45 +0800)]
Merge branch 'bugifx/httpd_reuseaddr_backport_v3.3' into 'release/v3.3'

esp_http_server : Allow binding to same address and port upon restarting server without delay (backport v3.3)

See merge request idf/esp-idf!4939

6 years agocJSON: update to v1.7.11
suda-morris [Thu, 25 Apr 2019 04:55:27 +0000 (12:55 +0800)]
cJSON: update to v1.7.11

Closes https://github.com/espressif/esp-idf/issues/3332

6 years agoMerge branch 'bugfix/wps_connect_fail_after_reason_code_change_v3.3' into 'release...
Jiang Jiang Jian [Tue, 7 May 2019 14:41:52 +0000 (22:41 +0800)]
Merge branch 'bugfix/wps_connect_fail_after_reason_code_change_v3.3' into 'release/v3.3'

wifi: fix the bug that WPS fails when AP is encrypted (backport v3.3)

See merge request idf/esp-idf!4910

6 years agoMerge branch 'bugfix/enb_secboot_post_flash_enc_backport_v3.3' into 'release/v3.3'
Angus Gratton [Tue, 7 May 2019 06:44:03 +0000 (14:44 +0800)]
Merge branch 'bugfix/enb_secboot_post_flash_enc_backport_v3.3' into 'release/v3.3'

Enable secure boot only after encrypting flash (backport v3.3)

See merge request idf/esp-idf!4940

6 years agoEnable secure boot only after encrypting flash
Anurag Kar [Thu, 4 Apr 2019 09:55:22 +0000 (15:25 +0530)]
Enable secure boot only after encrypting flash

This prevents a device from being bricked in case when both secure boot & flash encryption are enabled and encryption gets interrupted during first boot. After interruption, all partitions on the device need to be reflashed (including the bootloader).

List of changes:
* Secure boot key generation and bootloader digest generation logic, implemented inside function esp_secure_boot_permanently_enable(), has been pulled out into new API esp_secure_boot_generate_digest(). The enabling of R/W protection of secure boot key on EFUSE still happens inside esp_secure_boot_permanently_enable()
* Now esp_secure_boot_permanently_enable() is called only after flash encryption process completes
* esp_secure_boot_generate_digest() is called before flash encryption process starts

6 years agoesp_http_server : Allow binding to same address and port upon restarting server witho...
Anurag Kar [Mon, 29 Apr 2019 13:16:20 +0000 (18:46 +0530)]
esp_http_server : Allow binding to same address and port upon restarting server without delay

Issue : Restarting the server without 30sec delay between httpd_stop() and httpd_start() causes EADDRINUSE error
Resolution : Use setsockopt() to enable SO_REUSEADDR on listener socket

Closes https://github.com/espressif/esp-idf/issues/3381

6 years agoFile Server Example : Check longer than allowed filenames when converting from URIs...
Anurag Kar [Thu, 25 Apr 2019 19:58:33 +0000 (01:28 +0530)]
File Server Example : Check longer than allowed filenames when converting from URIs to filepaths

This change prevents buffer overflows in case of really long file paths.

Other changes:
* Remove query (?) and fragment (#) component from URI when converting to file path
* /index.html and favicon.ico can be overridden by files with same name and path in SPIFFS
* README.md updated

6 years agowifi: fix the bug that WPS fails when AP is encrypted
zhangyanjiao [Mon, 6 May 2019 02:50:04 +0000 (10:50 +0800)]
wifi: fix the bug that WPS fails when AP is encrypted

6 years agoMerge branch 'bugfix/scan_fail_when_no_ap_found_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Mon, 6 May 2019 02:37:08 +0000 (10:37 +0800)]
Merge branch 'bugfix/scan_fail_when_no_ap_found_v3.3' into 'release/v3.3'

fix the bug when scan fail after STA failed to connect to a nonexistent AP (backport v3.3)

See merge request idf/esp-idf!4900

6 years agoMerge branch 'backport/bugfix_url_redirect_v33' into 'release/v3.3'
Angus Gratton [Fri, 3 May 2019 06:15:33 +0000 (14:15 +0800)]
Merge branch 'backport/bugfix_url_redirect_v33' into 'release/v3.3'

Fix url redirection issue. (backport v3.3)

See merge request idf/esp-idf!4851

6 years agofix the bug when scan fail after STA failed to connect to a nonexistent AP
zhangyanjiao [Mon, 29 Apr 2019 08:21:58 +0000 (16:21 +0800)]
fix the bug when scan fail after STA failed to connect to a nonexistent AP

6 years agoMerge branch 'backport/feature_set_redirect_function_v33' into 'release/v3.3'
Angus Gratton [Fri, 26 Apr 2019 02:06:52 +0000 (10:06 +0800)]
Merge branch 'backport/feature_set_redirect_function_v33' into 'release/v3.3'

Add a `esp_http_client_set_redirection` function. (backport v3.3)

See merge request idf/esp-idf!4866

6 years agoMerge branch 'bugfix/btdm_abort_if_deinit_spp_without_init_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Thu, 25 Apr 2019 12:39:36 +0000 (20:39 +0800)]
Merge branch 'bugfix/btdm_abort_if_deinit_spp_without_init_v3.3' into 'release/v3.3'

components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init

See merge request idf/esp-idf!4861

6 years agoAdd a `esp_http_client_set_redirection` function.
Vikram Dattu [Tue, 23 Apr 2019 13:53:20 +0000 (19:23 +0530)]
Add a `esp_http_client_set_redirection` function.
When using direct operations instead of `esp_http_client_perform`, we need a way to set redirection URL when we get 30x response codes. Added the function for the same.

User can now check status code and call `esp_http_client_set_redirection` function to enable redirection.

Related change in adf: https://gitlab.espressif.cn:6688/adf/esp-adf-internal/merge_requests/187

Closes https://github.com/espressif/esp-idf/issues/2712

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
6 years agoMerge branch 'bugfix/erase_with_vtaskdelay' into 'release/v3.3'
Angus Gratton [Wed, 24 Apr 2019 07:51:35 +0000 (15:51 +0800)]
Merge branch 'bugfix/erase_with_vtaskdelay' into 'release/v3.3'

spi_flash: Add vTaskDelay while a long erasing

See merge request idf/esp-idf!4816

6 years agocomponents/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init
baohongde [Wed, 24 Apr 2019 03:30:04 +0000 (11:30 +0800)]
components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init

6 years agoMerge branch 'bugfix/undefined_partition_table_bin_warning_v3.3' into 'release/v3.3'
Angus Gratton [Wed, 24 Apr 2019 00:57:06 +0000 (08:57 +0800)]
Merge branch 'bugfix/undefined_partition_table_bin_warning_v3.3' into 'release/v3.3'

make: fix undefined variables warning for PARTITION_TABLE_BIN (backport v3.3)

See merge request idf/esp-idf!4848

6 years agospi_flash: Add vTaskDelay while a long erasing
Konstantin Kondrashov [Wed, 17 Apr 2019 01:18:11 +0000 (09:18 +0800)]
spi_flash: Add vTaskDelay while a long erasing

Added Kconfig options to enable yield operation during flash erase

Closes: https://github.com/espressif/esp-idf/issues/2083
Closes: IDFGH-261
6 years agoFix url redirection issue.
Vikram Dattu [Tue, 26 Mar 2019 08:45:46 +0000 (16:45 +0800)]
Fix url redirection issue.

Operation:
In `esp_http_client_set_url`, we check for if old_host is same as new_host.
Delete and open new connection if host is different.

Issue:
We just pointed `client->connection_info.host` to `old_host` and reassigned it.
This made old_host and new_host always point to same location and hence, using old_host with new request.

Fix:
Made a separate copy for old_host using strdup.

Closes https://github.com/espressif/esp-idf/issues/2631

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
6 years agomake: fix undefined variables warning for PARTITION_TABLE_BIN
Renz Christian Bagaporo [Wed, 27 Mar 2019 13:02:55 +0000 (21:02 +0800)]
make: fix undefined variables warning for PARTITION_TABLE_BIN

Closes https://github.com/espressif/esp-idf/issues/3136

6 years agoMerge branch 'bugfix/fix_iperf_exit_error_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Tue, 23 Apr 2019 02:21:25 +0000 (10:21 +0800)]
Merge branch 'bugfix/fix_iperf_exit_error_v3.3' into 'release/v3.3'

examples: fix iperf exit error

See merge request idf/esp-idf!4845

6 years agoexamples: fix iperf exit error
xiehang [Mon, 22 Apr 2019 11:56:15 +0000 (19:56 +0800)]
examples: fix iperf exit error

6 years agoMerge branch 'test/modify_mesh_ci_v3.3' into 'release/v3.3'
He Yin Ling [Thu, 18 Apr 2019 03:29:54 +0000 (11:29 +0800)]
Merge branch 'test/modify_mesh_ci_v3.3' into 'release/v3.3'

test: update mesh test cases for ci (backport v3.3)

See merge request idf/esp-idf!4651

6 years agoMerge branch 'bugfix/fix_signal_test_bug_v3.3' into 'release/v3.3' v3.3-beta3
Jiang Jiang Jian [Wed, 17 Apr 2019 14:09:23 +0000 (22:09 +0800)]
Merge branch 'bugfix/fix_signal_test_bug_v3.3' into 'release/v3.3'

esp32: fix a bug caused by signal test code (backport v3.3)

See merge request idf/esp-idf!4813

6 years agoesp32: fix a bug caused by signal test code
liu zhifu [Wed, 17 Apr 2019 09:44:23 +0000 (17:44 +0800)]
esp32: fix a bug caused by signal test code

Fix a WiFi bug caused by signal test code.

6 years agotest:update mesh test cases for test(v3.3)
chenyudong [Mon, 17 Dec 2018 11:31:19 +0000 (19:31 +0800)]
test:update mesh test cases for test(v3.3)

add job in ci mesh test

update cases in TC_IT_MESH_EST.yml and TC_IT_MESH_COMM.yml

change the file 'components/idf_test/integration_test'

6 years agoMerge branch 'bugfix/fix_set_config_bug_for_bssid_set_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Tue, 16 Apr 2019 15:23:58 +0000 (23:23 +0800)]
Merge branch 'bugfix/fix_set_config_bug_for_bssid_set_v3.3' into 'release/v3.3'

wifi: fix the set config bug for bssid_set (backport v3.3)

See merge request idf/esp-idf!4802

6 years agowifi: fix the set config bug for bssid_set
zhangyanjiao [Tue, 16 Apr 2019 12:40:00 +0000 (20:40 +0800)]
wifi: fix the set config bug for bssid_set

6 years agoMerge branch 'bugfix/esp_efuse_get_pkg_ver_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Tue, 16 Apr 2019 12:33:36 +0000 (20:33 +0800)]
Merge branch 'bugfix/esp_efuse_get_pkg_ver_v3.3' into 'release/v3.3'

efuse: Fix excess data coming from uninitialized variable (backport v3.3)

See merge request idf/esp-idf!4794

6 years agoMerge branch 'bugfix/fix_deprecated_warning_with_dfs_init_auto_config_v3.3' into...
Jiang Jiang Jian [Tue, 16 Apr 2019 12:32:51 +0000 (20:32 +0800)]
Merge branch 'bugfix/fix_deprecated_warning_with_dfs_init_auto_config_v3.3' into 'release/v3.3'

cpu_start: fix warnings with CONFIG_PM_DFS_INIT_AUTO option (v3.3)

See merge request idf/esp-idf!4790

6 years agoefuse: Fix excess data coming from uninitialized variable
GOPTIONS\pfrost [Mon, 15 Apr 2019 10:31:01 +0000 (11:31 +0100)]
efuse: Fix excess data coming from uninitialized variable

Fixed esp_efuse_get_pkg_ver() function

Closes: https://github.com/espressif/esp-idf/pull/3309
Closes: IDFGH-976
6 years agocpu_start: fix warnings with CONFIG_PM_DFS_INIT_AUTO option
Mahavir Jain [Fri, 12 Apr 2019 10:03:33 +0000 (15:33 +0530)]
cpu_start: fix warnings with CONFIG_PM_DFS_INIT_AUTO option

Closes https://github.com/espressif/esp-idf/issues/3297

6 years agoMerge branch 'feature/add_support_for_signal_test_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Mon, 15 Apr 2019 09:52:54 +0000 (17:52 +0800)]
Merge branch 'feature/add_support_for_signal_test_v3.3' into 'release/v3.3'

esp32: add support for WiFi signal test (backport v3.3)

See merge request idf/esp-idf!4759

6 years agoesp32: add support for WiFi signal test
liu zhifu [Sat, 13 Apr 2019 04:46:27 +0000 (12:46 +0800)]
esp32: add support for WiFi signal test

Add support for WiFi signal test

6 years agoMerge branch 'feature/wifi_refactor_softap_power_save_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Mon, 15 Apr 2019 02:09:55 +0000 (10:09 +0800)]
Merge branch 'feature/wifi_refactor_softap_power_save_v3.3' into 'release/v3.3'

refactor softap power save

See merge request idf/esp-idf!4766

6 years agorefactor softap power save
Jack [Sun, 14 Apr 2019 11:43:09 +0000 (19:43 +0800)]
refactor softap power save

1. Softap support multicast and broadcast saving and flushing when the associated stations enable IEEE80211 legacy power save(which is called modem sleep in ESP32).
2. Improve the frame saving and flushing mechanism of softap power save.

6 years agoMerge branch 'bugfix/nvs_fix_erase_any_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Sun, 14 Apr 2019 11:39:04 +0000 (19:39 +0800)]
Merge branch 'bugfix/nvs_fix_erase_any_v3.3' into 'release/v3.3'

nvs_flash: Multi-page blob erased using nvs_erase_key should be cleaned properly(v3.3)

See merge request idf/esp-idf!4765

6 years agoMerge branch 'bugfix/wifi_spike_power_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Sun, 14 Apr 2019 11:38:55 +0000 (19:38 +0800)]
Merge branch 'bugfix/wifi_spike_power_v3.3' into 'release/v3.3'

wifi: fix the issue that the spike transmit power of WiFi is higher than…

See merge request idf/esp-idf!4762

6 years agoMerge branch 'bugfix/btdm_fix_memory_leak_when_set_txpwr_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Sun, 14 Apr 2019 08:55:52 +0000 (16:55 +0800)]
Merge branch 'bugfix/btdm_fix_memory_leak_when_set_txpwr_v3.3' into 'release/v3.3'

component/bt: fix memory leak when settig tx power (backport v3.3)

See merge request idf/esp-idf!4760

6 years agoMerge branch 'bugfix/improve_spi_timing_for_psram_and_flash_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Sun, 14 Apr 2019 08:27:35 +0000 (16:27 +0800)]
Merge branch 'bugfix/improve_spi_timing_for_psram_and_flash_v3.3' into 'release/v3.3'

bugfix(psram): improve spi cs timing settings for psram(v3.3)

See merge request idf/esp-idf!4763

6 years agowifi: fix the issue that the spike transmit power of WiFi is higher than configured...
Jack [Sat, 13 Apr 2019 18:23:08 +0000 (02:23 +0800)]
wifi: fix the issue that the spike transmit power of WiFi is higher than configured when WiFi and Bluetooth coexist

6 years agocomponent/bt: fix memory leak when settig tx power
zhiweijian [Sat, 13 Apr 2019 07:01:56 +0000 (15:01 +0800)]
component/bt: fix memory leak when settig tx power

6 years agonvs_flash: Multi-page blob erased using nvs_erase_key should be cleaned properly
negativekelvin [Wed, 27 Mar 2019 14:44:56 +0000 (20:14 +0530)]
nvs_flash: Multi-page blob erased using nvs_erase_key should be cleaned properly

Earlier eraseItem function in Storage class would do lazy cleanup of
multi-page blobs if called using type "ANY" instead of "BLOB". It used to
just delete BLOB data and index would remain as is. Any subsequent read
would delete index entry as well. This however would return a valid
length without error if nvs_get_blob API was just used for finding
length and not reading the complete blob. This change fixes this issue.

Closes https://github.com/espressif/esp-idf/issues/3255

6 years agobugfix(psram): improve spi cs timing settings for psram
Wangjialin [Thu, 28 Mar 2019 13:31:14 +0000 (21:31 +0800)]
bugfix(psram): improve spi cs timing settings for psram

1. remove redundant SPI clock settings, use rom functions to set clock.
2. remove redundant SPI cs setup and hold settings.
3. for old 32Mbit psram, cs hold time must only be 0.5T due to the special driving mode.(cs_setup = 0; cs_hold = 0)
4. for new 64Mbit psram, cs hold time is recommended to be 2.5T. (cs_setup = 1, cs_setup_time = 0;cs_hold = 1, cs_hold_time = 1)

6 years agoMerge branch 'bugfix/rename_ldgen_common_module_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Sun, 14 Apr 2019 06:21:01 +0000 (14:21 +0800)]
Merge branch 'bugfix/rename_ldgen_common_module_v3.3' into 'release/v3.3'

ldgen: rename common module(v3.3)

See merge request idf/esp-idf!4764

6 years agoldgen: rename common module
Renz Christian Bagaporo [Sat, 13 Apr 2019 00:59:32 +0000 (08:59 +0800)]
ldgen: rename common module

6 years agoMerge branch 'bugfix/name_conflict_esp32_project_ld_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Sun, 14 Apr 2019 02:29:39 +0000 (10:29 +0800)]
Merge branch 'bugfix/name_conflict_esp32_project_ld_v3.3' into 'release/v3.3'

esp32: Rename esp32.common.ld to esp32.project.ld to avoid build errors when downgrading (v3.3)

See merge request idf/esp-idf!4732

6 years agoMerge branch 'bugfix/increase_block_scan_timeout_value_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Fri, 12 Apr 2019 15:32:55 +0000 (23:32 +0800)]
Merge branch 'bugfix/increase_block_scan_timeout_value_v3.3' into 'release/v3.3'

esp32: increase WiFi block scan timeout value (backport v3.3)

See merge request idf/esp-idf!4696

6 years agoMerge branch 'bugfix/bootloader_flash_crypt_cnt_ff_v3.3' into 'release/v3.3'
Angus Gratton [Fri, 12 Apr 2019 05:42:19 +0000 (13:42 +0800)]
Merge branch 'bugfix/bootloader_flash_crypt_cnt_ff_v3.3' into 'release/v3.3'

flash encryption: reduce FLASH_CRYPT_CNT bit width to 7 bits (v3.3)

See merge request idf/esp-idf!4727

6 years agoMerge branch 'bugfix/remove_second_sha_enable_v3.3' into 'release/v3.3'
Angus Gratton [Fri, 12 Apr 2019 05:28:39 +0000 (13:28 +0800)]
Merge branch 'bugfix/remove_second_sha_enable_v3.3' into 'release/v3.3'

esp32/sha: Remove second enabling in esp_sha_lock_engine_common (backport v3.3)

See merge request idf/esp-idf!4747

6 years agoesp32/sha: Remove second enabling in esp_sha_lock_engine_common
Konstantin Kondrashov [Wed, 10 Apr 2019 12:49:27 +0000 (20:49 +0800)]
esp32/sha: Remove second enabling in esp_sha_lock_engine_common

6 years agoMerge branch 'feature/mfg_util_v3.3' into 'release/v3.3'
Angus Gratton [Wed, 10 Apr 2019 07:32:05 +0000 (15:32 +0800)]
Merge branch 'feature/mfg_util_v3.3' into 'release/v3.3'

mfg_util: Add changes to mfg_util as per changes in nvs_util (backport v3.3)

See merge request idf/esp-idf!4706

6 years agoMerge branch 'bugfix/httpd_accept_conn_v3.3' into 'release/v3.3'
Angus Gratton [Wed, 10 Apr 2019 05:47:09 +0000 (13:47 +0800)]
Merge branch 'bugfix/httpd_accept_conn_v3.3' into 'release/v3.3'

esp_http_server : Only accept new connections if server has capacity to handle more (backport v3.3)

See merge request idf/esp-idf!4720

6 years agoMerge branch 'bugfix/prov_fix_conn_id_v3.3' into 'release/v3.3'
Angus Gratton [Wed, 10 Apr 2019 05:38:40 +0000 (13:38 +0800)]
Merge branch 'bugfix/prov_fix_conn_id_v3.3' into 'release/v3.3'

(backport v3.3) Unified Provisioning: Miscellaneous fixes in BLE

See merge request idf/esp-idf!4735

6 years agoUnified Provisioning: Miscellaneous fixes in BLE
Hrishikesh Dhayagude [Wed, 3 Apr 2019 10:15:34 +0000 (15:45 +0530)]
Unified Provisioning: Miscellaneous fixes in BLE

1. Pass the correct conn_id to protocomm_req_handle
In transport_simple_ble_write(), passing param->exec_write.conn_id would
be invalid. Instead param->write.conn_id should be passed
Similar change in transport_simple_ble_exec_write() to use
param->exec_write.conn_id

2. simple_ble_start() assumes that the mode is BLE only and enables
Bluetooth controller accordingly. For, cases having BT + BLE like Alexa
(Provisioning over BLE + Audio over classic BT), this assumption should
be removed.

6 years agoesp32: Rename esp32.common.ld to esp32.project.ld to avoid build errors when downgrading
Angus Gratton [Wed, 13 Mar 2019 22:59:31 +0000 (09:59 +1100)]
esp32: Rename esp32.common.ld to esp32.project.ld to avoid build errors when downgrading

Linker script generator produces build/esp32/esp32.common.ld from
components/esp32/ld/esp32.common.ld.in

This works fine until IDF is downgraded to V3.1 which uses components/esp32/ld/esp32.common.ld and
doesn't track build/esp32/esp32.common.ld at all.

At this point, the linker runs in the build/esp32 directory and "-T esp32.common.ld" picks up the
linker script generated .ld file, which causes mis-builds.

As reported on forums: https://esp32.com/viewtopic.php?f=13&t=9684&p=40105

6 years agoefuse/flash encryption: Reduce FLASH_CRYPT_CNT to a 7 bit efuse field
Angus Gratton [Thu, 28 Mar 2019 23:28:42 +0000 (10:28 +1100)]
efuse/flash encryption: Reduce FLASH_CRYPT_CNT to a 7 bit efuse field

8th bit is not used by hardware.

As reported https://esp32.com/viewtopic.php?f=2&t=7800&p=40895#p40894

6 years agoesp32: increase WiFi block scan timeout value
liu zhifu [Thu, 4 Apr 2019 01:57:36 +0000 (09:57 +0800)]
esp32: increase WiFi block scan timeout value

Increase WiFi block scan internal timeout value.

6 years agoesp_http_server : Test added to check limit on max_open_sockets config option
Anurag Kar [Wed, 3 Apr 2019 13:31:40 +0000 (19:01 +0530)]
esp_http_server : Test added to check limit on max_open_sockets config option

6 years agoesp_http_server : Only accept new connections if server has capacity to handle more
Anurag Kar [Mon, 1 Apr 2019 09:22:04 +0000 (14:52 +0530)]
esp_http_server : Only accept new connections if server has capacity to handle more

This fix prevents HTTP server from accepting new connections when the total count of connected
sockets has reached the max_open_sockets limit set during configuration. The pending connections
are kept in backlog until atleast one of the connected sockets is closed. The maximum number of
connection requests that can kept in backlog is specified as backlog_conn configuration option.
Note that this modification has no effect when LRU purge is enabled.

Also added sanity check on setting for max_open_sockets during configuration.

Solution suggested by jimparis https://github.com/espressif/esp-idf/issues/3183#issue-421234265

Closes https://github.com/espressif/esp-idf/issues/3183

6 years agomfg_util: Add support for comments in input config csv file only
Shivani Tipnis [Thu, 4 Apr 2019 10:31:40 +0000 (16:01 +0530)]
mfg_util: Add support for comments in input config csv file only

6 years agoMerge branch 'bugfix/coex_bt_disconn_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Thu, 4 Apr 2019 12:53:15 +0000 (20:53 +0800)]
Merge branch 'bugfix/coex_bt_disconn_v3.3' into 'release/v3.3'

components/coex: Fix BT disconnecting due to too many reset BB

See merge request idf/esp-idf!4680

6 years agoMerge branch 'bugfix/btdm_fix_warning_when_disable_logs_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Thu, 4 Apr 2019 10:45:31 +0000 (18:45 +0800)]
Merge branch 'bugfix/btdm_fix_warning_when_disable_logs_v3.3' into 'release/v3.3'

components/bt: Fix warning when disable debug logs or in release mode and improve the code structure

See merge request idf/esp-idf!4619

6 years agoMerge branch 'bugfix/btdm_disconn_with_apple_device_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Thu, 4 Apr 2019 10:45:13 +0000 (18:45 +0800)]
Merge branch 'bugfix/btdm_disconn_with_apple_device_v3.3' into 'release/v3.3'

components/bt: Fix disconnect with apple device(backport 3.3)

See merge request idf/esp-idf!4666

6 years agoMerge branch 'bugfix/heap_caps_int_overflows_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Thu, 4 Apr 2019 09:59:40 +0000 (17:59 +0800)]
Merge branch 'bugfix/heap_caps_int_overflows_v3.3' into 'release/v3.3'

heap: Add integer overflow checks on MALLOC_CAP_32BIT & MALLOC_CAP_EXEC (v3.3)

See merge request idf/esp-idf!4570

6 years agoMerge branch 'bugfix/external_rtc_start_fail_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Thu, 4 Apr 2019 09:59:24 +0000 (17:59 +0800)]
Merge branch 'bugfix/external_rtc_start_fail_v3.3' into 'release/v3.3'

Bugfix/external rtc start fail (v3.3)

See merge request idf/esp-idf!4663

6 years agomfg_util: Add changes to mfg_util as per changes in nvs_util
Shivani Tipnis [Thu, 4 Apr 2019 08:16:36 +0000 (13:46 +0530)]
mfg_util: Add changes to mfg_util as per changes in nvs_util

revert changeson this file

Update README for mfg util

Update to correct coding style of script

(cherry picked from commit a88b4048)

6 years agocomponents/coex: Fix BT disconnecting due to too many reset BB
baohongde [Wed, 3 Apr 2019 12:49:37 +0000 (20:49 +0800)]
components/coex: Fix BT disconnecting due to too many reset BB

Update coex version to 1.1.6

6 years agoMerge branch 'bugfix/fix_some_sta_certification_issues_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Thu, 4 Apr 2019 02:27:36 +0000 (10:27 +0800)]
Merge branch 'bugfix/fix_some_sta_certification_issues_v3.3' into 'release/v3.3'

esp32: fix some STA certification issues (backport v3.3)

See merge request idf/esp-idf!4667

6 years agocomponents/bt: Fix disconnect with apple device(backport 3.3)
baohongde [Wed, 3 Apr 2019 09:24:52 +0000 (17:24 +0800)]
components/bt: Fix disconnect with apple device(backport 3.3)

        1. Fix disconnect with apple device
        2. Fix hci_refresh_enc_key_cmd will be ignored
        3. Fix hci_refresh_enc_key_cmd will crash

6 years agoMerge branch 'feature/nvs_partition_util_v3.3' into 'release/v3.3'
Angus Gratton [Wed, 3 Apr 2019 03:15:27 +0000 (11:15 +0800)]
Merge branch 'feature/nvs_partition_util_v3.3' into 'release/v3.3'

Add support to include comments in csv file (backport v3.3)

See merge request idf/esp-idf!4670

6 years agonvs_util: Add support to include comments in csv file
Shivani Tipnis [Mon, 1 Apr 2019 09:55:20 +0000 (15:25 +0530)]
nvs_util: Add support to include comments in csv file

Closes https://github.com/espressif/esp-idf/issues/2965

(cherry picked from commit 66e38e9bac44e2d4dad071844e78c973405d658d)

6 years agoesp32: fix some STA certification issues
Liu Zhi Fu [Mon, 1 Apr 2019 13:39:47 +0000 (21:39 +0800)]
esp32: fix some STA certification issues

Fix following STA WFA certification issues:
1. STA HT2040 coexist
2. Disallow WEP/TKIP with HT rates
3. WPA2 improvement
4. Minor refactor for WiFi internal global variable auth_type

6 years agoMerge branch 'feature/nvs_part_util_3.3' into 'release/v3.3'
Angus Gratton [Tue, 2 Apr 2019 05:31:57 +0000 (13:31 +0800)]
Merge branch 'feature/nvs_part_util_3.3' into 'release/v3.3'

Add support as per encryption and multipage blob changes in NVS Partition Utility (backport v3.3)

See merge request idf/esp-idf!4626

6 years agoMerge branch 'bugfix/esp_prov_ble_rw_except_backport_v3d3' into 'release/v3.3'
Angus Gratton [Tue, 2 Apr 2019 04:20:15 +0000 (12:20 +0800)]
Merge branch 'bugfix/esp_prov_ble_rw_except_backport_v3d3' into 'release/v3.3'

esp_prov : Catch DBus exception when reading/writing to BLE GATT characteristic (backport v3.3)

See merge request idf/esp-idf!4659

6 years agoMerge branch 'bugfix/http_server_lf_term_hdr_backport_v3d3' into 'release/v3.3'
Angus Gratton [Tue, 2 Apr 2019 04:19:05 +0000 (12:19 +0800)]
Merge branch 'bugfix/http_server_lf_term_hdr_backport_v3d3' into 'release/v3.3'

HTTP Server : Fix for tolerating LF terminated headers (backport v3.3)

See merge request idf/esp-idf!4658

6 years agoMerge branch 'bugfix/ldgen_type_1_fails_on_windows_v3.3' into 'release/v3.3'
Angus Gratton [Tue, 2 Apr 2019 03:47:18 +0000 (11:47 +0800)]
Merge branch 'bugfix/ldgen_type_1_fails_on_windows_v3.3' into 'release/v3.3'

Fix library path parsing in windows (backport v3.3)

See merge request idf/esp-idf!4609

6 years agoFix external start fail
maojianxin [Sat, 22 Dec 2018 06:19:46 +0000 (14:19 +0800)]
Fix external start fail

6 years agosoc/rtc: Bypass touchpad current to external 32k crystal oscillator
Zhang Jun Yi [Wed, 23 May 2018 07:24:09 +0000 (15:24 +0800)]
soc/rtc: Bypass touchpad current to external 32k crystal oscillator

6 years agoMerge branch 'feature/btdm_add_mesh_adv_type_and_srv_uuid_for_dup_scan_except_v3...
Jiang Jiang Jian [Mon, 1 Apr 2019 13:49:29 +0000 (21:49 +0800)]
Merge branch 'feature/btdm_add_mesh_adv_type_and_srv_uuid_for_dup_scan_except_v3.3' into 'release/v3.3'

Component/bt: add mesh beacon adv and svc uuid for duplicate scan exceptional list (backport v3.3)

See merge request idf/esp-idf!4605

6 years agoMerge branch 'bugfix/btdm_modify_HCI_GET_CMD_BUF_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Mon, 1 Apr 2019 13:18:18 +0000 (21:18 +0800)]
Merge branch 'bugfix/btdm_modify_HCI_GET_CMD_BUF_v3.3' into 'release/v3.3'

Component/bt: modify HCI_GET_CMD_BUF (backport v3.3)

See merge request idf/esp-idf!4598

6 years agoMerge branch 'bugfix/increase_block_scan_time_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Mon, 1 Apr 2019 12:54:56 +0000 (20:54 +0800)]
Merge branch 'bugfix/increase_block_scan_time_v3.3' into 'release/v3.3'

wifi: increase the block scan time( backport v3.3)

See merge request idf/esp-idf!4652

6 years agoesp_prov : Catch DBus exception when reading/writing to BLE GATT characteristic
Anurag Kar [Thu, 14 Mar 2019 11:58:26 +0000 (17:28 +0530)]
esp_prov : Catch DBus exception when reading/writing to BLE GATT characteristic

This is useful in the context of provisioning when server initiates disconnection if secure session establishment fails.

6 years agoHTTP Server : Added example tests for verifying parser behavior on arbitrary HTTP...
Anurag Kar [Fri, 15 Mar 2019 21:23:16 +0000 (02:53 +0530)]
HTTP Server : Added example tests for verifying parser behavior on arbitrary HTTP terminations (LF, CRLF, etc.)

6 years agoHTTP Server : Fix for tolerating LF terminated headers
Anurag Kar [Fri, 15 Mar 2019 21:20:13 +0000 (02:50 +0530)]
HTTP Server : Fix for tolerating LF terminated headers

List of changes:
* When parsing requests, count termination from LF characters only
* Correct memcpy() length parameter in httpd_unrecv() (pointed out by jimparis in GitHub issue thread)
* Use ssize_t to store results of length subtractions during parsing
* Modify some comments to reduce ambiguity

Closes https://github.com/espressif/esp-idf/issues/3182

6 years agowifi: increase the block scan time because of changing channel will take at 30ms...
zhangyanjiao [Mon, 1 Apr 2019 06:49:22 +0000 (14:49 +0800)]
wifi: increase the block scan time because of changing channel will take at 30ms when BT/WiFi coexist

6 years agoMerge branch 'bugfix/modify_wifi_reason_code_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Mon, 1 Apr 2019 06:26:56 +0000 (14:26 +0800)]
Merge branch 'bugfix/modify_wifi_reason_code_v3.3' into 'release/v3.3'

wifi: modify wifi reason code (backport v3.3)

See merge request idf/esp-idf!4648

6 years agowifi: modify wifi reason code
zhangyanjiao [Mon, 1 Apr 2019 03:29:29 +0000 (11:29 +0800)]
wifi: modify wifi reason code

6 years agoComponent/bt: add mesh beacon adv and svc uuid for duplicate scan exceptional list
zhiweijian [Thu, 21 Mar 2019 11:42:44 +0000 (19:42 +0800)]
Component/bt: add mesh beacon adv and svc uuid for duplicate scan exceptional list

6 years agonvs_util: Add support for creation of unique encryption keys
Shivani Tipnis [Wed, 28 Nov 2018 05:26:06 +0000 (10:56 +0530)]
nvs_util: Add support for creation of unique encryption keys

(cherry picked from commit e1f466e708c2c1b825e955ec28b70dc3058f9262)

6 years agonvs_util: Add support for creation of unique encryption keys
Shivani Tipnis [Wed, 28 Nov 2018 05:26:06 +0000 (10:56 +0530)]
nvs_util: Add support for creation of unique encryption keys

(cherry picked from commit 8b88b3303d83f5f03249e7b3410f6ecabaa00396)

6 years agonvs_util: Fix to support write of multiple singlepage big blob data
Shivani Tipnis [Thu, 14 Feb 2019 09:47:57 +0000 (15:17 +0530)]
nvs_util: Fix to support write of multiple singlepage big blob data

Closes https://github.com/espressif/esp-idf/issues/3011

(cherry picked from commit 60b5cdde2074c572e68754d9f1402c112d9ef4c9)

6 years agonvs_util: Fix to support write of multiple singlepage big blob data
Shivani Tipnis [Thu, 14 Feb 2019 09:47:57 +0000 (15:17 +0530)]
nvs_util: Fix to support write of multiple singlepage big blob data

Closes https://github.com/espressif/esp-idf/issues/3011

(cherry picked from commit ce4944edf01b2a4c997eafe36b66d71f98f2fe29)
(cherry picked from commit 76e4ea7f68526c9931218f8705dd4e20661b97e4)

6 years agonvs_util: Fix to support write of multiple singlepage big blob data Closes https...
Shivani Tipnis [Thu, 14 Feb 2019 09:47:57 +0000 (15:17 +0530)]
nvs_util: Fix to support write of multiple singlepage big blob data Closes https://github.com/espressif/esp-idf/issues/3011

(cherry picked from commit 21688e3bffee80ddfbef5364a44dd1821e28c776)
(cherry picked from commit 3ec0f415a550f95f1d028be317fc0591c661c0fd)

6 years agocomponents/bt: Fix warning when disable debug logs or in release mode and improve...
baohongde [Tue, 26 Mar 2019 06:46:36 +0000 (14:46 +0800)]
components/bt: Fix warning when disable debug logs or in release mode and improve the code structure

6 years agoMerge branch 'mesh/decouple_addition_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Tue, 26 Mar 2019 03:04:25 +0000 (11:04 +0800)]
Merge branch 'mesh/decouple_addition_v3.3' into 'release/v3.3'

Decouple Wifi and ESP-Mesh to reduce bin size (backport v3.3)

See merge request idf/esp-idf!4521

6 years agoMerge branch 'bugfix/cmake_component_path_v3.3' into 'release/v3.3'
Ivan Grokhotkov [Mon, 25 Mar 2019 03:24:42 +0000 (11:24 +0800)]
Merge branch 'bugfix/cmake_component_path_v3.3' into 'release/v3.3'

cmake: Set COMPONENT_PATH during early expansion of dependencies (v3.3)

See merge request idf/esp-idf!4595

6 years agoldgen: fix library path parsing in windows
Renz Christian Bagaporo [Fri, 15 Mar 2019 10:31:30 +0000 (18:31 +0800)]
ldgen: fix library path parsing in windows

Closes https://github.com/espressif/esp-idf/issues/3173