Xentec
9b16cb75f8
esp_event: fix crash when unregistering a handler instance in itself
...
When a handler instance is the last one in the list und unregisters
itself, the handler iterator will be invalidated by entering free'd
memory. Same applies for event base and id, if they become empty.
Merges https://github.com/espressif/esp-idf/pull/4139
2020-03-22 22:34:07 +08:00
Ivan Grokhotkov
f6763a9d84
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:44:20 +01:00
Jiang Jiang Jian
9e70825d1e
Merge branch 'bugfix/sntp_init_can_run_before_net_connection_v3.3' into 'release/v3.3'
...
lw_ip: Add to sys_arch_protect() a check that the mutex is created before use if not then creates it (v3.3)
See merge request espressif/esp-idf!7758
2020-03-18 12:07:08 +08:00
Island
151b6d9bef
Merge branch 'bugfix/allow_adv_stop_again_in_host' into 'release/v3.3'
...
Fix allow to send stop adv hci cmd when host adv state is disable
See merge request espressif/esp-idf!7993
2020-03-17 23:52:04 +08:00
lly
cc07e9d203
ble_mesh: Fix ble mesh nimble host deinit
2020-03-17 14:42:46 +08:00
gengyuchao
ab175f8845
fix allow to send stop adv hci cmd when host adv state is disable
2020-03-16 21:37:07 +08:00
Jiang Jiang Jian
206a844e4a
Merge branch 'bugfix/fix_scan_get_rssi_err_v3.3' into 'release/v3.3'
...
esp_wifi: Fix scan get rssi err (backport v3.3)
See merge request espressif/esp-idf!7963
2020-03-16 20:56:30 +08:00
Jiang Jiang Jian
bf568f2eb4
Merge branch 'bugfix/ble_mesh_miscellaneous_fix_v3.3' into 'release/v3.3'
...
Bugfix/ble mesh miscellaneous fix (v3.3)
See merge request espressif/esp-idf!7971
2020-03-16 13:27:35 +08:00
Jiang Jiang Jian
36cddd0bae
Merge branch 'bugfix/ble_mesh_update_3.3' into 'release/v3.3'
...
Bugfix/ble mesh update 3.3
See merge request espressif/esp-idf!7801
2020-03-16 13:26:44 +08:00
Prasad Alatkar
4fb4c01c53
NimBLE: Add Host based privacy (RPA) feature support (v3.3)
...
- This feature removes dependency on controller to use privacy (RPA)
2020-03-15 21:43:01 +05:30
Prasad Alatkar
237f7eb92a
NimBLE: Fix check for static random address & add MSYS_1 in menuconfig (v3.3)
2020-03-15 21:43:01 +05:30
Hrishikesh Dhayagude
5ca8851be8
NimBLE: Use dynamic buffers instead of static memory (v3.3)
...
The NimBLE host buffers that consume a significant amount of memory are
now allocated dynamically.
The advantage is that, the memory can be reclaimed in cases where BLE
is turned off and not required for the current boot cycle
2020-03-15 21:43:01 +05:30
Prasad Alatkar
b6c88b683f
NimBLE: Misc changes in host flow control, ble_gap_unpair, ble_hs_hci_rx_evt & example (v3.3)
...
- Add menuconfig option for NimBLE host flow control
- Include changes in `blecent` example from upstream PR!702
- add ble_hs_lock in ble_gap_unpair Upstream PR!584
- ble_hs_hci_rx_evt, upstream PR!738
2020-03-15 21:43:01 +05:30
lly
a8763e6517
ble_mesh: Move dev_role to the end of model_pub
2020-03-13 19:53:26 +08:00
lly
de022501b7
ble_mesh: Use the right netkey during iv update
2020-03-13 19:53:23 +08:00
lly
0d6dd36af9
ble_mesh: Use the right net_idx & app_idx for publish
2020-03-13 19:53:19 +08:00
lly
68dba56ac8
ble_mesh: Check buf->ref before unref the buffer
2020-03-13 19:53:16 +08:00
lly
9f32f4b405
ble_mesh: Fix mesh memory use-after-free issue
2020-03-13 19:53:12 +08:00
lly
c19a01d100
ble_mesh: Add ble mesh deinit in btc task
2020-03-13 19:53:08 +08:00
lly
2ae6eedb30
ble_mesh: Free beacon timer when deinit mesh
2020-03-13 19:53:02 +08:00
lly
e73ad2c391
ble_mesh: Use lock for mesh timer operations
2020-03-13 19:52:50 +08:00
xiehang
6de264be1e
esp_wifi: Fix scan get rssi err
...
Remove software modify rssi
2020-03-13 19:41:11 +08:00
Jiang Jiang Jian
766eace598
Merge branch 'bugfix/backport_some_wifi_bugs_0310_v3.3' into 'release/v3.3'
...
Backport some wifi bugs 0310 (backport v3.3)
See merge request espressif/esp-idf!7935
2020-03-13 19:38:01 +08:00
Mahavir Jain
6babdfc0b7
ipc: prevent code getting pulled in for unicore configuration
2020-03-12 16:28:00 +05:30
KonstantinKondrashov
7013d2d7c5
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:23:24 +08:00
xiehang
c9e7a04a9e
Update wifi lib
...
1. Add wifi stop check at wifi deinit entry.
2. Add TX packets size check.
3. Reduce wifi bin size.
4. Fix the bug for setting channel when wifi in NULL mode.
5. Place the Vendor Specific element at the end according to the protocol.
6. Coex adjust scheme when bt is in connnected status.
2020-03-10 20:01:39 +08:00
Shubham Kulkarni
5def4ad7fe
esp_https_ota.c: Add errno check for WiFi disconnection while performing OTA
2020-03-09 13:21:21 +05:30
Shubham Kulkarni
3cceacc931
OTA: Add fix in case of URL redirection
...
Test case for URL Redirection and Chunked server is added
2020-03-09 13:21:21 +05:30
Shubham Kulkarni
9df632482c
OTA: Fixed OTA with chunked servers
...
If esp_http_client_read returns 0, errno check is performed if complete data is not received.
2020-03-09 13:21:21 +05:30
Chinmay Chhajed
72fb22ed51
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 18:58:28 +05:30
Angus Gratton
1eaccfae4a
cmake: Fix bug where PHY partition offset incorrectly set
2020-03-02 23:27:51 +00:00
lly
0e2c77b185
ble_mesh: Calc incomplete timeout based on msg info
2020-02-27 15:47:26 +08:00
lly
91ad0f9f4a
ble_mesh: Start the timer when starting to send the client message
2020-02-27 15:47:12 +08:00
lly
70eadc0b05
ble_mesh: No timeout for client message to non-unicast address
2020-02-27 15:46:54 +08:00
lly
49fc8c86b3
ble_mesh: Unify client application and lower transport layer timeout
2020-02-27 15:46:19 +08:00
lly
04a6ac3cf5
ble_mesh: Allow maximum 377 octets payload
2020-02-27 15:46:03 +08:00
lly
9fa5c14d58
ble_mesh: Reset transport info when node is removed
2020-02-27 15:45:46 +08:00
lly
cc19e1da9b
ble_mesh: Provisioner ignores msg from removed node
2020-02-27 15:45:15 +08:00
liu zhifu
96bb4c6e78
esp32: fix the bug that WiFi stop leads to memory leak
2020-02-27 14:28:39 +08:00
Michael (XIAO Xufeng)
b3d5fe849d
Merge branch 'feat/mcpwm_hal_fixes_v3.3' into 'release/v3.3'
...
mcpwm: add HAL layer support (fix part, backport v3.3)
See merge request espressif/esp-idf!7744
2020-02-24 09:11:10 +08:00
Jiang Jiang Jian
d0d0c979bc
Merge branch 'bugfix/transport_connection_active_v3.3' into 'release/v3.3'
...
fix(transport): Fix a bug of the connection whether be active or not (v3.3)
See merge request espressif/esp-idf!7736
2020-02-22 16:01:13 +08:00
Jiang Jiang Jian
12aa90e6a2
Merge branch 'feature/dev_security_restore_backport_v3p3' into 'release/v3.3'
...
feature/dev_security_restore_backport_v3p3(backport release/v3.3)
See merge request espressif/esp-idf!7739
2020-02-22 16:00:54 +08:00
Michael (XIAO Xufeng)
c9edf16376
mcpwm: decrease test time
...
cherry-pick 538540ce
2020-02-21 22:39:12 +08:00
michael
919dbdd170
mcpwm: fix the fault handling and capture issues
...
1. The fault signal 3 for unit 2 is corrected to the right value
2. Now `mcpwm_fault_set_oneshot_mode` will clear the status before, no
need to reset the peripheral.
3. The capture feature relies on the prescaler, but it's only
initialized in the mcpwm_init funciton, which is used to initialize a
PWM channel. This means, the capture may not work correctly if no PWM
channel is enabled.
Now the prescaler is also updated when `mcpwm_capture_enable` is
called.
2020-02-21 22:39:11 +08:00
michael
3c6f992cf0
mcpwm: enable some unit tests again
2020-02-21 22:39:03 +08:00
June
2548168277
backport mr !6031 - fix security info restore bug
2020-02-21 20:17:17 +08:00
chenyudong
a3c4b04675
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:29:01 +08:00
Jiang Jiang Jian
a55cd0e7f3
Merge branch 'optimization/get_dns_server_and_add_dns_enable_ipv6_dns_retrieval' into 'release/v3.3'
...
lw-ip:optimization get dns server and add dns enable ipv6 dns retrieval
See merge request espressif/esp-idf!7643
2020-02-21 18:20:52 +08:00
Jiang Jiang Jian
7ab0a59bb3
Merge branch 'bugfix/host_and_example_bugfix_backport_to_v3.3' into 'release/v3.3'
...
Bugfix/host and example bugfix backport to v3.3
See merge request espressif/esp-idf!7723
2020-02-21 18:15:48 +08:00
Liu Han
67be0ae585
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-02-21 11:01:15 +01:00