Commit Graph

9998 Commits

Author SHA1 Message Date
wangjialiang
84dd05439d ble_mesh: stack: Make unprovisioned beacon interval configurable.
Closes https://github.com/espressif/esp-idf/issues/6722
2021-06-21 14:55:10 +08:00
Ivan Grokhotkov
b82577168a cmake: set IDF_VERSION_* variables at requirement expansion stage
Currently IDF_VERSION_* variables are not available to the component
CMakeLists.txt files at the requirements expansion stage. This makes
it harder to write component CMakeLists files compatible with
different IDF versions.

Include version.cmake from the requirements expansion script, add a
build system test.
2021-06-18 15:37:34 +02:00
Island
f5fc806588 Merge branch 'bugfix/AuthValue_leak_v3.3' into 'release/v3.3'
ble_mesh: stack: Fix AuthValue Leak and Predictable AuthValue in Bluetooth... (v3.3)

See merge request espressif/esp-idf!14006
2021-06-18 09:02:29 +00:00
wangjialiang
35bbd1ba26 ble_mesh: stack: Fix AuthValue Leak and Predictable AuthValue in Bluetooth Mesh Provisioning Leads to MITM 2021-06-17 17:21:01 +08:00
Krzysztof
9d324fecb7 docs: remove quotes in ldgen documentation for adding fragment file 2021-06-17 10:07:04 +02:00
Island
b3827a4b74 Merge branch 'bugfix/impersonation_attacks_and_AuthValue_disclosure_v3.3' into 'release/v3.3'
ble_mesh: stack: Add check the value of Provisioning Random & Confirmation... (v3.3)

See merge request espressif/esp-idf!13928
2021-06-17 03:39:23 +00:00
wangjialiang
78676e7a02 ble_mesh: stack: Add check the value of Provisioning Random & Confirmation sent and received by provisioner 2021-06-16 21:28:10 +08:00
Chen Yudong
4f0ab9ee73 ci: fix iperf basic test not running issue 2021-06-16 15:49:08 +08:00
Yang Zhao
77c7d3be1c bugfix:Set address resolution enable. If not set enable and the filter
policy is 2 or 3, the controller will reply with invalid param error.
2021-06-15 20:08:04 +08:00
He Yin Ling
1b076b5e42 Merge branch 'bugfix/python3_target_test_3.3' into 'release/v3.3'
CI: run target test with python3 (v3.3)

See merge request espressif/esp-idf!13460
2021-06-15 08:46:49 +00:00
Island
b65a37795f Merge branch 'optimize/ble_mesh_miscellaneous_v3.3' into 'release/v3.3'
Optimize/ble mesh miscellaneous (v3.3)

See merge request espressif/esp-idf!13935
2021-06-10 09:21:49 +00:00
lly
9590db4cb6 ble_mesh: stack: Move bt_mesh_rand to mesh_common.c 2021-06-10 09:52:26 +08:00
lly
b2bcbd5559 ble_mesh: stack: Remove useless BT_DBG_ENABLED in a few files 2021-06-10 09:52:09 +08:00
lly
94ca8b8917 ble_mesh: Replace zephyr integer types with C99 types [Zephyr] 2021-06-10 09:51:52 +08:00
lly
85ec75b970 ble_mesh: stack: Update ARRAY_SIZE definition 2021-06-10 09:50:27 +08:00
Chen Yudong
a6fc744026 test: fix socket issue in iperf example test 2021-06-08 17:40:25 +08:00
He Yin Ling
35a7462e69 test: fix iperf example errors:
1. fix TypeError when running with python3
2. fix throughput chart x/y axis label error
3. make test case compatibile with iperf bin on earlier release branches
2021-06-08 17:40:14 +08:00
Chen Yudong
9703c1a32f CI: fix connection failures in asio example tests 2021-06-08 17:40:04 +08:00
Chen Yudong
62359f3442 ci: run target test with python3 2021-06-08 17:39:29 +08:00
Ivan Grokhotkov
19636db724 test: add a (non-automated) case for backtraces with ROM functions 2021-06-08 17:28:00 +10:00
Ivan Grokhotkov
11caa6fcf2 heap: recognize 0x40000000 as an address terminating the backtrace
On Xtensa, backtrace can not recover the two most significant bits of
the address, as the window call size is encoded in these bits.
Because of this, __builtin_return_address modifies these MSBs to
match those of the callee, "fixing" the address. An unfortunate side
effect is that the zero return address, which usually terminates the
backtrace, gets converted to 0x40000000. While there is a valid
instruction at this address, its occurrence in the backtrace is
highly unlikely: this is the first instruction of WindowOverflow4
vector, and IDF apps switch VECBASE to an IRAM location very early at
startup.
2021-06-08 17:28:00 +10:00
Angus Gratton
ac6f6a3768 Merge branch 'bugfix/cmake_partition_md5sum_v3.3' into 'release/v3.3'
bugfix: Fix CMake partition md5sum generation (v3.3)

See merge request espressif/esp-idf!13884
2021-06-08 04:46:10 +00:00
Angus Gratton
e2d6ce553d cmake: partition_table: Fix generation of MD5 for partition table when using CMake 2021-06-07 17:59:12 +10:00
Island
cce139e5bd Merge branch 'bugfix/bt_impersonation_passkey_fix_v3.3' into 'release/v3.3'
Bluedroid: Check only x component of passkey to avoid passkey impersonation attack. (v3.3)

See merge request espressif/esp-idf!13762
2021-06-07 06:41:48 +00:00
Angus Gratton
d7562e2b2c driver test: Increase stack for the "spi poll tasks" test
Current stack usage gets very close to overflowing
2021-06-07 02:11:26 +00:00
Wang Meng Yang
c9cf530c51 Merge branch 'bugfix/invalid_feat_page_exec_v3.3' into 'release/v3.3'
bt controller: Fixed handling for invalid feature page.

See merge request espressif/esp-idf!13569
2021-06-07 01:35:22 +00:00
Angus Gratton
4e64cbb576 Merge branch 'bugfix/partition_table_integrity_check_v3.3' into 'release/v3.3'
paritition_table: Verify the partition table md5sum when loading in the app (v3.3)

See merge request espressif/esp-idf!13587
2021-06-04 08:26:21 +00:00
baohongde
bb824d7a4b bugfix/fix crash when lmp flooding 2021-06-02 17:34:45 +08:00
baohongde
62a4a0dcaf Delete the option BLE ADV priority high
Fix controller task watchdog in Wi-Fi test
2021-06-02 14:44:09 +08:00
Angus Gratton
22487a65ac paritition_table: Verify the partition table md5sum when loading the app
Additionally, always enable the partition MD5 check if flash encryption is on in
Release mode. This ensures the partition table ciphertext has not been modified
(CVE-2021-27926).

The exception is pre-V3.1 ESP-IDF bootloaders and partition tables, which
don't have support for the MD5 entry.
2021-06-02 16:32:31 +10:00
gengyuchao
906dbd262e Backport: Fixed handling for invalid feature page. Add missing IRAM_ATTR in coex mode. 2021-06-02 11:55:42 +08:00
Wang Meng Yang
f656c04d12 Merge branch 'bugfix/ble_timeout_disconnect_no_report_v3.3' into 'release/v3.3'
ble timeout disconnect but no report to host

See merge request espressif/esp-idf!13769
2021-06-02 02:51:17 +00:00
David Čermák
504a9e178f Merge branch 'feature/mqtt_intro_new_modes_v3.3' into 'release/v3.3'
MQTT:  Update submodule reference to support new config modes (v3.3)

See merge request espressif/esp-idf!13712
2021-06-01 05:55:43 +00:00
Ivan Grokhotkov
c7add96e64 Merge branch 'bugfix/fix_idf_monitor_unicode_path_crash_v3.3' into 'release/v3.3'
tools: handle exception in case of logging Unicode characters (v3.3)

See merge request espressif/esp-idf!13045
2021-05-31 17:24:06 +00:00
David Cermak
4fce8182b9 MQTT: Update submodule reference to support new config modes
* Queueing publish messages to outbox when the client is not connected (default=off -> messages are queued if disconnected)
* Use of incremental msg-id instead of random id (default=off -> msg-id uses platform_random())
* Posting a new event-id if a queued message gets deleted from the outbox (default=off -> events are not posted)

Detailed description of included `esp-mqtt` changes
(da850b0add1e71b3659bfac5d797cc834dc3e89b...9ea804e0ab5368d5ab53ae2301a5fec9d1f12f1a)
* mqtt: Remove unused mqtt_header_state_t
  - esp-mqtt commit: b7158a4aea
  - esp-mqtt MR: espressif/esp-mqtt!84
  - Merges https://github.com/espressif/esp-mqtt/pull/180
* Cleanup public include dirs
  - esp-mqtt commit: f65d5d05db
  - esp-mqtt MR: espressif/esp-mqtt!85
* Config: Add a new option to use incremental message id
  - esp-mqtt commit: 8bb4a26f46
  - esp-mqtt MR: espressif/esp-mqtt!85
  - Closes https://github.com/espressif/esp-mqtt/issues/176
* Publish: Add new API to enqueue qos>0 messages
  - esp-mqtt commit: dc7fd5c0b1
  - esp-mqtt MR: espressif/esp-mqtt!85
  - Closes https://github.com/espressif/esp-mqtt/issues/155
* Config: Add a new option to disable publishing when disconnected
  - esp-mqtt commit: f44dcb1c26
  - esp-mqtt MR: espressif/esp-mqtt!85
  - Related https://github.com/espressif/esp-mqtt/issues/177
* Events: Add new event to report deleted messages from outbox
  - esp-mqtt commit: 2e35d4d4d5
  - esp-mqtt MR: espressif/esp-mqtt!85
* Publish: Allow for qos=0 messages to be stored using esp_mqtt_client_enqueue()
  - esp-mqtt commit: e2de0f3e3e
  - esp-mqtt MR: espressif/esp-mqtt!85
2021-05-31 13:04:18 +00:00
Yang Zhao
ea14555cf9 This issue is caused by modem sleep.The sleep interrupt will come the second time before the CLKN interrupt. If
we disable the sleep interrupt when it comes in the first time, the CLKN interrupt will never come.
2021-05-31 09:54:10 +00:00
Chinmay Chhajed
fb55f9f397 Bluedroid: Check only x component of passkey to avoid passkey impersonation attack. 2021-05-31 07:12:57 +00:00
David Čermák
5198a7a46b Merge branch 'bugfix/ensure_rmii_clock_before_phy_reset' into 'release/v3.3'
ethernet: ensure RMII clock before PHY reset

See merge request espressif/esp-idf!13714
2021-05-31 06:53:37 +00:00
Michael (XIAO Xufeng)
6aaddf972c Merge branch 'bugfix/fix_dac_driver_self_contained_backport_v3.3' into 'release/v3.3'
fix dac header file self contained issue (backport v3.3)

See merge request espressif/esp-idf!12890
2021-05-26 10:06:31 +00:00
fuzhibo
4ec4d40af7 bugfix(adc): missing ranges of ADC codes in ESP32 2021-05-26 18:03:50 +08:00
Jiang Jiang Jian
0f80b6363c Merge branch 'nimble/fix_ble_sm_sc_pub_key_v3.3' into 'release/v3.3'
NimBLE: Fix MITM vulnerability and free AES context (v3.3)

See merge request espressif/esp-idf!13600
2021-05-26 04:10:41 +00:00
He Yin Ling
3bc41719ae Merge branch 'ci/ttfw_fix_dut_exception_not_added_to_junit_report_v3.3' into 'release/v3.3'
ttfw: fix DUT exception not added to junit report (v3.3)

See merge request espressif/esp-idf!13615
2021-05-26 03:13:53 +00:00
Omar Chebib
0fb2ff12b8 regi2c: add a spinlock for accessing (reg)I2C devices
When not compiling bootloader, a spinlock will be used for reading or writing
I2C internal devices/registers.
When compiling for bootloader, no need to use any lock.
2021-05-26 10:17:15 +08:00
Prasad Alatkar
9f56c39630 NimBLE: Fix MITM vulnerability and free AES context (v3.3) 2021-05-25 14:55:00 +00:00
Jiang Jiang Jian
aacc7e07a6 Merge branch 'bugfix/fix_set_channel_error_after_wifi_stop_v3.3' into 'release/v3.3'
esp_wifi: Fix setting channel error after WiFi stop (backport v3.3)

See merge request espressif/esp-idf!13453
2021-05-25 14:29:07 +00:00
morris
fc60e09295 ethernet: ensure RMII clock before PHY reset
Closes https://github.com/espressif/esp-idf/issues/6821
2021-05-25 18:51:25 +08:00
dongyou
6b263ae8cb ajust espnow channel range 2021-05-25 11:08:12 +08:00
Patryk Krzywdziński
ea73e952a1 Fix eclipse build: “UnicodeDecodeError: 'ascii' codec can't decode byte”
Closes https://github.com/espressif/esp-idf/pull/6505
2021-05-21 20:59:28 +02:00
David Čermák
d743f8502d Merge branch 'bugfix/mdns_coll_det_list' into 'release/v3.3'
mDNS: Fix of text length calculation when detecting a collision(Backport v3.3)

See merge request espressif/esp-idf!12026
2021-05-20 13:42:11 +00:00
suren.gabrielyan
c4ee49edf1 mDNS: Fix of text length calculation when detecting a collision 2021-05-20 11:05:51 +00:00