Commit graph

6045 commits

Author SHA1 Message Date
aleks
6eb6745a59 ci: temporarily disable RS485 related tests 2020-07-13 07:38:48 +02:00
zhangyanjiao
595be5a143 esp_wifi: Add API to get available internal heap size 2020-07-08 21:09:02 +08:00
zhangyanjiao
d16831cf81 esp wifi bugfix:
1. Fix TX DMA buffer issue
2. API esp_wifi_get_config add acquisition sta.listen_interval
3. Configure bandwidth and phy mode to store NVS
4. If AP's tsf has been restarted, STA will disconnect from AP.
5. Do not reset softAP's tsf except it restart
6. fix the wifi regdomain update bug
7. fix the bug for airkiss find hidden AP fail
8. fix addba and first ampdu send bar
2020-07-08 21:07:24 +08:00
Jiang Jiang Jian
a5c8cdd30e Merge branch 'bugfix/beacon_security_downgrade_v3.2' into 'release/v3.2'
Avoid parsing RSN/WPA IE's after connection (Backport v3.2)

See merge request espressif/esp-idf!9347
2020-07-03 14:00:05 +08:00
Island
39e1cd4d74 Merge branch 'bugfix/blufi_buffer_overflow_report_v3.2' into 'release/v3.2'
blufi: When the format of the received data packet is wrong, reply with an error response(backport 3.2)

See merge request espressif/esp-idf!9197
2020-07-03 10:42:12 +08:00
Mahavir Jain
dc237e205a Merge branch 'bugfix/http_server_lru_v3.2' into 'release/v3.2'
esp_http_server: Update LRU counter on accepting a new connection (v3.2)

See merge request espressif/esp-idf!9354
2020-07-02 15:37:46 +08:00
Nachiket Kukade
231773b28a esp_wifi: Update wifi lib
1. Avoid parsing RSN/WPA IE's after connection
2. Remove AUTH_CHANGED reason code logic
2020-07-02 06:37:13 +00:00
baohongde
56019e2c9d components/bt: Config BTU stack size by menuconifg 2020-06-29 21:22:16 +08:00
Shubham Kulkarni
86c18a8e05 esp_http_server: Update LRU counter on accepting a new connection
Closes https://github.com/espressif/esp-idf/issues/3851
2020-06-26 19:26:07 +05:30
Chinmay Chhajed
94353c411e Bluedroid: Authentication fixes in Legacy and Secure Connection.
Prevent a remote device from doing a Bluetooth Impersonation Attack
(BIAS) by:

- Preventing remote device to downgrade secure connection
feature mask. Secure connection feature mask should remain same or
increase to enabled in link key generation and authentication.

- Doing a mutual authentication during Legacy Authentication.
2020-06-25 16:22:34 +05:30
Jiang Jiang Jian
89bf6c2799 Merge branch 'bugfix/btdm_ble_assert_64_0_v3.2' into 'release/v3.2'
components/bt: Fix ble assert(64, 0)

See merge request espressif/esp-idf!8921
2020-06-24 17:17:56 +08:00
Jiang Jiang Jian
26cad6beaa Merge branch 'bugfix/att_buffer_count_fixed_v3.2' into 'release/v3.2'
Bugfix/att buffer count fixed v3.2

See merge request espressif/esp-idf!9163
2020-06-24 17:17:26 +08:00
Hrishikesh Dhayagude
4228e2e62e components/bt: Fix btc_gatts_arg_deep_copy() and bta_gatts_indicate_handle() 2020-06-18 18:13:01 +08:00
baohongde
a915420eec components/bt: Fix ble assert(64, 0) 2020-06-17 06:06:52 +00:00
Mahavir Jain
1503a8951e Merge branch 'bugfix/httpd_lru_purge_v3.2' into 'release/v3.2'
esp_http_server: Fixed a bug which could cause issues with LRU purge (v3.2)

See merge request espressif/esp-idf!8835
2020-06-17 13:31:01 +08:00
wangcheng
ee79ef9ba1 blufi: When the format of the received data packet is wrong, reply with an error response 2020-06-17 12:31:15 +08:00
Jiang Jiang Jian
1cd415dfc1 Merge branch 'bugfix/authmode_degrade_fix_v3.2' into 'release/v3.2'
esp_wifi: Remove auth_changed event and fix wpa2_ent authmode threshold(backport v3.2)

See merge request espressif/esp-idf!9086
2020-06-15 23:20:13 +08:00
Marius Vikhammer
5b6bc8c5ed websocket client: the client now aborts the connection if send fails.
Closes IDF-1744
2020-06-15 14:54:21 +08:00
wangcheng
637090410b components/bt:Fixed the problem of incomplete data packets caused by disordered acl data packets 2020-06-13 15:33:36 +08:00
wangcheng
0df77d5a69 components/bt: Consider link_xmit_data_q in congest events to prevent excessive memory usage 2020-06-13 15:33:28 +08:00
kapil.gupta
4de12b3c0c esp_wifi: Remove auth_changed event and fix wpa2 authmode threshold 2020-06-07 11:25:50 +05:30
Piyush Shah
eb39527318 esp_http_server: Fixed a bug which could cause issues with LRU purge
LRU counter should be started from 1, and not 0, so that all checks
work fine.

Closes https://github.com/espressif/esp-idf/issues/4753
2020-06-05 20:32:01 +00:00
xiehang
0a08a35962 Change the default value of TCP_MSS to 1440 and TCP_MSS Range : [536 1460] 2020-06-04 12:02:40 +08:00
David Čermák
c55901bf02 Merge branch 'bugfix/ws_client_fragmented_send_v3.2' into 'release/v3.2'
ws_client: fix fragmented send setting proper opcodes (v3.2)

See merge request espressif/esp-idf!8693
2020-05-25 17:50:55 +08:00
Michael (XIAO Xufeng)
75ebfacd28 Merge branch 'bugfix/mcpwm_period_error_v3.2' into 'release/v3.2'
bugfix(mcpwm_period_error): fix the issue of wrong period (backport v3.2)

See merge request espressif/esp-idf!7188
2020-05-25 15:36:11 +08:00
Jiang Jiang Jian
8e74a471ea Merge branch 'bugfix/fix_some_wifi_bugs_0427_v3.2' into 'release/v3.2'
Bugfix/fix some wifi bugs 0427 (v3.2)

See merge request espressif/esp-idf!8575
2020-05-22 22:00:31 +08:00
Jiang Jiang Jian
caf889f04d Merge branch 'bufix/fix_v3.2_bluedroid_bugs_mr' into 'release/v3.2'
component/bt: fix notify malloc failed , fix no BLE_AUTH_CMPL_EVT and fix bluedroid btc deinit crash(backport 3.2)

See merge request espressif/esp-idf!8753
2020-05-22 21:16:41 +08:00
David Cermak
af839f371f ws_client: fix fragmented send setting proper opcodes
Previous implementation violated the RFC by having both the actual opcode and WS_FIN flag set for all fragments of a message.
Fixed by setting the opcode only for the first fragment and WS_FIN for the last one

Closes IDFGH-2938
Closes https://github.com/espressif/esp-idf/issues/4974
2020-05-22 06:18:13 +00:00
Jiang Jiang Jian
2ebd93e1d2 Merge branch 'bugfix/wps_config_method_war' into 'release/v3.2'
wpa_supplicant: WPS Inter operatability Fixes

See merge request espressif/esp-idf!8589
2020-05-22 01:07:18 +08:00
zhangyanjiao
caff697a3d wifi changes:
Zhang Yan Jiao authored 2 weeks ago
1. fix the bug for softAP update second channel wrong
2. change wifi_scan_time_t from union to struct
3. query country code wrong when policy change from manual to auto
4. fix the crash issue when fetch peer after delete the cur_peer
5. fix the timeout issue of EAPOL four-way handshake
2020-05-20 17:40:01 +08:00
zwj
c14e7c3360 :add congest direct callback and modify congest evt triger threshold 2020-05-15 16:09:53 +08:00
wangcheng
38d9958c11 master missing BLE_AUTH_CMPL_EVT after restart 2020-05-15 16:09:15 +08:00
wangcheng
026cec78e9 fix bta_dm_deinit_cb 2020-05-15 16:09:15 +08:00
xiehang
5c25689f7f esp_wifi: Fix AP switch to adjacent channel without disconnect 2020-05-15 14:31:40 +08:00
Angus Gratton
5895ecff50 Merge branch 'bugfix/fix_spi_flash_clock_config_error_v3.2' into 'release/v3.2'
flash: fix spi flash clock config error (backport v3.2)

See merge request espressif/esp-idf!8516
2020-05-13 15:32:35 +08:00
kapil.gupta
90de9f4942 wpa_supplicant: WPS Inter operatability Fixes
Add WPS IOT fixes under config option

Current fixes under this flag.
1. Allow NULL-padded WPS attributes.
2. Bypass WPS-Config method validation
2020-05-11 14:02:39 +05:30
Nachiket Kukade
f27b37a4f0 wpa_supplicant: Allow NULL-padded WPS attributes
Some AP's keep NULL-padding at the end of some variable length WPS
Attributes. This is not as par the WPS2.0 specs, but to avoid interop
issues, ignore the padding by reducing the attribute length by 1.
2020-05-11 09:29:51 +05:30
Michael (XIAO Xufeng)
e24b875621 Merge branch 'bugfix/timer_group_intr_enable_v3.2' into 'release/v3.2'
Fix timer group intr enable (backport v3.2)

See merge request espressif/esp-idf!8532
2020-05-08 14:59:54 +08:00
David Čermák
0b56e9d8b3 Merge branch 'feature/config_mqtt_task_prio_v3.2' into 'release/v3.2'
esp_mqtt: configure task priority, esp_mqtt_abort_connection race condition, clenaup logs and docs (v3.2)

See merge request espressif/esp-idf!8478
2020-05-06 16:17:51 +08:00
David Cermak
13c40b53d1 mqtt: clenaup logs and docs, esp_mqtt_abort_connection race condition
esp_mqtt_abort_connection: Fixed an issue which could result in a race condition and subsequent crash

esp_mqtt: Change an error print to use ESP_LOGE instead of ESP_LOGI
Move Sending MQTT connect message log from Info to Debug level
docs: Makes clear that publish API could block
Change the message printed after MQTT connection failure
2020-05-04 08:09:57 +02:00
Chen Zheng Wei
65f012d612 mcpwm: fix the issue of wrong period (backport v3.2) 2020-04-28 21:40:17 +08:00
morris
ec50038f84 timer_group: fix intr_enable
timer group interrupt enable is controled by level_int_ena instead of int_ena

Closes https://github.com/espressif/esp-idf/issues/5103
2020-04-28 12:43:12 +08:00
dowster
eee46733f0 Fix typo with sigmadelta.h #ifdef 2020-04-28 12:43:02 +08:00
chenjianqiang
04bf2db720 flash: fix spi flash clock config error
Closes https://github.com/espressif/esp-idf/issues/5099
2020-04-27 17:44:57 +08:00
Simon Brélivet
7a9d02a18b esp_mqtt: add option to configure mqtt task priority.
Merges https://github.com/espressif/esp-idf/pull/4947
2020-04-24 16:37:25 +02:00
zhangyanjiao
f8ddcc7d74 wifi: fix the bug that ESP32 can't get IP address from China Mobile router 2020-04-20 20:05:36 +08:00
Jiang Jiang Jian
acfee765f7 Merge branch 'bugfix/btdm_backports_v3.2_0328' into 'release/v3.2'
Bugfix/btdm backports v3.2 0328

See merge request espressif/esp-idf!8154
2020-04-16 20:53:05 +08:00
Jiang Jiang Jian
2c21b0b2b3 Merge branch 'bugfix/psram_single_bit_error_v3.2' into 'release/v3.2'
psram: support psram 2T mode to fix single bit error (backport v3.2)

See merge request espressif/esp-idf!7111
2020-04-15 13:43:36 +08:00
Jiang Jiang Jian
0c7abb8978 Merge branch 'bugfix/backport_some_wifi_bugs_0326_v3.2' into 'release/v3.2'
esp32: backport some WiFi fixes (backport v3.2)

See merge request espressif/esp-idf!8307
2020-04-13 22:38:48 +08:00
chenjianqiang
bc4b78459a psram: support psram 2T mode to fix single bit error
1. add enable PSRAM 2T mode function
2. abort when himem and 2T mode are enabled meanwhile
3. set SPIRAM_2T_MODE as "n" by default, enable it when needed
2020-04-13 15:53:27 +08:00
Jiang Jiang Jian
db38a4e068 Merge branch 'bugfix/backport_some_lwip_bugs_0327_v3.2' into 'release/v3.2'
lw-ip:backport some  lw-ip bugfix 0327 for v3.2

See merge request espressif/esp-idf!8133
2020-04-10 21:05:46 +08:00
liu zhifu
795e9136c1 esp32: backport some WiFi fixes to v3.2
Backport following Wifi fixes:

1. Fix esp_wifi_stop() crash
   esp_wifi_stop() crashes if it's called when WiFi is not initialized.

2. Fix memory leak caused by esp_wifi_stop()

3. Fix WiFi log print level

4. esp_wifi_sta_get_ap_info() returns actual values of group ciphers
2020-04-10 10:54:56 +08:00
Ivan Grokhotkov
5f9003aa0a esp_common: add version definitions in code and build system 2020-04-03 01:27:15 +02:00
Jiang Jiang Jian
caacfd87fa Merge branch 'bugfix/btdm_dont_dequeue_the_command_queue_v3.2' into 'release/v3.2'
component/bt: fix don't dequeue the command queue after process the read_by_type_req(backport v3.2)

See merge request espressif/esp-idf!8184
2020-04-01 17:56:15 +08:00
xueyunfei
49202b7f03 backport bugfix lwip for v3.2 2020-03-31 17:44:33 +08:00
xiewenxiang
3b54469bec component/bt: fix don't dequeue the command queue after process the read_by_type_req(backport v3.2) 2020-03-31 16:48:14 +08:00
baohongde
ce9e4d0918 components/bt: Fix assert when create conntion cancel 2020-03-28 21:40:32 +08:00
baohongde
98e183932c Fix bugs about role switch
Jitter in FHS
Jitter in first PULL
Receive EDR packet fail after role switch
2020-03-28 21:33:12 +08:00
Felipe Neves
4a9160a72c multi_heap: ensure that malloc(0) return NULL pointer in any poisoning configuration 2020-03-27 14:39:23 -03:00
Angus Gratton
c604f980d2 Merge branch 'bugfix/cmake_bugfixes_v3.2' into 'release/v3.2'
CMake-related bugfixes (v3.2)

See merge request espressif/esp-idf!8070
2020-03-26 16:36:42 +08:00
Angus Gratton
eed03c5288 Merge branch 'bugfix/esp_event_bugfixes_v3.2' into 'release/v3.2'
esp_event-related fixes (v3.2)

See merge request espressif/esp-idf!8074
2020-03-26 16:20:00 +08:00
Jiang Jiang Jian
4a9b258d46 Merge branch 'bugfix/backport_some_wifi_bugs_0323_v3.2' into 'release/v3.2'
esp_wifi: Backport some wifi bugs 0323 (backport v3.2)

See merge request espressif/esp-idf!8089
2020-03-25 17:53:20 +08:00
Angus Gratton
6f7f5c4d01 Merge branch 'bugfix/hide_unsupported_cmake_features_v3.2' into 'release/v3.2'
security: Hide Secure Boot & Flash Encryption config items when using CMake (v3.2)

See merge request espressif/esp-idf!7908
2020-03-24 18:07:05 +08:00
xiehang
414b843755 esp_wifi: Update WiFi lib
1,Fix sniffer bug caused by mode switch
2,Reduce WiFi bin size
3,Add TX packets size check
4,Fix scan get rssi error
5,Add wifi stop check at WiFi deinit entry
6,Return fail when setting AP's channel is out of range
7,Fix the bug for setting channel when WiFi in NULL mode
2020-03-24 15:13:57 +08:00
Renz Christian Bagaporo
a472052dcf esp_event: remove extra line from source file 2020-03-22 22:43:55 +08:00
Renz Christian Bagaporo
25baed5264 esp_event: test that handlers can unregister themselves 2020-03-22 22:43:47 +08:00
Renz Christian Bagaporo
f8a7ef99ad partition_table: output partition table info for partition_table target 2020-03-22 22:37:38 +08:00
gengyuchao
a2b063dc4e Component/bt :
Add handling of osi memory calloc failure.
Add length check for snprintf in osi config.
2020-03-21 13:16:11 +08:00
gengyuchao
9583c29f27 component/bt: Fix the issue with pointer type conversion in gattc. Unified att(db_sizedb_size) count pointer type in bta and btc, change pointer type in bta from int to uint16_t. 2020-03-21 11:21:55 +08:00
gengyuchao
4643ca6ef8 example/ble_throughput:
Fixed the throughput wasting memory and packet loss issues.
Fixed the throughput crash bug because of using the Mutex.
2020-03-21 11:18:30 +08:00
gengyuchao
da19c94976 bugfix: ble add missing gatt descriptors 2020-03-21 11:18:19 +08:00
Ivan Grokhotkov
63a544dd3c newlib: don't define non-thread-safe versions of getc, putc
getc, getchar, putc, putchar were defined both as functions and as
macros. The macro versions are not thread safe, and should not be used
in multithreaded applications.

Upstream fix: b0f271d1db
2020-03-19 12:53:12 +01:00
Jiang Jiang Jian
51adc08070 Merge branch 'bugfix/compiler_err_when_performance_optimization_enabled_v3.2' into 'release/v3.2'
Bugfix/compiler err when performance optimization enabled v3.2

See merge request espressif/esp-idf!7980
2020-03-17 13:53:33 +08:00
Jiang Jiang Jian
3dbdbb4755 Merge branch 'bugfix/fix_beacon_frame_vendor_ie_issue_v3.2' into 'release/v3.2'
bugfix: Place the Vendor Specific element at the end according to the protocol (backport v3.2)

See merge request espressif/esp-idf!7779
2020-03-17 13:44:37 +08:00
weitianhua
f222a02518 Remove (x2) varible for BCM_STRNCPY_S and BCM_STRCPY_S 2020-03-14 15:04:44 +08:00
weitianhua
dc7c244055 Initialize mem_start and mem_end 2020-03-14 15:04:33 +08:00
Jiang Jiang Jian
aeebe24196 Merge branch 'bugfix/sntp_init_can_run_before_net_connection_v3.2' into 'release/v3.2'
lw_ip: Add to sys_arch_protect() a check that the mutex is created before use if not then creates it (v3.2)

See merge request espressif/esp-idf!7759
2020-03-13 20:10:33 +08:00
KonstantinKondrashov
874b18eab8 lwip: Add to sys_arch_protect() a check that the mutex is created before use if not then creates it
Closes: https://github.com/espressif/esp-idf/issues/944
Closes: https://github.com/espressif/esp-idf/issues/3931
Closes: WIFI-1019
2020-03-11 19:26:43 +08:00
Liu Han
f0138ffdf6 fix(transport): Fix a bug of the connection whether be active or not by timeout option when the select function return a correct value. 2020-03-09 13:51:28 +00:00
Angus Gratton
6281b910d1 security: Hide Secure Boot & Flash Encryption config items when using CMake
These features are not supported in the CMake build system preview, but previously
had to read the notice in the CMake Getting Started guide to know this.

Related to https://github.com/espressif/esp-idf/issues/4419
2020-03-09 11:14:25 +11:00
Chinmay Chhajed
bf9e676884 This MR is intended to fix Bluetooth event scheduling when WiFi is also enabled.
The global interrupts will be disabled before taking current
time for scheduling further bluetooth events. Earlier disabling
interrupts was taking some time because of which WiFi events were
interrupting in current bluetooth scheduling.

Also fixes ble crash issue triggered by ble event irq miss(0x20000)
2020-03-05 19:21:16 +05:30
David Čermák
42869f4912 Merge branch 'feature/websocket_client_v3.2' into 'release/v3.2'
websocket: backport of websocket client to v3.2

See merge request espressif/esp-idf!7268
2020-03-03 16:03:25 +08:00
ronghulin
e5d8ae227d bugfix: Place the Vendor Specific element at the end according to the protocol 2020-03-02 14:15:31 +08:00
June
511c1cee22 backport esp32 5p0 new features to release/v3.2 2020-02-29 09:12:15 +00:00
June
e1086b6b6f backport mr !6031 - fix security info restore bug 2020-02-28 11:48:52 +00:00
Marius Vikhammer
15d39eded5 tcp_transport/ws_client: websockets now correctly handle messages longer than buffer
transport_ws can now be read multiple times in a row to read frames larger than the buffer.

Added reporting of total payload length and offset to the user in websocket_client.

Added local example test for long messages.

Closes IDF-1083
2020-02-27 08:56:43 +00:00
Marius Vikhammer
abe93ee7c3 websocket: backport of websocket client to v3.2
Backports the websocket client and example to ESP-IDF release 3.2.
2020-02-27 08:56:43 +00:00
Jiang Jiang Jian
3c0ac69088 Merge branch 'bugfix/mesh_ie_issues_3.2' into 'release/v3.2'
mesh: fix mesh ie issues (backport 3.2)

See merge request espressif/esp-idf!7199
2020-02-26 22:45:55 +08:00
Jiang Jiang Jian
5ddeab1409 Merge branch 'bugfix/btdm_allow_start_adv_again_v3.2' into 'release/v3.2'
component/bt: allow to send stop adv again and fix tx prog crash (backport v3.2)

See merge request espressif/esp-idf!6917
2020-02-24 20:17:44 +08:00
Jiang Jiang Jian
a988c6bdb6 Merge branch 'bugfix/mbedtls_esp_bignum_v3.2' into 'release/v3.2'
mbedtls: esp bignum fix for 4096 keys (v3.2)

See merge request espressif/esp-idf!7707
2020-02-24 11:44:03 +08:00
chenyudong
9c1935e24c mesh: fix mesh ie issues
Fix an error of mesh deinit lock.
Fix mesh send returns TIMEOUT.
Increase root window close time to 120s.
Clear ie.child when the child connected or fully associated.
Update rc_rssi when roots direct/forward.
ix assoc in mesh ie wrong.
Mesh packets use AC_VI instead of AC_BE.
2020-02-21 18:55:49 +08:00
Jiang Jiang Jian
fda11a687d Merge branch 'bugfix/add_option_to_ipv6_stateless_address_configuration_v3.2' into 'release/v3.2'
lw-ip: Add option to ipv6 stateless address configuration (backport v3.2)

See merge request espressif/esp-idf!7695
2020-02-21 14:56:44 +08:00
David Cermak
7b495db118 mbedtls: fix hw accelerated big-num mul if operand and result overlap
this issue is mainly exposed when using larger (4096) client key in TLS mutual auth,
since it uses multiplications > 2048 when mbedtls_mpi_mul_mpi is used in recursion,
which works only if both operands point to different location than result since
mpi_mult_mpi_overlong() called mbedtls_mpi_grow() to reallocate buffers used in previous
pointer arithmetics and thus corrupting it. Fixed by growing the mpi buffer before
calling mpi_mult_mpi_overlong()
2020-02-20 10:06:28 +01:00
David Cermak
bdf477e76d mbedtls: added mpi multiplication test for large numbers 2020-02-20 10:06:28 +01:00
Amit Sheth
b57134d21e project_include.cmake: Make esptool_py_custom_target callable from other directories 2020-02-20 13:06:18 +05:30
zhiweijian
bdb1391eeb component/bt: allow to send stop adv again and fix tx prog crash 2020-02-20 14:26:47 +08:00
xiehang
ecb5370ca6 lw-ip: Add option to ipv6 stateless address configuration 2020-02-20 14:26:19 +08:00
Jiang Jiang Jian
59f2b3f036 Merge branch 'bugfix/enable_ipv6_address_autoconfig_v3.2' into 'release/v3.2'
lw-ip: Enable IPv6 stateless address autoconfiguration (backport v3.2)

See merge request espressif/esp-idf!7660
2020-02-20 12:44:58 +08:00
Michael (XIAO Xufeng)
aaf98c14fd Merge branch 'bugfix/i2s_timergroup_some_issues_v3.2' into 'release/v3.2'
bugfix(driver): fix i2s and timergroup some issues(backport v3.2)

See merge request espressif/esp-idf!7174
2020-02-20 00:20:54 +08:00
Jiang Jiang Jian
491c64e337 Merge branch 'bugfix/controller_initializer_order_3.2' into 'release/v3.2'
Fix the initializer order

See merge request espressif/esp-idf!7624
2020-02-19 17:10:50 +08:00