]> granicus.if.org Git - esp-idf/log
esp-idf
5 years agoMerge branch 'bugfix/remove_second_sha_enable_v3.2' into 'release/v3.2'
Angus Gratton [Mon, 22 Apr 2019 23:38:00 +0000 (07:38 +0800)]
Merge branch 'bugfix/remove_second_sha_enable_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4780

5 years agoMerge branch 'bugfix/coex_decouple_wifi_and_bt_code_with_coexist_v3.2' into 'release...
Jiang Jiang Jian [Fri, 19 Apr 2019 05:31:06 +0000 (13:31 +0800)]
Merge branch 'bugfix/coex_decouple_wifi_and_bt_code_with_coexist_v3.2' into 'release/v3.2'

Decouple WiFi and BT with coexist to reduce bin size (backport v3.2)

See merge request idf/esp-idf!4811

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

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

See merge request idf/esp-idf!4650

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

add mesh test case in TC_IT_MESH_EST.yml and TC_IT_MESH_COMM.yml

add job form IT_02 to IT_08

5 years agoDecouple WiFi and BT with coexist to reduce bin size
XiaXiaotian [Wed, 20 Feb 2019 13:01:27 +0000 (21:01 +0800)]
Decouple WiFi and BT with coexist to reduce bin size

1. Do not link WiFi code when only BT or BLE is used and WiFi is not
used.

2. Do not link coexist code when CONFIG_SW_COEXIST_ENABLE is disabled.

5 years agoMerge branch 'bugfix/fix_some_wifi_and_coexist_bugs_0416_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Wed, 17 Apr 2019 06:24:32 +0000 (14:24 +0800)]
Merge branch 'bugfix/fix_some_wifi_and_coexist_bugs_0416_v3.2' into 'release/v3.2'

esp32: fix some WiFi and coexist bugs (backport v3.2)

See merge request idf/esp-idf!4803

5 years agoesp32: fix some WiFi and coexist bugs
liu zhifu [Tue, 16 Apr 2019 13:26:20 +0000 (21:26 +0800)]
esp32: fix some WiFi and coexist bugs

Fix following WiFi and coexist bugs:
1. Fix BT disconnecting due to too many reset BB
2. Fix the bug that no TBTT is generated after rx wrong beacon when WiFi/BT coexist
3. Fix a DelBA bug
4. Add out of memory check
5. Fix the bug that STA incorrectly receives packets when scanning in connected status
6. PHY4008: Disable BT TX in force wifi mode, and enable BT TX in un-force wifi mode

5 years agoMerge branch 'bugfix/fix_scan_and_connect_bugs_0415_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Tue, 16 Apr 2019 13:09:15 +0000 (21:09 +0800)]
Merge branch 'bugfix/fix_scan_and_connect_bugs_0415_v3.2' into 'release/v3.2'

fix wifi scan and connect bugs (backport v3.2)

See merge request idf/esp-idf!4772

5 years agoMerge branch 'bugfix/fix_deprecated_warning_with_dfs_init_auto_config_v3.2' into...
Jiang Jiang Jian [Tue, 16 Apr 2019 12:30:09 +0000 (20:30 +0800)]
Merge branch 'bugfix/fix_deprecated_warning_with_dfs_init_auto_config_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4791

5 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

5 years agoMerge branch 'bugfix/btdm_bugx_backport_3.2' into 'release/v3.2'
Jiang Jiang Jian [Tue, 16 Apr 2019 02:45:04 +0000 (10:45 +0800)]
Merge branch 'bugfix/btdm_bugx_backport_3.2' into 'release/v3.2'

Some bugs backport 3.2

See merge request idf/esp-idf!4773

5 years agoMerge branch 'bugfix/freemodbus_fix_critical_sections' into 'release/v3.2'
Angus Gratton [Tue, 16 Apr 2019 00:53:23 +0000 (08:53 +0800)]
Merge branch 'bugfix/freemodbus_fix_critical_sections' into 'release/v3.2'

freemodbus: fix critical sections to semaphore mutex (backport v3.2)

See merge request idf/esp-idf!4435

5 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

5 years agofix wifi scan and connect bugs:
zhangyanjiao [Mon, 15 Apr 2019 08:10:25 +0000 (16:10 +0800)]
fix wifi scan and connect bugs:
1. fix the bug block scan tiemout before scan finish
2. make menuconfig can set the WiFi mgmt short buffer num
3. modify wifi reason code
4. fix the bug PMK recal too long

5 years agoMerge branch 'bugfix/btdm_fix_warning_when_disable_logs_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Mon, 15 Apr 2019 10:52:09 +0000 (18:52 +0800)]
Merge branch 'bugfix/btdm_fix_warning_when_disable_logs_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4620

5 years agoMerge branch 'bugfix/btdm_fix_build_warning_when_bluedroid_disable_log_v3.2' into...
Jiang Jiang Jian [Mon, 15 Apr 2019 10:50:58 +0000 (18:50 +0800)]
Merge branch 'bugfix/btdm_fix_build_warning_when_bluedroid_disable_log_v3.2' into 'release/v3.2'

Component/bt: fix build warning when bluedroid disable log (backport v3.2)

See merge request idf/esp-idf!4566

5 years agoMerge branch 'mesh/decouple_addition_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Mon, 15 Apr 2019 09:06:00 +0000 (17:06 +0800)]
Merge branch 'mesh/decouple_addition_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4523

5 years agoSome bugs backport 3.2
baohongde [Mon, 15 Apr 2019 08:51:29 +0000 (16:51 +0800)]
Some bugs backport 3.2

1.Fix memory leak when set txpower
2.Fix some bugs
    Disconnect with apple device
    hci_refresh_enc_key_cmd will be ignore
    hci_refresh_enc_key_cmd will crash

5 years agoDecouple Wifi and ESP-Mesh to reduce bin size
chenyudong [Sun, 14 Apr 2019 12:36:14 +0000 (20:36 +0800)]
Decouple Wifi and ESP-Mesh to reduce bin size

Do not link mesh code when mesh is not used

5 years agoMerge branch 'bugfix/esp_sha_signing_sha256_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Sat, 13 Apr 2019 18:57:45 +0000 (02:57 +0800)]
Merge branch 'bugfix/esp_sha_signing_sha256_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4511

5 years agoMerge branch 'bugfix/cmake_component_path_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Sat, 13 Apr 2019 18:57:16 +0000 (02:57 +0800)]
Merge branch 'bugfix/cmake_component_path_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4594

5 years agoMerge branch 'feature/btdm_add_mesh_adv_type_and_srv_uuid_for_dup_scan_except_v3...
Jiang Jiang Jian [Sat, 13 Apr 2019 18:56:43 +0000 (02:56 +0800)]
Merge branch 'feature/btdm_add_mesh_adv_type_and_srv_uuid_for_dup_scan_except_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4606

5 years agoMerge branch 'bugfix/ci_tag_for_cmake_linter_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Sat, 13 Apr 2019 18:55:38 +0000 (02:55 +0800)]
Merge branch 'bugfix/ci_tag_for_cmake_linter_v3.2' into 'release/v3.2'

ci: A small CI stabilizing fix (backport v3.2)

See merge request idf/esp-idf!4710

5 years agoMerge branch 'bugfix/bootloader_flash_crypt_cnt_ff_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Sat, 13 Apr 2019 18:55:21 +0000 (02:55 +0800)]
Merge branch 'bugfix/bootloader_flash_crypt_cnt_ff_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4728

5 years agoMerge branch 'bugfix/wifi_modify_wifi_kconfig_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 12 Apr 2019 15:11:24 +0000 (23:11 +0800)]
Merge branch 'bugfix/wifi_modify_wifi_kconfig_v3.2' into 'release/v3.2'

esp32: modify WiFi Kconfig in order to achieve better compatility and performance (bakcport v3.2)

See merge request idf/esp-idf!4386

5 years agoMerge branch 'bugfix/mesh_memory_leak_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 12 Apr 2019 14:02:08 +0000 (22:02 +0800)]
Merge branch 'bugfix/mesh_memory_leak_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4519

5 years agoMerge branch 'bugfix/btdm_modify_HCI_GET_CMD_BUF_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 12 Apr 2019 13:58:51 +0000 (21:58 +0800)]
Merge branch 'bugfix/btdm_modify_HCI_GET_CMD_BUF_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4599

5 years agoMerge branch 'bugfix/btdm_add_scan_window_interval_check_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 12 Apr 2019 13:57:50 +0000 (21:57 +0800)]
Merge branch 'bugfix/btdm_add_scan_window_interval_check_v3.2' into 'release/v3.2'

Component/bt: add scan window and interval check when set scan params (backport v3.2)

See merge request idf/esp-idf!4311

5 years agoMerge branch 'bugfix/btdm_fix_blufi_prepare_write_crash_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 12 Apr 2019 13:57:23 +0000 (21:57 +0800)]
Merge branch 'bugfix/btdm_fix_blufi_prepare_write_crash_v3.2' into 'release/v3.2'

Component/bt: fix blufi prepare write crash (backport V3.2)

See merge request idf/esp-idf!4563

5 years agoMerge branch 'bugfix/btdm_fix_iOS_and_win10_compatibility_error_for_HID_v3.2' into...
Jiang Jiang Jian [Fri, 12 Apr 2019 13:56:40 +0000 (21:56 +0800)]
Merge branch 'bugfix/btdm_fix_iOS_and_win10_compatibility_error_for_HID_v3.2' into 'release/v3.2'

Component/bt: fix iOS and win10 compatibility error  for HID (backport v3.2)

See merge request idf/esp-idf!4424

5 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

5 years agoMerge branch 'bugfix/prov_fix_conn_id_v3.2' into 'release/v3.2'
Angus Gratton [Fri, 12 Apr 2019 05:46:06 +0000 (13:46 +0800)]
Merge branch 'bugfix/prov_fix_conn_id_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4734

5 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

5 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

5 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

5 years agomesh: fix memory leak and group send
chenyudong [Thu, 11 Apr 2019 12:43:38 +0000 (20:43 +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

5 years agoMerge branch 'bugfix/tw28146_make_wifi_iram_optimization_configurable_v3.2' into...
Jiang Jiang Jian [Thu, 11 Apr 2019 10:44:19 +0000 (18:44 +0800)]
Merge branch 'bugfix/tw28146_make_wifi_iram_optimization_configurable_v3.2' into 'release/v3.2'

esp32: make WiFi IRAM optimization configurable (backport v3.2)

See merge request idf/esp-idf!4040

5 years agoMerge branch 'bugfix/external_rtc_start_fail_v3.2' into 'release/v3.2'
Angus Gratton [Wed, 10 Apr 2019 06:17:41 +0000 (14:17 +0800)]
Merge branch 'bugfix/external_rtc_start_fail_v3.2' into 'release/v3.2'

Bugfix/external rtc start fail (v3.2)

See merge request idf/esp-idf!4662

5 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.

5 years agoMerge branch 'feature/mfg_util_v3.2' into 'release/v3.2'
Angus Gratton [Tue, 9 Apr 2019 01:19:43 +0000 (09:19 +0800)]
Merge branch 'feature/mfg_util_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4702

5 years agoMerge branch 'bugfix/heap_caps_int_overflows_v3.2' into 'release/v3.2'
Angus Gratton [Fri, 5 Apr 2019 01:31:03 +0000 (09:31 +0800)]
Merge branch 'bugfix/heap_caps_int_overflows_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4569

5 years agomfg_util: Add changes to mfg_util as per changes in nvs_util
Shivani Tipnis [Mon, 29 Oct 2018 07:49:20 +0000 (13:19 +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 a88b40483dc97305ff83a2b693ac9db64f3396e9)

5 years agoci: Fix runner choice for CMake verification job and change .check_job_template tag...
Anton Maklakov [Tue, 27 Nov 2018 08:31:37 +0000 (16:31 +0800)]
ci: Fix runner choice for CMake verification job and change .check_job_template tag to host_test

5 years agoMerge branch 'fix/spi_on_readonly_pins_v3.2' into 'release/v3.2'
Angus Gratton [Tue, 2 Apr 2019 04:29:06 +0000 (12:29 +0800)]
Merge branch 'fix/spi_on_readonly_pins_v3.2' into 'release/v3.2'

spi: fix the bug of connecting SPI peripheral to read-only pins (backport v3.2)

See merge request idf/esp-idf!4307

5 years agoMerge branch 'update/nvs_part_util_v3.2' into 'release/v3.2'
Angus Gratton [Tue, 2 Apr 2019 03:58:56 +0000 (11:58 +0800)]
Merge branch 'update/nvs_part_util_v3.2' into 'release/v3.2'

Update/nvs partition utility v3.2 (backport v3.2)

See merge request idf/esp-idf!4280

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

5 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

5 years agoMerge branch 'bugfix/build_fails_when_editor_assoc_with_py_scripts_v3.2' into 'releas...
Angus Gratton [Tue, 2 Apr 2019 01:40:10 +0000 (09:40 +0800)]
Merge branch 'bugfix/build_fails_when_editor_assoc_with_py_scripts_v3.2' into 'release/v3.2'

Fix issues with CMake builds when python scripts are associated with an editor (backport v3.2)

See merge request idf/esp-idf!4637

5 years agospi: fix the bug of connecting SPI peripheral to read-only pins
Michael (XIAO Xufeng) [Mon, 11 Feb 2019 06:17:31 +0000 (14:17 +0800)]
spi: fix the bug of connecting SPI peripheral to read-only pins

The requirements of pin capabilites is different for spi master and
slave.  The master needs CS, SCLK, MOSI to be output-able, while slave
needs MISO to be output-able.

Previous code is for master only.

This commit allows to place other 3 pins than MISO on input-only pins
for slaves. Refactoring for spi_common is also included.

Resolves https://github.com/espressif/esp-idf/issues/2455

5 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

5 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)

5 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)

5 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)

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

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

5 years agoci: test full build never runs '/usr/bin/env python' or similar
Renz Christian Bagaporo [Tue, 12 Mar 2019 05:28:06 +0000 (13:28 +0800)]
ci: test full build never runs '/usr/bin/env python' or similar

5 years agocmake: Fix for Python files executed directly, not via PYTHON variable
Renz Christian Bagaporo [Mon, 25 Mar 2019 02:41:28 +0000 (10:41 +0800)]
cmake: Fix for Python files executed directly, not via PYTHON variable

5 years agoMerge branch 'bugfix/mqtt_fragmented_packed_msg_3.2' into 'release/v3.2' v3.2 v3.2-rc
Ivan Grokhotkov [Mon, 25 Mar 2019 02:49:56 +0000 (10:49 +0800)]
Merge branch 'bugfix/mqtt_fragmented_packed_msg_3.2' into 'release/v3.2'

MQTT support for fragmented and packed messages (Backport 3.2)

See merge request idf/esp-idf!4593

5 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

5 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

5 years agotcp_transport: modification of ws to read headers first in order to read the exact...
David Cermak [Tue, 20 Nov 2018 02:31:19 +0000 (03:31 +0100)]
tcp_transport: modification of ws to read headers first in order to read the exact payload

closes https://github.com/espressif/esp-mqtt/issues/69

5 years agomqtt: support for BEFORE_CONNECT event in idf
David Cermak [Fri, 16 Nov 2018 10:42:58 +0000 (10:42 +0000)]
mqtt: support for BEFORE_CONNECT event in idf

Updated examples to use new event id, idf to use mqtt with fixed retained, oversized messages

5 years agoMerge branch 'bugfix/sphinx_build_failure_on_rtd_v3.2' into 'release/v3.2'
Krzysztof Budzynski [Thu, 21 Mar 2019 06:24:24 +0000 (14:24 +0800)]
Merge branch 'bugfix/sphinx_build_failure_on_rtd_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4554

5 years agoMerge branch 'bugfix/nvs_api_usage_in_simple_ota_example_v3.2' into 'release/v3.2'
Angus Gratton [Thu, 21 Mar 2019 05:06:48 +0000 (13:06 +0800)]
Merge branch 'bugfix/nvs_api_usage_in_simple_ota_example_v3.2' into 'release/v3.2'

Minor bugfix in simple ota example (backport v3.2)

See merge request idf/esp-idf!4584

5 years agobugfix(simple_ota): Compatible with V3.1 and V3.2
InfiniteYuan1 [Tue, 18 Dec 2018 03:50:33 +0000 (11:50 +0800)]
bugfix(simple_ota): Compatible with V3.1 and V3.2

(cherry picked from commit 0fa31d3e311e2e49b4a37ebf7c32cae2ee3070d4)

5 years agoMerge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable_v3.2'...
Jiang Jiang Jian [Wed, 20 Mar 2019 14:03:12 +0000 (22:03 +0800)]
Merge branch 'bugfix/btdm_fix_no_adv_report_when_scaning_with_sleep_enable_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4537

5 years agoesp32: make WiFi IRAM optimization configurable
Liu Zhi Fu [Thu, 27 Dec 2018 13:55:34 +0000 (21:55 +0800)]
esp32: make WiFi IRAM optimization configurable

With this feature, the WiFi IRAM optimization can be disabled/enabled via menuconfig.

5 years agoComponent/bt: fix iOS and win10 compatibility error for HID
zhiweijian [Thu, 28 Feb 2019 12:39:12 +0000 (20:39 +0800)]
Component/bt: fix iOS and win10 compatibility error  for HID

5 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

5 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

5 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

5 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.2)

5 years agoComponent/bt: fix no adv report when scanning with sleep enable
zhiweijian [Mon, 18 Mar 2019 09:32:09 +0000 (17:32 +0800)]
Component/bt: fix no adv report when scanning with sleep enable

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

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

See merge request idf/esp-idf!4495

5 years agoMerge branch 'bugfix/console_allow_buffered_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 15 Mar 2019 06:03:29 +0000 (14:03 +0800)]
Merge branch 'bugfix/console_allow_buffered_v3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4507

5 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.

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

5 years agoMerge branch 'feature/btdm_add_update_duplicate_scan_exceptional_list_apis_v3.2'...
Jiang Jiang Jian [Fri, 15 Mar 2019 02:46:57 +0000 (10:46 +0800)]
Merge branch 'feature/btdm_add_update_duplicate_scan_exceptional_list_apis_v3.2' into 'release/v3.2'

Component/bt: add update duplicate scan exceptional list APIs

See merge request idf/esp-idf!4494

5 years agoComponent/bt: add update duplicate scan exceptional list APIs
zhiweijian [Wed, 21 Nov 2018 07:45:48 +0000 (15:45 +0800)]
Component/bt: add update duplicate scan exceptional list APIs

5 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

5 years agoMerge branch 'feature/btdm_add_adv_report_flow_control_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Thu, 14 Mar 2019 05:51:52 +0000 (13:51 +0800)]
Merge branch 'feature/btdm_add_adv_report_flow_control_v3.2' into 'release/v3.2'

component/bt: add vendor hci and adv report flow control (backport v3.2)

See merge request idf/esp-idf!4462

5 years agoMerge branch 'bugfix/mdns_add_remove_multiple_srv_3.2' into 'release/v3.2'
Angus Gratton [Wed, 13 Mar 2019 23:56:40 +0000 (07:56 +0800)]
Merge branch 'bugfix/mdns_add_remove_multiple_srv_3.2' into 'release/v3.2'

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

See merge request idf/esp-idf!4481

5 years agoMerge branch 'bugfix/mdns_incorrect_semaphore_use_v3.2' into 'release/v3.2'
Angus Gratton [Wed, 13 Mar 2019 22:26:51 +0000 (06:26 +0800)]
Merge branch 'bugfix/mdns_incorrect_semaphore_use_v3.2' into 'release/v3.2'

mdns: use binary semaphore instead of mutex when searching (Backport 3.2)

See merge request idf/esp-idf!4478

5 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-438

5 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

5 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

5 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.

5 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-438

5 years agomdns: use binary semaphore instead of mutex when searching
Ivan Grokhotkov [Mon, 4 Mar 2019 08:59:09 +0000 (16:59 +0800)]
mdns: use binary semaphore instead of mutex when searching

mdns_search_once_t::lock is used to synchronize tasks (taken by one
task and given by the other) so it should not be a mutex.
Convert to semaphore, and rename to indicate its purpose.

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

confgen: Fix bug with JSON metadata conditional range generation

See merge request idf/esp-idf!4470

5 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

5 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

5 years agoMerge branch 'feature/upgrade_sphinx_and_breathe_v3.2' into 'release/v3.2'
Krzysztof Budzynski [Tue, 12 Mar 2019 08:53:11 +0000 (16:53 +0800)]
Merge branch 'feature/upgrade_sphinx_and_breathe_v3.2' into 'release/v3.2'

docs: Preparation for upgrade of Sphinx and Breathe packages to versions 1.8.4…

See merge request idf/esp-idf!4380

5 years agocomponent/bt: add vendor hci cmd
zwj [Mon, 29 Oct 2018 13:27:39 +0000 (21:27 +0800)]
component/bt: add vendor hci cmd

5 years agoMerge branch 'bugfix/autoip_memoey_leak_debug_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Fri, 8 Mar 2019 11:54:34 +0000 (19:54 +0800)]
Merge branch 'bugfix/autoip_memoey_leak_debug_v3.2' into 'release/v3.2'

fix the bug in auto Ip memory leak (backport v3.2)

See merge request idf/esp-idf!4431

5 years agoMerge branch 'bugfix/httpd_sess_ctx_backportv3.2' into 'release/v3.2'
Angus Gratton [Fri, 8 Mar 2019 03:52:17 +0000 (11:52 +0800)]
Merge branch 'bugfix/httpd_sess_ctx_backportv3.2' into 'release/v3.2'

esp_http_server: Provide apps an option to let http_server ignore sess_ctx changes

See merge request idf/esp-idf!4421

5 years agofreemodbus: change critical sections to semaphore mutex
aleks [Thu, 7 Mar 2019 08:51:25 +0000 (09:51 +0100)]
freemodbus: change critical sections to semaphore mutex

revert changes made in mbrtu.c, mbascii.c
change critical section type to semaphore mutex instead of spin lock

Closes: https://github.com/espressif/esp-idf/issues/3009
5 years agofix the bug in auto Ip memory leak
xiehang [Wed, 6 Mar 2019 12:01:36 +0000 (20:01 +0800)]
fix the bug in auto Ip memory leak

5 years agoMerge branch 'bugfix/lack_of_break_in_tcp_client_v3.2' into 'release/v3.2'
Jiang Jiang Jian [Wed, 6 Mar 2019 06:22:59 +0000 (14:22 +0800)]
Merge branch 'bugfix/lack_of_break_in_tcp_client_v3.2' into 'release/v3.2'

fix the bug in tcp_client (backport v3.2)

See merge request idf/esp-idf!4391

5 years agoMerge branch 'bugfix/fix_dig_gpio_unable_hold_bug_v3.2' into 'release/v3.2'
Angus Gratton [Wed, 6 Mar 2019 04:10:38 +0000 (12:10 +0800)]
Merge branch 'bugfix/fix_dig_gpio_unable_hold_bug_v3.2' into 'release/v3.2'

Bugfix/fix digital gpio unable hold bug  (backport v3.2)

See merge request idf/esp-idf!4355