Jitin George
105e3302a7
esp_http_client: Fix header sent event bug
2019-07-21 07:25:23 +00:00
Jitin George
19fd2b3d93
tcp_transport: Fix case sensitive header comparison
...
Closes https://github.com/espressif/esp-idf/issues/3106
2019-07-21 07:25:23 +00:00
xiehang
8be97410a4
WiFi: Modify the wifi_country struct in VNC to keep it consistent with IDF.
...
1. Modfy wifi_country struct
2. Add md5 check esp_wifi_types.h
3. Add md5 check esp_wifi.h
2019-07-21 10:30:45 +08:00
liu zhifu
6af16447f8
mesh: fix the bug that esp_mesh_stop doesn't return
2019-07-21 10:26:17 +08:00
xiehang
eee568ddc5
wps: add overlap event
2019-07-21 10:23:01 +08:00
liu zhifu
c119a1a0f4
esp32: fix wifi stop bug
...
Fix the bug that WiFi stop causes esp_wifi_internal_reg_rxcb() fails.
2019-07-21 10:20:25 +08:00
liu zhifu
ed6b453346
esp32: fix WPS/WPA2-Enterprise memory leak
...
Fix WPS and WPA2-Enterprise memory leak bug.
2019-07-21 10:15:19 +08:00
liu zhifu
ba69e61ed5
esp32: fix smartconfig crash when no AP is found
...
Fix the bug that smartconfig crashes when no AP is found during smartconfig scan.
2019-07-21 09:59:37 +08:00
Jiang Jiang Jian
6ba62f7b0b
Merge branch 'bugfix/fix_the_watchdog_during_WiFi_scan_BLE_scan_v3.2' into 'release/v3.2'
...
fix the watchdog bug during WiFi scan and BLE scan (v3.2)
See merge request espressif/esp-idf!5541
2019-07-19 18:08:56 +08:00
Vikram Dattu
e155cd7a78
Add mmu pages available check in non-secure image hash check path.
...
Made MMU pages available check in `esp_image_format.c`
This now makes it possible to map and process bootoader image as well in chunks when image doesn't fit completely into available free pages.
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2019-07-19 10:08:39 +05:30
Vikram Dattu
13069ecb26
Changed log level for spi_master
...
There are lot of prints of `Allocate TX buffer for DMA`
Changed these from `ESP_LOGI` to `ESP_LOGD`
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2019-07-19 10:08:39 +05:30
Vikram Dattu
7f42d63687
Bugfix: ota fails with secure boot on for image size greater than 3.2MB
...
When an OTA image size is larger than 50 MMU pages (approx. 3.2 MB), secure_boot_generate fails while trying to map it into memory:
https://github.com/espressif/esp-idf/blob/master/components/bootloader_support/src/esp32/secure_boot.c#L72
Instead of trying to map the whole image, secure boot code should split the image into chunks and map them one by one, like it is done in esp_image_format.c:
https://github.com/espressif/esp-idf/blob/master/components/bootloader_support/src/esp_image_format.c#L371
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2019-07-19 09:56:32 +05:30
Jiang Jiang Jian
ed7664d19f
Merge branch 'bugfix/fix_flash_read_error_in_dio_26MHz_mode_v3.2' into 'release/v3.2'
...
bugfix(flash): fix flash read error in DIO/26MHz mode (backport v3.2)
See merge request espressif/esp-idf!5507
2019-07-16 18:41:45 +08:00
zhangyanjiao
3675e3182f
fix the watchdog bug during WiFi scan and BLE scan
2019-07-16 14:29:29 +08:00
chenjianqiang
9edc9674bc
bugfix(flash): improve spi cs timing settings for flash
...
cs setup time is recomemded to be 1.5T, and cs hold time is recommended to be 2.5T.
(cs_setup = 1, cs_setup_time = 0; cs_hold = 1, cs_hold_time = 1)
2019-07-15 14:44:28 +08:00
Mahavir Jain
376377ceca
Merge branch 'bugfix/i2s_apll_clock_fix_v3.2' into 'release/v3.2'
...
driver/i2s: fix apll_clock_rate for different sample rates (v3.2)
See merge request espressif/esp-idf!5449
2019-07-12 11:36:01 +08:00
chenjianqiang
490a7e682d
bugfix(flash): fix flash read error in DIO/26MHz mode
2019-07-11 21:10:20 +08:00
Angus Gratton
1b9d62ad95
Merge branch 'bugfix/fix_uart_wait_done_bug_v3.2' into 'release/v3.2'
...
bugfix(UART): fixed two UART issues for release/v3.2
See merge request espressif/esp-idf!5480
2019-07-11 14:56:32 +08:00
Jiang Jiang Jian
21601f00f4
Merge branch 'bugfix/fix_no_disconnect_event_when_rx_disassoc_after_send_auth_v3.2' into 'release/v3.2'
...
wifi: fix the bug no disconnect event when STA recv disassoc after sending auth (backport v3.2)
See merge request espressif/esp-idf!5099
2019-07-10 15:40:23 +08:00
kooho
7e2465995f
bugfix(UART): fixed two UART issues:
...
1. uart_wait_tx_done works incorrect when sending a byte of data.
2. uart_set_rx_timeout sets an incorrect rx timeout value when ref_tick is enabled.
2019-07-09 14:47:04 +08:00
Angus Gratton
878d70d9e6
Merge branch 'fix/update_curr_page_state_3.2' into 'release/v3.2'
...
nvs_util: Set previous page state to FULL before creating new page (v3.2)
See merge request espressif/esp-idf!5326
2019-07-08 14:05:40 +08:00
Sagar Bijwe
4b43c10490
wpa_supplicant: Fix sprintf security bugs.
...
Revert back to using os_snprintf instead of sprintf.
Closes WIFI-624
2019-07-08 10:39:48 +05:30
Angus Gratton
a8916daeb2
Merge branch 'fix/nvs_util_keylen_3.2' into 'release/v3.2'
...
nvs_util: Add check for keylen in input csv (v3.2)
See merge request espressif/esp-idf!5396
2019-07-08 12:59:55 +08:00
zhangyanjiao
b7a2516242
wifi bugfix:
...
1. fix the bug no disconnect event when STA recv disassoc after sending auth
2. fix the bug full scan send multi events when recv deauth/disassoc
2019-07-08 11:42:36 +08:00
Jiang Jiang Jian
4a9f339447
Merge branch 'mesh/bugfix_0628' into 'release/v3.2'
...
mesh: bugfix (backport3.2)
See merge request espressif/esp-idf!5402
2019-07-05 22:43:16 +08:00
Mahavir Jain
c1af728239
Merge branch 'bugfix/prov_examples_strlcpy_backport_v3.2' into 'release/v3.2'
...
Various bugfixes in Protocomm / Unified Provisioning (backport v3.2)
See merge request espressif/esp-idf!5372
2019-07-05 20:56:35 +08:00
Jiang Jiang Jian
35789eef16
Merge branch 'bugfix/improve_flash_dio_read_timing_v3.2' into 'release/v3.2'
...
bugfix(flash): fix flash dio read mode configuration error on SPI0 (backport v3.2)
See merge request espressif/esp-idf!5288
2019-07-05 20:42:06 +08:00
Shivani Tipnis
23c17c4c0d
nvs_util: Add check for keylen in input csv
2019-07-05 11:06:02 +00:00
zhiweijian
2821e99bcc
component/bt: fix rxwinsz assert in ble and wifi coex
2019-07-04 21:17:51 +08:00
redchenjs
a4f2283384
i2s: fix a bug when calculating i2s apll parameters
...
Closes https://github.com/espressif/esp-idf/issues/2634
Closes https://github.com/espressif/esp-idf/issues/3380
Fixes https://github.com/espressif/esp-idf/issues/3407
2019-07-04 18:28:18 +05:30
qiyuexia
b905f2de4d
mesh: bugfix
...
1. resend eb which are pending in g_ic.tx_buf due to channel switch.
2. add lock for mgmg/xon/bcast to protect send from user flush.
3. softap: add check if secondary offset is correct when start softap.
4. softap: in inactive timer handler, add check if child bss is removed to avoid removing it again.
5. disable A-MPDU for non-root.
6. fix reusing a freed eb.
7. fix when node becomes root, it does not record assoc value to nvs.
8. discard unnecessary forwarded group packets.
9. fix toDS state is not updated in time.
10. fix s_sta_cnx_times is not cleared when deinit causes root sends ADD annoucement.
11. root: increase beacon timeout time from 6 seconds to 15 seconds to delay initiation of reconnection.
12. add esp_mesh_get_tsf_time to return TSF time.
13. send the whole routing table multi-times.
14. clear candidate settings if not receive candidate beacon within 8 seconds.
2019-07-04 11:39:17 +08:00
Shivani Tipnis
c517628c77
nvs_util: Set previous page state to FULL before creating new page
2019-07-03 11:09:49 +00:00
Jiang Jiang Jian
cbec031c91
Merge branch 'bugfix/btdm_backport_2_bugs_v3.2' into 'release/v3.2'
...
Bugfix/btdm backport 2 bugs v3.2
See merge request idf/esp-idf!5269
2019-07-02 17:33:53 +08:00
chenjianqiang
90c7885f4d
bugfix(flash): improve flash dio read timing
...
When flash work in DIO Mode, in order to ensure the fast read mode of flash
is a fixed value, we merged the mode bits into address part, and the fast
read mode value is 0 (the default value).
2019-07-02 14:57:13 +08:00
Jiang Jiang Jian
476d4ba1b7
Merge branch 'bugfix/fix_wpa2_vulnerability_and_lwip_window_scale_v3.2' into 'release/v3.2'
...
esp32/lfix wpa2-enterprise vulnerability and support lwindow scale (backport v3.2)
See merge request idf/esp-idf!5411
2019-07-02 14:26:48 +08:00
Jiang Jiang Jian
da80efa8bc
Merge branch 'bugfix/pm_isr_exit_lock_v3.2' into 'release/v3.2'
...
pm: prevent interrupt nesting during esp_pm_impl_isr_hook (backport v3.2)
See merge request idf/esp-idf!4969
2019-07-02 13:55:35 +08:00
Mahavir Jain
725ecf108f
Merge branch 'protocomm_ble_128bit_uuid_v3.2' into 'release/v3.2'
...
protocomm_ble : Fix support for custom service UUIDs (backport v3.2)
See merge request idf/esp-idf!5018
2019-07-01 19:22:28 +08:00
liu zhifu
d10dec358d
esp32/lwip: fix wpa2-enterprise vulnerability and support lwip window scale
...
1. Fix WiFi wpa2-enterprise vulnerability bug
2. Support LWIP window scale
2019-07-01 11:34:35 +08:00
liu zhifu
293a665601
esp32: fix some WiFi bugs
...
Fix following WiFi bugs:
1. Make smartconfig thread-safe
2. Fix WiFi stop/deinit memory leak
3. Refactor for WiFi init/deinit/ioctl etc
4. Fix the bug that WiFi stop leads to task watchdog
2019-06-30 21:36:38 +08:00
Jiang Jiang Jian
c6c1d089cc
Merge branch 'bugfix/xTaskIncrementTick_v3.2' into 'release/v3.2'
...
freertos: Fix xTaskIncrementTick for unwind the Tick for CPU1 (v3.2)
See merge request idf/esp-idf!5035
2019-06-30 18:01:45 +08:00
Anurag Kar
d76d94549a
protocomm_ble : Fixed custom service UUID support
...
List of changes:
* Use 128 bit characteristic UUIDs when creating GATT table entries
* Change primary service attribute value to 128 bit custom service UUID
* Use raw advertisement data to convey flags and 128 bit primary service UUID
* Use raw scan response to send device name as complete local name
* Increase maximum device name length in relation to maximum scan response length
* Set Characteristic User Description attributes for each characteristic to convey protocomm endpoint names
2019-06-28 10:14:52 +00:00
Angus Gratton
444ded835d
Merge branch 'bugfix/mbedtls_mpi_exp_mod_v3.2' into 'release/v3.2'
...
mbedtls: Fix mbedtls_mpi_exp_mod() set n and s values (v3.2)
See merge request idf/esp-idf!5355
2019-06-28 08:31:41 +08:00
Anurag Kar
57c7a25bb3
protocomm_ble : Bugfix for unbound memcpy on prepare write buffer
...
Closes https://github.com/espressif/esp-idf/issues/3633
2019-06-27 18:59:34 +05:30
Jiang Jiang Jian
8c17eb91e2
Merge branch 'feature/config_spi_pins_based_on_efuse_value_v3.2' into 'release/v3.2'
...
feat(psram): config SPI psram pins based on efuse value (backport v3.2)
See merge request idf/esp-idf!5237
2019-06-27 19:22:34 +08:00
Mahavir Jain
91ec6068e9
Merge branch 'bugfix/httpd_log_purge_v3.2' into 'release/v3.2'
...
esp_http_server : Logging of purged data to monitor made configurable (backport v3.2)
See merge request idf/esp-idf!5016
2019-06-27 16:16:05 +08:00
Anurag Kar
dab432d7ff
Protocomm : Minor fixes
...
List of changes:
* protocomm_httpd : Reset session_id static variable on start and stop
* security1 : Typo in checking failed dynamic allocation
2019-06-27 12:38:20 +05:30
Anurag Kar
76719b9c37
Wi-Fi Provisioning : Bugfix in copying SSID and Passphrase
...
These changes guarantee that the SSID and Passphrase received via protocomm are NULL terminated and size limited to their standard lengths.
List of changes:
* Corrected length of passphrase field in wifi_prov_config_set_data_t structure
* Performing length checks on SSID, passphrase and bssid, when populating wifi_prov_config_set_data_t structure with received credentials
2019-06-27 12:38:07 +05:30
Jiang Jiang Jian
da10a5b7e9
Merge branch 'bugfix/btdm_fix_hci_enhance_conn_complete_evt_unpack_error_v3.2' into 'release/v3.2'
...
component/bt: fix unpack hci enhance connection complete event error(backport v3.2)
See merge request idf/esp-idf!5282
2019-06-27 14:28:49 +08:00
Konstantin Kondrashov
901e8338ac
mbedtls: Add UTs for modexp
2019-06-26 14:20:30 +08:00
Konstantin Kondrashov
fbe566ac67
mbedtls: Fix Z->s in mbedtls_mpi_exp_mod()
...
Z->s should never be zero, only 1 or -1.
Added additional checks for X, Y and M args to correctly set Z->s.
Closes: https://github.com/espressif/esp-idf/issues/1681
Closes: https://github.com/espressif/esp-idf/issues/3603
Closes: IDFGH-1313
2019-06-26 14:20:30 +08:00
Chen Sheng
c0a68466a7
test: modified test case for bluedroid (backport v3.2)
2019-06-25 23:18:47 +08:00
zhiweijian
eaf8cfbf8d
component/bt: fix unpack hci enhance connection complete event error
2019-06-24 03:23:31 +00:00
Angus Gratton
b34a0874b1
Merge branch 'bugfix/spi_concurrency_3.2' into 'release/v3.2'
...
spi: fix a possible concurrency issue (port to v3.2)
See merge request idf/esp-idf!5278
2019-06-21 13:22:22 +08:00
Michael (XIAO Xufeng)
f21762eeef
spi: fix a possible concurrency issue
2019-06-19 12:38:31 +08:00
baohongde
e7f57fef55
component/bt: Allow configuration of default SCO_DATA_PATH in bluetooth controller
2019-06-17 14:12:09 +08:00
baohongde
284362d62d
add missing source files to CMakeLists for HFP
2019-06-17 14:06:33 +08:00
wangmengyang
29b009d6fd
component/bt: fix some performance issues in A2DP source data flow control
...
1. modify the limit of frames to send to avoid dropping packet on A2DP source due to TX data queue overflow
2. reduce the A2DP source data queue size in order to achieve faster control respnonse
2019-06-17 14:06:19 +08:00
He Yin Ling
86e8983499
test: fix some wifi case issues:
...
* remove heap size check cases as we have bg tasks allocate memory
* fix wifi connect to open ap issue
2019-06-14 14:55:09 +08:00
Jiang Jiang Jian
fa42f63226
Merge branch 'bugfix/dns_bug_3.2' into 'release/v3.2'
...
DNS: fix the crash under static IP address(backport3.2)
See merge request idf/esp-idf!5238
2019-06-14 11:34:50 +08:00
chenjianqiang
93c9c07e22
bugfix(psram): make sure the psram_io struct is initialized and make unknown psram package version more obvious
2019-06-14 10:34:56 +08:00
xueyunfei
2ed18dcdd7
lwip:fix dns bug for 3.2
2019-06-13 16:47:50 +08:00
chenjianqiang
cb2e328c5f
feat(psram): config SPI psram pins based on efuse value
2019-06-13 16:07:21 +08:00
baohongde
267ce80355
components/bt: Fix assert due to alloc LMP TX buffer failed
2019-06-12 19:25:59 +08:00
Angus Gratton
8b54542a88
Merge branch 'bugfix/custom_bootloader_subproject_build_v3.2' into 'release/v3.2'
...
CMake: Fix custom bootloader does not override original (v3.2)
See merge request idf/esp-idf!5082
2019-06-11 08:26:08 +08:00
Mahavir Jain
a8fe057219
Merge branch 'bugfix/https_doc_api_v3.2' into 'release/v3.2'
...
esp_http_server : Minor clarification in httpd_req_get_url_query_str() API documentation (backport v3.2)
See merge request idf/esp-idf!5014
2019-06-10 11:49:57 +08:00
Konstantin Kondrashov
adc5b2e08f
freertos/test: Add unit tests for xTaskIncrementTick
2019-06-07 09:54:03 +00:00
Konstantin Kondrashov
0be4deeb22
freertos: Fix xTaskIncrementTick for unwind the Tick for CPU1
...
xTaskIncrementTick have to unwind uxPendedTicks on CPU1 and CPU0.
Use case: If an erase operation was run on the CPU1 then it leads
to starving other tasks which waiting time. Waited tasks just skipped.
Closes: https://github.com/espressif/esp-idf/issues/1952
Closes: IDF-183
2019-06-07 09:54:03 +00:00
Renz Christian Bagaporo
88eaa34075
cmake: fix custom bootloader issue
...
Issue is that when users creates a custom bootloader from
$IDF_PATH/components/bootloader. Parent project build uses the copy but
bootloader subproject build uses the original still. The issue is solved
by passing the custom bootloader as extra component directory so
bootloader build knows to use the new copy (itself) in the build.
2019-06-04 23:04:47 +08:00
Konstantin Kondrashov
b434b8f5d2
esp32: Add reset uart
...
Fixed the case when the first part of log was missed
this was happened when:
* CONFIG_CONSOLE_UART_CUSTOM option is selected (UART1)
* The selected CONSOLE_UART port is used also for the console component
* in code esp_restart() or abort() functions were called.
2019-06-04 20:16:40 +08:00
Anurag Kar
7e6d1ef4bc
esp_http_server : Logging of purged data to monitor made configurable
...
List of changes:
* Kconfig option HTTPD_LOG_PURGE_DATA enables logging of purged data
* Kconfig option HTTPD_PURGE_BUF_LEN sets purge buffer length
* Purged data is logged in hex
Closes https://github.com/espressif/esp-idf/issues/3359
2019-06-03 08:37:41 +00:00
Anurag Kar
92dc6a6dde
esp_http_server : Minor clarification in httpd_req_get_url_query_str() API documentation
...
Closes https://github.com/espressif/esp-idf/issues/3374
2019-06-03 08:36:24 +00:00
Angus Gratton
8e51f7e236
Merge branch 'bugfix/custom_log_uart_rx_pin_v3.2' into 'release/v3.2'
...
bootloader_support: Fix UART RXD pin for console output (CUSTOM option) (v3.2)
See merge request idf/esp-idf!5032
2019-06-03 14:23:55 +08:00
Konstantin Kondrashov
3886be23c8
soc: Add some headers into gpio_periph.h
2019-05-29 13:46:37 +08:00
David Cermak
814ee9db7f
tcp_transport: modified ws_read to read payload directly to the read buffer and separately from header bytes
...
Previous version read all data to the buffer including header which reduced maximum payload read. This version uses a local array to receive header and reads payload bytes to the buffer
cherry-picked from db121a56e1
2019-05-29 07:45:13 +02:00
Jiang Jiang Jian
ddbce78bff
Merge branch 'bugfix/fix_smartconfig_bug' into 'release/v3.2'
...
esp32: fix a smartconfig bug (backport v3.2)
See merge request idf/esp-idf!5055
2019-05-28 10:54:51 +08:00
Angus Gratton
4b5be79c0c
Merge branch 'feature/esp_http_client_mutual_auth_backport_v3.2' into 'release/v3.2'
...
esp_http_client: Add support for mutual authentication (backport v3.2)
See merge request idf/esp-idf!5026
2019-05-27 13:16:47 +08:00
Angus Gratton
ee39083d1b
Merge branch 'feature/add_promiscuous_control_for_ethernet_v3.2' into 'release/v3.2'
...
add promiscuous mode control for Ethernet (v3.2)
See merge request idf/esp-idf!4976
2019-05-23 14:23:48 +08:00
liu zhifu
38b4d1d70c
esp32: fix a smartconfig bug
...
Fix a smartconfig bug which leads to deadlock between WiFi task and timer task.
2019-05-22 21:47:02 +08:00
xiehang
a820787414
wifi: fix softap crash when sta (backport v3.2)
2019-05-20 20:30:41 +08:00
Konstantin Kondrashov
cea6908238
bootloader_support: Fix UART RXD pin for console output (CUSTOM option)
...
The RXD pin is assigned as input (fix for custom uart option).
Closes: https://github.com/espressif/esp-idf/issues/2843
Closes: IDFGH-505
2019-05-20 18:31:13 +08:00
Anders Kalør
d81c79d79f
esp_http_client: Add support for mutual authentication
...
Closes https://github.com/espressif/esp-idf/pull/2688
Closes https://github.com/espressif/esp-idf/issues/3438
2019-05-20 11:01:04 +05:30
Roland Dobai
70c9b1ca22
VFS: Allocate socket select semaphore outside ISR
2019-05-15 10:50:49 +02:00
Angus Gratton
2f8508c7eb
Merge branch 'bugfix/http_server_lf_term_hdr_backport_v3d2' into 'release/v3.2'
...
HTTP Server : Fix for tolerating LF terminated headers (backport v3.2)
See merge request idf/esp-idf!4657
2019-05-13 20:29:03 +08:00
suda-morris
fd281c11cc
add promiscuous mode control in emac driver
...
1. add promiscuous mode control in emac driver
2. fix minor bugs in IP101 driver
2019-05-10 12:56:35 +08:00
Ivan Grokhotkov
5328154a01
pm: prevent interrupt nesting during esp_pm_impl_isr_hook
...
Follows the approach proposed in https://github.com/espressif/esp-idf/pull/3110 ,
but masks the interrupts during the entire ISR hook, not only during
leave_idle. Interrupt nesting during update_ccompare may also cause
issues.
Closes https://github.com/espressif/esp-idf/issues/3057
2019-05-10 10:20:29 +08:00
Alexey Gerenkov
dd623febf5
esp32: Fixes freezing core dump process when flash write address checks are enabled
2019-05-08 13:55:31 +03:00
Angus Gratton
106c8813ed
Merge branch 'bugfix/nvs_fix_erase_any_v3.2' into 'release/v3.2'
...
nvs_flash: Multi-page blob erased using nvs_erase_key should be cleaned properly (v3.2)
See merge request idf/esp-idf!4817
2019-05-08 09:37:13 +08:00
negativekelvin
553725df84
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
2019-05-07 05:53:19 +00:00
liu zhifu
7d3733d255
esp32: backport some WiFi fixes to v3.2
...
Backport following WiFi fixes to v3.2:
1. Add support for STA HT2040 coexist management
2. Add support for WPA2 improvements
3. Disallow HT rate when unicast/mcast cipher is TKIP/WEP
4. Add support for signal test
5. Fix the bug that WPS fails when AP is encrypted
2019-05-07 10:50:09 +08:00
zhangyanjiao
4e78900fbf
fix the bug when scan fail after STA failed to connect to a nonexistent AP
2019-05-05 11:53:33 +08:00
Anurag Kar
87215ca0c3
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
2019-05-02 05:56:49 +00:00
Jiang Jiang Jian
f6bfe13eb3
Merge branch 'bugfix/erase_with_vtaskdelay_v3.2' into 'release/v3.2'
...
spi_flash: Add vTaskDelay while a long erasing (v3.2)
See merge request idf/esp-idf!4875
2019-04-28 22:14:41 +08:00
Jiang Jiang Jian
df874cd070
Merge branch 'bugfix/httpd_accept_conn_v3.2' into 'release/v3.2'
...
esp_http_server : Only accept new connections if server has capacity to handle more (backport v3.2)
See merge request idf/esp-idf!4722
2019-04-28 11:47:14 +08:00
Konstantin Kondrashov
fe0d45d549
spi_flash: Add vTaskDelay while a long erasing
...
Added Kconfig options to enable yield operation during flash erase.
By default disable.
Closes: https://github.com/espressif/esp-idf/issues/2083
Closes: IDFGH-261
2019-04-28 02:42:31 +00:00
Jiang Jiang Jian
6f19193de6
Merge branch 'bugfix/adjtime_ut_v3.2' into 'release/v3.2'
...
newlib: Fix adjtime (v3.2)
See merge request idf/esp-idf!4871
2019-04-28 10:36:55 +08:00
Jiang Jiang Jian
8f4e7d2456
Merge branch 'backport/bugfix_url_redirect_v32' into 'release/v3.2'
...
Fix url redirection issue. (backport v3.2)
See merge request idf/esp-idf!4852
2019-04-28 10:36:09 +08:00
Jiang Jiang Jian
4156c6ddec
Merge branch 'bugfix/improve_spi_timing_for_psram_and_flash_v3.2' into 'release/v3.2'
...
bugfix(psram): improve spi cs timing settings for psram (backport v3.2)
See merge request idf/esp-idf!4846
2019-04-28 10:35:41 +08:00
Jiang Jiang Jian
9294e4d08d
Merge branch 'feature/poll_v3.2' into 'release/v3.2'
...
VFS: Implement poll() based on select() (backport v3.2)
See merge request idf/esp-idf!4350
2019-04-28 10:24:41 +08:00
Jiang Jiang Jian
193b8e93a8
Merge branch 'bugfix/btdm_abort_if_deinit_spp_without_init_v3.2' into 'release/v3.2'
...
components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init
See merge request idf/esp-idf!4862
2019-04-26 21:01:35 +08:00
Angus Gratton
8da392aa1d
Merge branch 'feature/esp_http_client_global_ca_store_v3.2' into 'release/v3.2'
...
esp_http_client: add support for using certs from global ca store (backport_v3.2)
See merge request idf/esp-idf!4868
2019-04-26 10:08:23 +08:00
Angus Gratton
c3cee5e3de
Merge branch 'backport/feature_set_redirect_function_v32' into 'release/v3.2'
...
Add a `esp_http_client_set_redirection` function. (backport v3.2)
See merge request idf/esp-idf!4867
2019-04-26 10:07:04 +08:00
Jiang Jiang Jian
0c13ae6b45
Merge branch 'feature/btdm_add_ble_link_timeout_config_v3.2' into 'release/v3.2'
...
Component/bt: add ble link timeout config in menuconfig(backport v3.2)
See merge request idf/esp-idf!4826
2019-04-25 20:05:19 +08:00
Jiang Jiang Jian
306a1173af
Merge branch 'feature/wifi_refactor_softap_power_save_v3.2' into 'release/v3.2'
...
refactor softap power save (backport v3.2)
See merge request idf/esp-idf!4823
2019-04-25 17:05:49 +08:00
Konstantin Kondrashov
592a4295be
newlib: Fix adjtime
...
Fixed adjtime function: While using the adjtime() function,
the time correction accumulated an error
when reading the time frequently (using gettimeofday).
2019-04-24 17:42:38 +08:00
Mahavir Jain
2549951498
esp_http_client: add support for using certs from global ca store
...
Closes https://github.com/espressif/esp-idf/issues/3062
(cherry picked from commit 27e00cf7aa
)
2019-04-24 14:06:33 +05:30
Vikram Dattu
b2384dc9ee
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
...
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2019-04-24 13:54:22 +05:30
baohongde
f95826144e
components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init
2019-04-24 11:34:06 +08:00
Vikram Dattu
344cb99d34
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>
2019-04-23 14:28:21 +05:30
Wangjialin
464df4b788
bugfix: fix bug in flash 80M + sram 40M mode
2019-04-23 02:18:15 +00:00
Wangjialin
8ff0d986b6
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)
2019-04-23 02:18:15 +00:00
Angus Gratton
225bc0f80a
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
2019-04-23 07:38:00 +08:00
zhiweijian
96c8343e46
Component/bt: add ble link timeout config in menuconfig
...
- add ble link timeout config in menuconfig
- disable background connection when call gatts_open
2019-04-22 21:55:06 +08:00
XiaXiaotian
3ee11bcafc
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.
2019-04-19 14:14:33 +08:00
Jiang Jiang Jian
bcb543eb10
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
2019-04-19 13:31:06 +08:00
He Yin Ling
bb73659c9c
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
2019-04-18 11:29:43 +08:00
chenyudong
58bc6be4c0
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
2019-04-17 17:25:17 +08:00
XiaXiaotian
5059c7fac3
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.
2019-04-17 16:59:24 +08:00
liu zhifu
faec3211bd
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
2019-04-17 10:02:51 +08:00
Jiang Jiang Jian
c7d0df5451
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
2019-04-16 21:09:15 +08:00
Mahavir Jain
1fcef31195
cpu_start: fix warnings with CONFIG_PM_DFS_INIT_AUTO option
...
Closes https://github.com/espressif/esp-idf/issues/3297
2019-04-16 11:21:26 +05:30
Jiang Jiang Jian
acc882f4dd
Merge branch 'bugfix/btdm_bugx_backport_3.2' into 'release/v3.2'
...
Some bugs backport 3.2
See merge request idf/esp-idf!4773
2019-04-16 10:45:04 +08:00
Angus Gratton
e4c1bcddc5
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
2019-04-16 08:53:23 +08:00
Konstantin Kondrashov
b2455219cc
esp32/sha: Remove second enabling in esp_sha_lock_engine_common
2019-04-15 21:14:38 +08:00
zhangyanjiao
de6b7d6520
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
2019-04-15 18:59:52 +08:00
Jiang Jiang Jian
fa40e43c8d
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
2019-04-15 18:52:09 +08:00
Jiang Jiang Jian
9f29dbf656
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
2019-04-15 18:50:58 +08:00
baohongde
bb518afb59
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
2019-04-15 16:51:29 +08:00
chenyudong
37063ea9b6
Decouple Wifi and ESP-Mesh to reduce bin size
...
Do not link mesh code when mesh is not used
2019-04-14 20:36:14 +08:00
Jiang Jiang Jian
f6837e6117
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
2019-04-14 02:57:45 +08:00
Jiang Jiang Jian
2da22620f8
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
2019-04-14 02:56:43 +08:00
Jiang Jiang Jian
ddf4991024
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
2019-04-14 02:55:21 +08:00
Jiang Jiang Jian
f8597be435
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
2019-04-12 23:11:24 +08:00
Jiang Jiang Jian
6e5e430ef4
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
2019-04-12 22:02:08 +08:00
Jiang Jiang Jian
065d451e47
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
2019-04-12 21:58:51 +08:00
Jiang Jiang Jian
c8990eb39d
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
2019-04-12 21:57:50 +08:00
Jiang Jiang Jian
c90f770599
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
2019-04-12 21:57:23 +08:00
Jiang Jiang Jian
48978c6f2b
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
2019-04-12 21:56:40 +08:00
Angus Gratton
5bb5670d69
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
2019-04-12 07:28:57 +00:00
Angus Gratton
7197811861
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
2019-04-12 13:46:06 +08:00
Angus Gratton
892c2be168
esp32: Chunk input blocks for esp_sha() function performance, add perf test
2019-04-12 05:45:05 +00:00
Angus Gratton
5c6be8380e
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
2019-04-12 05:45:05 +00:00
Angus Gratton
1d8e1c4ce4
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
2019-04-12 05:45:05 +00:00
chenyudong
1778573dad
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
2019-04-11 20:43:38 +08:00
Jiang Jiang Jian
9778549759
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
2019-04-11 18:44:19 +08:00
Angus Gratton
e5e226a121
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
2019-04-10 14:17:41 +08:00
Hrishikesh Dhayagude
71845041e0
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.
2019-04-09 11:25:42 +05:30
Angus Gratton
54dff92df5
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
2019-04-09 09:19:43 +08:00
Anurag Kar
a5bd08a6b6
esp_http_server : Test added to check limit on max_open_sockets config option
2019-04-08 11:36:08 +05:30
Anurag Kar
befc74e0f0
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
2019-04-08 11:34:20 +05:30
Angus Gratton
12bf1017de
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
2019-04-05 09:31:03 +08:00
Shivani Tipnis
006442cd9d
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 a88b40483d
)
2019-04-04 18:28:10 +05:30
Angus Gratton
70811110fc
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
2019-04-02 12:29:06 +08:00
Angus Gratton
b87e440c69
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
2019-04-02 11:58:56 +08:00
maojianxin
f85294b058
Fix external start fail
2019-04-02 12:52:58 +11:00
Zhang Jun Yi
413b6487fb
soc/rtc: Bypass touchpad current to external 32k crystal oscillator
2019-04-02 12:50:50 +11:00
Angus Gratton
f608afbe6b
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
2019-04-02 09:40:10 +08:00
Michael (XIAO Xufeng)
325fca94c0
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
2019-04-01 18:39:02 +08:00
zhiweijian
3130b19cf8
Component/bt: add mesh beacon adv and svc uuid for duplicate scan exceptional list
2019-03-28 11:20:51 +08:00
Shivani Tipnis
5d2c23c8ab
nvs_util: Add support for creation of unique encryption keys
...
(cherry picked from commit e1f466e708c2c1b825e955ec28b70dc3058f9262)
2019-03-27 18:24:18 +05:30
Shivani Tipnis
8480e79ae2
nvs_util: Add support for creation of unique encryption keys
...
(cherry picked from commit 8b88b3303d83f5f03249e7b3410f6ecabaa00396)
2019-03-26 15:52:10 +05:30
Shivani Tipnis
86052eec78
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 60b5cdde20
)
2019-03-26 15:49:25 +05:30
baohongde
5ede49ca4a
components/bt: Fix warning when disable debug logs or in release mode and improve the code structure
2019-03-26 15:29:22 +08:00
baohongde
bbdb236ab7
components/bt: Fix warning when disable debug logs or in release mode and improve the code structure
2019-03-26 14:59:58 +08:00
Renz Christian Bagaporo
84a534a4a0
cmake: Fix for Python files executed directly, not via PYTHON variable
2019-03-25 11:41:00 +08:00
zhiweijian
6b4dcd4f5c
Component/bt: modify HCI_GET_CMD_BUF
2019-03-22 15:02:20 +08:00
David Cermak
9ebaf36c28
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
2019-03-21 14:35:59 +01:00
David Cermak
1ece141c52
mqtt: support for BEFORE_CONNECT event in idf
...
Updated examples to use new event id, idf to use mqtt with fixed retained, oversized messages
2019-03-21 14:35:49 +01:00
Liu Zhi Fu
76c20ab9b3
esp32: make WiFi IRAM optimization configurable
...
With this feature, the WiFi IRAM optimization can be disabled/enabled via menuconfig.
2019-03-20 13:45:54 +00:00
zhiweijian
241ba1a6bb
Component/bt: fix iOS and win10 compatibility error for HID
2019-03-20 19:47:04 +08:00
Angus Gratton
1fac58deb7
heap: Add integer overflow checks on MALLOC_CAP_32BIT & MALLOC_CAP_EXEC
2019-03-20 18:30:17 +11:00
zhiweijian
78d32f2e8b
Component/bt: fix build warning when bluedroid disable log
2019-03-20 15:06:17 +08:00
zhiweijian
f237b92bc4
Component/bt: fix blufi prepare write crash
2019-03-20 14:27:11 +08:00
zhiweijian
d6bdaed141
Component/bt: fix no adv report when scanning with sleep enable
2019-03-18 17:40:19 +08:00
Angus Gratton
13018449fe
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
2019-03-15 14:29:30 +08:00
Ivan Grokhotkov
6ce5c7668f
console/linenoise: support buffered stdout
2019-03-15 11:29:56 +08:00
zhiweijian
fed772641a
Component/bt: add update duplicate scan exceptional list APIs
2019-03-14 20:59:38 +08:00
Hrishikesh Dhayagude
39d8a89c80
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
2019-03-14 12:50:03 +05:30
Jiang Jiang Jian
62980ae995
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
2019-03-14 13:51:52 +08:00
Angus Gratton
029a155a71
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
2019-03-14 07:56:40 +08:00
David Cermak
10b4ddb467
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
2019-03-13 16:24:18 +01:00
David Cermak
288bc2bfca
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
2019-03-13 16:24:03 +01:00
David Cermak
8e4ec90dc4
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
2019-03-13 16:24:03 +01:00
David Cermak
0e06b4d653
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.
2019-03-13 16:24:03 +01:00
David Cermak
8fe4007dfa
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
2019-03-13 16:24:03 +01:00
Ivan Grokhotkov
09f4015300
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.
2019-03-13 14:55:01 +01:00
zhiweijian
6628fddae6
Component/bt: add BLE adv report flow control
2019-03-12 20:18:30 +08:00
zwj
b305a96a74
component/bt: add vendor hci cmd
2019-03-12 11:55:42 +08:00
Jiang Jiang Jian
12643e063c
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
2019-03-08 19:54:34 +08:00
Angus Gratton
a7dc804476
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
2019-03-08 11:52:17 +08:00
aleks
7342811c37
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
2019-03-07 16:01:43 +01:00
xiehang
8e0b0af09b
fix the bug in auto Ip memory leak
2019-03-06 20:01:36 +08:00
Angus Gratton
d99d92e170
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
2019-03-06 12:10:38 +08:00
Piyush Shah
f8f0c81077
esp_http_server: Provide apps an option to let http_server ignore sess_ctx changes
...
By default, if a URI handler changes the http session context,
the webserver internally clears the older context after the handler
returns. However, if applications want to change this behavior and
manage the allocation/de-allocation/freeing themselves and let the
server handle only the "socket close" case, this commit provides such
an option.
2019-03-05 13:06:33 +05:30
Angus Gratton
727c2cfa00
Merge branch 'feature/add_api_get_rmt_idle_level_v3.2' into 'release/v3.2'
...
Bugfix: Fixed some RMT related issues (backport v3.2)
See merge request idf/esp-idf!4358
2019-03-05 10:51:00 +08:00
Roland Dobai
1d4eeeb464
VFS: Implement poll() based on select()
...
Closes https://github.com/espressif/esp-idf/issues/2945
2019-03-04 08:02:03 +01:00
Jiang Jiang Jian
e9a764d9a5
Merge branch 'bugfix/make_get_coreid_volatile_backport_v3.2' into 'release/v3.2'
...
freertos: Make xPortGetCoreID() volatile (backport v3.2)
See merge request idf/esp-idf!4379
2019-03-01 18:49:00 +08:00
Jiang Jiang Jian
b2e4af4ed0
Merge branch 'bugfix/ble_reconn_rescan_readv_crash_v3.2' into 'release/v3.2'
...
component/bt : fix bug that there's low ratio crash when BLE do re-connect/re-scan/re-adv
See merge request idf/esp-idf!4325
2019-03-01 18:06:02 +08:00
Darian Leung
66a0b64e54
freertos: Make xPortGetCoreID() volatile
...
When xPortGetCoreID() is called twice within a function,
it might only be called once after compilation. This
commit makes the inline assembly of the function volatile.
Closes #3093
2019-03-01 02:05:33 +00:00
Ivan Grokhotkov
9d48cdb6f3
Merge branch 'bugfix/multiple_backports_v3.2' into 'release/v3.2'
...
multiple backports (v3.2)
See merge request idf/esp-idf!4367
2019-02-28 21:42:19 +08:00
Jiang Jiang Jian
258e9c98be
Merge branch 'bugfix/cmake_psram_fix_flag_v3.2' into 'release/v3.2'
...
cmake: Fix psram workaround compiler flag application (backport v3.2)
See merge request idf/esp-idf!4364
2019-02-28 21:06:11 +08:00