]> granicus.if.org Git - esp-idf/log
esp-idf
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

6 years agoComponent/bt: modify HCI_GET_CMD_BUF
zhiweijian [Tue, 19 Mar 2019 13:48:26 +0000 (21:48 +0800)]
Component/bt: modify HCI_GET_CMD_BUF

6 years agoDecouple Wifi and ESP-Mesh to reduce bin size
chenyudong [Fri, 15 Mar 2019 12:22:07 +0000 (20:22 +0800)]
Decouple Wifi and ESP-Mesh to reduce bin size

Do not link mesh code when mesh is not used

6 years agocmake: Set COMPONENT_PATH during early expansion of dependencies
Angus Gratton [Tue, 19 Mar 2019 23:42:29 +0000 (10:42 +1100)]
cmake: Set COMPONENT_PATH during early expansion of dependencies

Works around bug where components/soc/CMakeLists.txt was testing "EXISTS
${COMPONENT_PATH}/${SOC_NAME}" and this test could pass during early
expansion if COMPONENT_PATH was empty and a directory /esp32 exists
on Windows.

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

6 years agoMerge branch 'bugfix/error_in_bootloader_loadprohibited_v3.3' into 'release/v3.3'
Ivan Grokhotkov [Thu, 21 Mar 2019 10:22:24 +0000 (18:22 +0800)]
Merge branch 'bugfix/error_in_bootloader_loadprohibited_v3.3' into 'release/v3.3'

esp_tool: Exclude elf-sha256 from bootloader (backport v3.3)

See merge request idf/esp-idf!4560

6 years agoMerge branch 'bugfix/mesh_memory_leak_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Thu, 21 Mar 2019 03:45:34 +0000 (11:45 +0800)]
Merge branch 'bugfix/mesh_memory_leak_v3.3' into 'release/v3.3'

mesh: fix memory leak and group send (backport v3.3)

See merge request idf/esp-idf!4517

6 years agoMerge branch 'bugfix/sphinx_build_failure_on_rtd_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Thu, 21 Mar 2019 03:44:01 +0000 (11:44 +0800)]
Merge branch 'bugfix/sphinx_build_failure_on_rtd_v3.3' into 'release/v3.3'

docs: Upgraded sphinx package version to prevent build failures on readthedocs…

See merge request idf/esp-idf!4553

6 years agoMerge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable_v3.3'...
Jiang Jiang Jian [Wed, 20 Mar 2019 13:40:28 +0000 (21:40 +0800)]
Merge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable_v3.3' into 'release/v3.3'

Component/bt: fix no adv report when scaning with sleep enable (backport v3.3)

See merge request idf/esp-idf!4536

6 years agoMerge branch 'bugfix/btdm_fix_build_warning_when_bluedroid_disable_log_v3.3' into...
Jiang Jiang Jian [Wed, 20 Mar 2019 13:22:33 +0000 (21:22 +0800)]
Merge branch 'bugfix/btdm_fix_build_warning_when_bluedroid_disable_log_v3.3' into 'release/v3.3'

Component/bt: fix build warning when bluedroid disable log (backport V3.3)

See merge request idf/esp-idf!4565

6 years agoMerge branch 'bugfix/btdm_fix_blufi_prepare_write_crash_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Wed, 20 Mar 2019 10:21:10 +0000 (18:21 +0800)]
Merge branch 'bugfix/btdm_fix_blufi_prepare_write_crash_v3.3' into 'release/v3.3'

Component/bt: fix blufi prepare write crash (backport v3.3)

See merge request idf/esp-idf!4562

6 years agoheap: Add integer overflow checks on MALLOC_CAP_32BIT & MALLOC_CAP_EXEC
Angus Gratton [Sun, 10 Mar 2019 23:49:51 +0000 (10:49 +1100)]
heap: Add integer overflow checks on MALLOC_CAP_32BIT & MALLOC_CAP_EXEC

6 years agomesh: fix memory leak and group send
chenyudong [Mon, 18 Mar 2019 07:02:00 +0000 (15:02 +0800)]
mesh: fix memory leak and group send

fix a bug in group send
fix esp_mesh_set_router when router_t not initialized
fix mesh memory leak with invalid option

6 years agoComponent/bt: fix build warning when bluedroid disable log
zhiweijian [Fri, 15 Mar 2019 12:59:55 +0000 (20:59 +0800)]
Component/bt: fix build warning when bluedroid disable log

6 years agoComponent/bt: fix blufi prepare write crash
zhiweijian [Mon, 25 Feb 2019 06:48:46 +0000 (14:48 +0800)]
Component/bt: fix blufi prepare write crash

6 years agoesp_tool: Exclude elf-sha256 from bootloader
Konstantin Kondrashov [Fri, 15 Mar 2019 12:02:16 +0000 (20:02 +0800)]
esp_tool: Exclude elf-sha256 from bootloader

Closes: IDFGH-690
6 years agoMerge branch 'bugfix/fix_the_bug_cal_PMK_too_long_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Wed, 20 Mar 2019 03:29:35 +0000 (11:29 +0800)]
Merge branch 'bugfix/fix_the_bug_cal_PMK_too_long_v3.3' into 'release/v3.3'

wifi: fix the bug that calculate PMK too long (backport v3.3)

See merge request idf/esp-idf!4530

6 years agodocs: Upgraded sphinx package version to prevent build failures on readthedocs site...
krzychb [Tue, 19 Mar 2019 15:47:39 +0000 (16:47 +0100)]
docs: Upgraded sphinx package version to prevent build failures on readthedocs site. Upgraded versions of other packages that are used during documentation build. (backport v3.3)

6 years agoComponent/bt: fix no adv report when scaning with sleep enable
zhiweijian [Mon, 18 Mar 2019 08:35:50 +0000 (16:35 +0800)]
Component/bt: fix no adv report when scaning with sleep enable

6 years agowifi: fix the bug that when call set_config before connecting to an encrypted AP...
zhangyanjiao [Mon, 18 Mar 2019 06:45:33 +0000 (14:45 +0800)]
wifi: fix the bug that when call set_config before connecting to an encrypted AP, PMK will be recalculated

6 years agoMerge branch 'bugfix/mdns_add_remove_multiple_srv_master_3.3' into 'release/v3.3'
Jiang Jiang Jian [Sun, 17 Mar 2019 07:41:34 +0000 (15:41 +0800)]
Merge branch 'bugfix/mdns_add_remove_multiple_srv_master_3.3' into 'release/v3.3'

mdns: fix possible crash if tx packet contained answer to removed service (backport 3.3)

See merge request idf/esp-idf!4480

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

secure boot: Fix esp_sha INT WDT, switch to using mbedTLS API  (backport v3.3)

See merge request idf/esp-idf!4512

6 years agoMerge branch 'bugfix/bb_watchdog_reset_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Fri, 15 Mar 2019 10:49:32 +0000 (18:49 +0800)]
Merge branch 'bugfix/bb_watchdog_reset_v3.3' into 'release/v3.3'

esp32: add WiFi baseband watchdog reset

See merge request idf/esp-idf!4486

6 years agoMerge branch 'test/fix_some_ut_not_assigned_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Fri, 15 Mar 2019 08:11:53 +0000 (16:11 +0800)]
Merge branch 'test/fix_some_ut_not_assigned_v3.3' into 'release/v3.3'

test: fix some ut case not assigned (backport v3.3)

See merge request idf/esp-idf!4488

6 years agoMerge branch 'bugfix/console_allow_buffered_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Fri, 15 Mar 2019 08:11:30 +0000 (16:11 +0800)]
Merge branch 'bugfix/console_allow_buffered_v3.3' into 'release/v3.3'

console example: use buffered stdout by default (backport v3.3)

See merge request idf/esp-idf!4508

6 years agoesp32: Chunk input blocks for esp_sha() function performance, add perf test
Angus Gratton [Mon, 11 Mar 2019 07:24:32 +0000 (18:24 +1100)]
esp32: Chunk input blocks for esp_sha() function performance, add perf test

6 years agosecure boot: Use mbedtls_sha256() not esp_sha()
Angus Gratton [Fri, 8 Mar 2019 05:16:55 +0000 (16:16 +1100)]
secure boot: Use mbedtls_sha256() not esp_sha()

Latter is probably compiled into most firmwares already, saves some size.

Ref https://github.com/espressif/esp-idf/issues/3127

6 years agoesp32 hwcrypto: Prevent esp_sha() from disabling interrupts for extended period
Angus Gratton [Fri, 8 Mar 2019 05:14:15 +0000 (16:14 +1100)]
esp32 hwcrypto: Prevent esp_sha() from disabling interrupts for extended period

* Closes https://github.com/espressif/esp-idf/issues/3127
* Closes IDFGH-681

Also reported at https://esp32.com/viewtopic.php?f=13&t=9506

6 years agoMerge branch 'bugfix/remove_malloc_ble_prov_v3.3' into 'release/v3.3'
Angus Gratton [Fri, 15 Mar 2019 06:29:18 +0000 (14:29 +0800)]
Merge branch 'bugfix/remove_malloc_ble_prov_v3.3' into 'release/v3.3'

(backport v3.3) Protocomm BLE: Make changes in handling BLE read/write requests

See merge request idf/esp-idf!4496

6 years agoMerge branch 'bugfix/ble_assert_8192_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Fri, 15 Mar 2019 06:01:50 +0000 (14:01 +0800)]
Merge branch 'bugfix/ble_assert_8192_v3.3' into 'release/v3.3'

fix the bug assert(8192 0) in rwble.c 234

See merge request idf/esp-idf!4490

6 years agoMerge branch 'feature/trim_idf_ver_to_fit_32bit_field_v3.3' into 'release/v3.3'
Angus Gratton [Fri, 15 Mar 2019 03:38:32 +0000 (11:38 +0800)]
Merge branch 'feature/trim_idf_ver_to_fit_32bit_field_v3.3' into 'release/v3.3'

tools/test_build_system: Trim IDF_VER to fit a 32-bit field (backport v3.3)

See merge request idf/esp-idf!4497

6 years agoexamples: don't enable buffering on stdout in console examples
Ivan Grokhotkov [Wed, 13 Mar 2019 12:19:55 +0000 (20:19 +0800)]
examples: don't enable buffering on stdout in console examples

newlib uses significantly more stack space when printing to an
unbuffered stream. To reduce the amount of stack space required to
use the console, don’t disable buffering. linenoise should support
unbuffered stdout instead.

6 years agoconsole/linenoise: support buffered stdout
Ivan Grokhotkov [Wed, 13 Mar 2019 12:17:25 +0000 (20:17 +0800)]
console/linenoise: support buffered stdout

6 years agotools/test_build_system: Add tests with long IDF_VER
KonstantinKondrashov [Wed, 13 Mar 2019 12:43:33 +0000 (20:43 +0800)]
tools/test_build_system: Add tests with long IDF_VER

6 years agocmake: Trim IDF_VER to fit a 32-bit field
Konstantin Kondrashov [Wed, 13 Mar 2019 12:04:43 +0000 (20:04 +0800)]
cmake: Trim IDF_VER to fit a 32-bit field

6 years agomake: Trim IDF_VER to fit a 32-bit field
Konstantin Kondrashov [Wed, 13 Mar 2019 12:01:28 +0000 (20:01 +0800)]
make: Trim IDF_VER to fit a 32-bit field

Closes: https://github.com/espressif/esp-idf/issues/3131
6 years agoProtocomm BLE: Make changes in handling BLE read/write requests
Hrishikesh Dhayagude [Fri, 8 Mar 2019 06:48:40 +0000 (12:18 +0530)]
Protocomm BLE: Make changes in handling BLE read/write requests

1. Remove unwanted malloc during BLE send response
2. Populate the missing parameters in the response - handle, offset, auth_req

6 years agofix the bug assert(8192 0) in rwble.c 234
Tian Hao [Tue, 12 Mar 2019 03:21:47 +0000 (11:21 +0800)]
fix the bug assert(8192 0) in rwble.c 234

6 years agotest: fix some ut case not assigned:
He Yin Ling [Sun, 10 Mar 2019 06:15:43 +0000 (14:15 +0800)]
test: fix some ut case not assigned:

we didn't remove UT case file correctly for cmake build. even we use
artifact from make jobs, cmake case file will be used to assign test.

6 years agoesp32: add WiFi baseband watchdog reset
Liu Zhi Fu [Wed, 6 Mar 2019 11:02:55 +0000 (19:02 +0800)]
esp32: add WiFi baseband watchdog reset

When WiFi enter into a special status (11b weak mode), then reset
Wifi baseband to recover to normal mode.

6 years agomdns: fix possible crash when probing on particular interface with duplicated service...
David Cermak [Mon, 11 Mar 2019 10:49:29 +0000 (11:49 +0100)]
mdns: fix possible crash when probing on particular interface with duplicated service instances due to naming conflicts on network

Issue: MDNS server initially sends probing packets to resolve naming confilicts with already registered service instances. In case of a conflict, instance name is altered and probing restarts. Original instance however wasnnot removed from the structure and upon service removal only one entry was removed and a dangling service might have been kept in the structure to bring about a crash.
Resolution: Keep only one instance of a service in the probing structure.

Closes IDF-498

6 years agomdns: enable pcbs before starting service thread to avoid updating pcb's internal...
David Cermak [Mon, 4 Mar 2019 11:32:10 +0000 (12:32 +0100)]
mdns: enable pcbs before starting service thread to avoid updating pcb's internal variables from concurent tasks

possible race condition: user task runs mdns_init, which enables pcbs while mdns-task already created could execute enable/disable of the same pcbs if an appropriate system event received

6 years agomdns: fix possible deadlock on mdns deinit calling mdns_free()
David Cermak [Mon, 4 Mar 2019 10:13:52 +0000 (11:13 +0100)]
mdns: fix possible deadlock on mdns deinit calling mdns_free()

mnds_free() initiates stop and delete timer tasks, which after locking the mutex could lead to a dead lock in case timer task executed before deleting the task, as it would wait indefinitelly for unlocking the mutex. This condition is fixed by calling _mdns_stop_timer without locking the mutex, because there's no need to protect any data when stopping and deleting the timer task

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

6 years agomdsn: fix race condition in updating packet data from user task when failed to alloca...
David Cermak [Fri, 1 Mar 2019 15:59:38 +0000 (16:59 +0100)]
mdsn: fix race condition in updating packet data from user task when failed to allocate or queue a new service

Issue: mdns_service_add API allocates and queues an action to be processed in mdns task context; when allocation or queueing fails, allocated structure needs to be freed. Function _mdns_free_service did not only fee all the structures, but also updates packet data.
Resolution: Moved removal of packet data outside of _mdns_free_service function.

6 years agomdns: fix possible crash when packet scheduled to transmit contained service which...
David Cermak [Mon, 25 Feb 2019 13:29:39 +0000 (14:29 +0100)]
mdns: fix possible crash when packet scheduled to transmit contained service which might have been already removed

packets scheduled to transmit are pushed to action queue and removed from tx_queue_head structure, which is searched for all remaining services and while service is removed, then service questions/asnwers are also removed from this structure. This update fixes possible crash when packet is pushed to action queue, and when service is removed, its answers are removed from tx_queue_head, but not from action queue. this could lead to a crash when the packet is poped from action queue containing questions/answers to already removed (freed) service

Closes IDF-504

6 years agoMerge branch 'feature/btdm_add_adv_report_flow_control_v3.3' into 'release/v3.3'
Jiang Jiang Jian [Wed, 13 Mar 2019 13:23:09 +0000 (21:23 +0800)]
Merge branch 'feature/btdm_add_adv_report_flow_control_v3.3' into 'release/v3.3'

Component/bt: add BLE adv report flow control(Backport v3.3)

See merge request idf/esp-idf!4471

6 years agoMerge branch 'bugfix/confgen_expr_value_v3.3' into 'release/v3.3'
Angus Gratton [Wed, 13 Mar 2019 08:54:48 +0000 (16:54 +0800)]
Merge branch 'bugfix/confgen_expr_value_v3.3' into 'release/v3.3'

confgen: Fix bug with JSON metadata conditional range generation (v3.3)

See merge request idf/esp-idf!4469

6 years agoComponent/bt: add BLE adv report flow control
zhiweijian [Fri, 1 Mar 2019 13:59:55 +0000 (21:59 +0800)]
Component/bt: add BLE adv report flow control

6 years agoconfgen: Fix bug with JSON metadata conditional range generation
Angus Gratton [Fri, 1 Mar 2019 04:38:23 +0000 (15:38 +1100)]
confgen: Fix bug with JSON metadata conditional range generation

When generating JSON metadata for ranges where there are conditional ranges (ie different allowed range
depending on another config setting), the JSON metadata would always have the last named range as
the expression was not evaluated properly.

Thanks to ulfalizer on GitHub for pointing this out.

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

6 years agoMerge branch 'bugfix/mdns_incorrect_semaphore_use' into 'master'
Angus Gratton [Wed, 13 Mar 2019 05:11:45 +0000 (13:11 +0800)]
Merge branch 'bugfix/mdns_incorrect_semaphore_use' into 'master'

mdns: use binary semaphore instead of mutex when searching

See merge request idf/esp-idf!4464