Commit Graph

15971 Commits

Author SHA1 Message Date
Piyush Shah
388f4fd7ef wifi_provisioning: Add a check for number of scanned networks while allocating memory
If number of scanned networks is zero, while getting the list, since we try
to allocate zero bytes, we get a NULL pointer in response. This is considered
as an error and the provisioning worflow breaks there.
Adding a check before allocation resolves the issue.
2021-01-15 05:01:35 +00:00
Angus Gratton
317c882133 Merge branch 'bugfix/elf_sha256_first_byte_skip' into 'master'
app_update: fix incorrect first byte from esp_ota_get_app_elf_sha256

Closes IDFGH-4572

See merge request espressif/esp-idf!11981
2021-01-15 06:55:15 +08:00
Angus Gratton
f0cfbc32c2 Merge branch 'bugfix/doc_cairo2svg_version' into 'master'
docs: bump cairosvg from 2.4.2 to 2.5.1 in /docs

Closes IDFGH-4546

See merge request espressif/esp-idf!11894
2021-01-15 06:26:27 +08:00
Michael (XIAO Xufeng)
19d92ef6b2 Merge branch 'fix/tinyusb_cdc_remove_logv_assert_mutex_fail' into 'master'
tinyusb: reduce annoying log under verbose level in CDC

See merge request espressif/esp-idf!11934
2021-01-14 19:28:31 +08:00
Michael (XIAO Xufeng)
ea996df725 Merge branch 'feature/rmt_support_user_context_in_translator' into 'master'
rmt: support user context in translator

Closes IDFGH-4135 and IDFGH-3237

See merge request espressif/esp-idf!10894
2021-01-14 19:26:26 +08:00
Krzysztof Budzynski
8df9e67f15 Merge branch 'bugfix/show_missing_function_descriptions' into 'master'
docs: Update typos in 'esp_efuse.h' header file to show function descriptions

See merge request espressif/esp-idf!11923
2021-01-14 18:13:02 +08:00
Mahavir Jain
569ebc181a Merge branch 'feature/enable_wifi_provisioning_for_esp32c3' into 'master'
wifi_provisioning: enable component build for ESP32-C3

Closes IDF-2251

See merge request espressif/esp-idf!11749
2021-01-14 17:35:12 +08:00
Itay Perl
563bc5d19d app_update: fix incorrect first byte from esp_ota_get_app_elf_sha256
At -O2 optimization level, GCC seems to optimize out the copying of the
first byte of the checksum, assuming it is zero. This "miscompilation"
happens because the esp_app_desc struct is declared const, but then modified
post-compilation. Casting to volatile disables the optimization.

Closes: https://github.com/espressif/esp-idf/pull/6389
2021-01-14 17:10:49 +08:00
Ivan Grokhotkov
8dcdca8d76 Merge branch 'feature/add-ability-to-disable-address-decoding' into 'master'
Add ability to disable address decoding using environment variable

Closes IDFGH-180

See merge request espressif/esp-idf!11795
2021-01-14 16:12:35 +08:00
Island
1e73d90c29 Merge branch 'bugfix/bluedroid_avoid_same_bdaddr_conn' into 'master'
Bluedroid: Do not connect if peer BD_ADDR is same as own BD_ADDR.

See merge request espressif/esp-idf!11806
2021-01-14 14:47:21 +08:00
Krzysztof Budzynski
adb7ba30b1 Merge branch 'doc/update_CN_translation_for_build-system.rst' into 'master'
Updated api-guides/build-system.rst to keep EN and CN in sync

See merge request espressif/esp-idf!11654
2021-01-14 14:04:31 +08:00
Mahavir Jain
ccf89cd4bf wifi_provisioning: fix build warnings due to incorrect event handler argument type 2021-01-14 10:47:35 +05:30
Mahavir Jain
533c124280 wifi_provisioning: enable component build for ESP32-C3 2021-01-14 10:47:35 +05:30
Mahavir Jain
1ae280aee2 wifi_prov_mgr: increase firmware partition size
For ESP32-C3, firmware with Bluedroid host stack exceeds by ~20KB over default
allocated partition size.
2021-01-14 10:47:35 +05:30
Mahavir Jain
7d4acd9e17 wifi_prov_mgr: keep SoftAP transport as default only for ESP32S2
This allows to have default transport as BLE for all chips except
ESP32S2.
2021-01-14 10:47:35 +05:30
Anton Maklakov
f7babe8d46 Merge branch 'bugfix/sonarqube_extra_job_wrong_pipeline' into 'master'
ci: sonarqube: use exit-code instead of extra job

See merge request espressif/esp-idf!11985
2021-01-14 13:14:02 +08:00
Angus Gratton
a0eab085ad Merge branch 'bugfix/return_EINVAL_if_truncate_length_minus_zero' into 'master'
fatfs: return EINVAL if truncate length is less than 0

Closes IDFCI-390

See merge request espressif/esp-idf!11980
2021-01-14 12:03:14 +08:00
Fu Hanxi
4867b38c74 ci: sonarqube: use exit-code instead of extra job 2021-01-14 11:44:39 +08:00
morris
95e712039c rmt: add workaround to get user context in a graceful way 2021-01-14 11:01:41 +08:00
Michael (XIAO Xufeng)
2d3f22918f Merge branch 'feature/gdma_channel_allocator' into 'master'
gdma channel allocator

Closes IDF-2124

See merge request espressif/esp-idf!11570
2021-01-14 10:52:49 +08:00
Nishanth Samala
21bb6f2334 rmt: support rmt user context in translator
Merges https://github.com/espressif/esp-idf/pull/6002
2021-01-14 10:51:25 +08:00
Angus Gratton
0601f00422 Merge branch 'bugfix/rtcio_support_rtc_gpio_desc' into 'master'
Fix rtc_gpio_desc_t compilation error

See merge request espressif/esp-idf!11171
2021-01-14 07:58:26 +08:00
Angus Gratton
92ae75f955 Merge branch 'feature/support_serial_port_env_args_in_tools' into 'master'
Support port and baud env args for otatool targets

Closes IDFGH-3289

See merge request espressif/esp-idf!10812
2021-01-14 07:51:45 +08:00
Angus Gratton
401ad7f2e1 Merge branch 'bugfix/c3_retention_memory_aligned_alloc' into 'master'
heap: support aligned_alloc for retention memory on ESP32-C3

See merge request espressif/esp-idf!11974
2021-01-14 06:38:09 +08:00
Mahavir Jain
9ca00064bd Merge branch 'bugfix/send_conn_close_header' into 'master'
file_serving example: Demonstrate use of connection close header from request headers

Closes IDFGH-3874

See merge request espressif/esp-idf!11922
2021-01-13 22:59:26 +08:00
Jiang Jiang Jian
755b5d617c Merge branch 'bugfix/fix_wps_example_issue' into 'master'
example: We should not check the return value of esp_wifi_connect() in any case

See merge request espressif/esp-idf!11897
2021-01-13 22:23:27 +08:00
Shubham Kulkarni
6f91d408ab file_serving example: Demonstrate use of connection close header from request headers
Closes: https://github.com/espressif/esp-idf/issues/5775
2021-01-13 13:01:15 +00:00
daiziyan
2e3367b97e update api-guides/build-system.rst to keep EN and CN in sync 2021-01-13 19:23:30 +08:00
morris
e9c131e174 fatfs: return EINVAL if truncate length is less than 0 2021-01-13 19:11:48 +08:00
Mahavir Jain
09604d6519 Merge branch 'bugfix/softap_prov_cookies' into 'master'
protocomm_httpd: Use HTTP cookies to track session

Closes IDFGH-4487

See merge request espressif/esp-idf!11883
2021-01-13 18:10:55 +08:00
dependabot[bot]
88aa3c2463 docs: bump cairosvg from 2.4.2 to 2.5.1 in /docs
Bumps [cairosvg](https://github.com/Kozea/CairoSVG) from 2.4.2 to 2.5.1.
- [Release notes](https://github.com/Kozea/CairoSVG/releases)
- [Changelog](https://github.com/Kozea/CairoSVG/blob/master/NEWS.rst)
- [Commits](https://github.com/Kozea/CairoSVG/compare/2.4.2...2.5.1)

Signed-off-by: dependabot[bot] <support@github.com>

Closes https://github.com/espressif/esp-idf/pull/6365
2021-01-13 19:41:16 +11:00
Michael (XIAO Xufeng)
3729a33c90 Merge branch 'docs/dac_dma_esp32s2' into 'master'
docs: updates the dac part on ESP32S2.

See merge request espressif/esp-idf!11821
2021-01-13 16:03:57 +08:00
jiangguangming
47f469b238 heap: support aligned_alloc for retention memory on ESP32-C3 2021-01-13 14:41:22 +08:00
Angus Gratton
78072b32ff Merge branch 'doc/linux_libusb_dep' into 'master'
doc: Add libusb package dependencies for Linux users

Closes IDFGH-1803, IDFGH-3170, and IDFGH-2585

See merge request espressif/esp-idf!11960
2021-01-13 14:39:35 +08:00
Jiang Jiang Jian
7ef49203bd Merge branch 'bugfix/wifi_fix_no_tbtt_in_station_softap_mode_when_listen_interval_sleep' into 'master'
esp_wifi: fix the issue that no tbtt is generated in station+softap mode when maximum modem sleep is enabled

See merge request espressif/esp-idf!11658
2021-01-13 14:17:08 +08:00
Michael (XIAO Xufeng)
da2be51868 docs: updates the dac part on ESP32S2.
Closes https://github.com/espressif/esp-idf/issues/6333
2021-01-13 14:00:03 +08:00
Angus Gratton
e2910d2ff5 doc: Add libusb package dependencies for Arch, CentOS
- Arch uses 'libusb' package, provides libusb-1.0.so
- CentOS has moved to 'libusbx', which is libusb-1 API compatible

Related to https://github.com/espressif/esp-idf/issues/4095
2021-01-13 05:15:27 +00:00
mjdr
f12544a04e doc: Add libusb dependency for Ubuntu
Patch from https://github.com/espressif/esp-idf/pull/4669

Closes https://github.com/espressif/esp-idf/issues/4095
Related to https://github.com/espressif/esp-idf/issues/5181
2021-01-13 05:15:27 +00:00
Angus Gratton
f683db7aea Merge branch 'feature/c3_IDF-2554' into 'master'
global: Uses CCOUNT API instead of XTHAL macro

Closes IDF-2554

See merge request espressif/esp-idf!11954
2021-01-13 12:55:21 +08:00
Angus Gratton
820639cede Merge branch 'bugfix/c3_init_priority' into 'master'
fix[cxx/system]: init_priority ordering on RISCV

Closes IDF-2206 and IDFGH-4527

See merge request espressif/esp-idf!11660
2021-01-13 12:52:21 +08:00
Angus Gratton
9769be3fde Merge branch 'bugfix/fix_sign_compare' into 'master'
global: fix sign-compare warnings for system level components

See merge request espressif/esp-idf!11252
2021-01-13 12:45:05 +08:00
Piyush Shah
541cf16c9e protocomm security1: Restart security session if SESSION_STATE_CMD0 is received
With the introduction of cookies to track a session, it is possible that the
clients restart the provisioning on the same session, specifically when a user
cancels a current provisioning attempt. This can result in an error as the state
on the device side and client side will go out of sync.

This has now been changed such that if SESSION_STATE_CMD0 is received on
an existing session, the state is reset and flow allowed to continue.
2021-01-13 04:34:10 +00:00
Piyush Shah
72fa8d0750 protocomm_httpd: Use HTTP cookies to track session
Earlier, a "socket connection" was being considered as a protocomm "session".
However, for HTTP, we cannot expect clients to necessarily use the same
socket for all requests of a given transaction. This was indeed causing
some failures for Wi-Fi provisioning from Android phones.

So, we have introduced http cookies to track a session even if the socket
connection does not stay intact throughout the transaction.
This change is backward compatible. If the client does not use cookies, the
socket connection will be considered as the session.

Closes: https://github.com/espressif/esp-idf/issues/6316
Reference: https://github.com/espressif/esp-idf/pull/6330
2021-01-13 04:34:10 +00:00
Xia Xiaotian
50681db44c esp_wifi: fix the issue that no tbtt is generated in station+softap mode when
maximum modem sleep is enabled

    close https://github.com/espressif/esp-idf/issues/6006
2021-01-13 04:20:23 +00:00
Jiang Jiang Jian
26418edc85 Merge branch 'bugfix/IDFCI-377-tag' into 'master'
ci: Fix ci IDFCI-377

Closes IDFCI-377

See merge request espressif/esp-idf!11919
2021-01-13 11:59:16 +08:00
morris
40a6a0fac6 async_mcp: apply gdma driver 2021-01-13 10:52:27 +08:00
morris
e6d23a35ec gdma: dynamic alloc DMA channels 2021-01-13 10:52:27 +08:00
Krzysztof Budzynski
e277d8ef23 Merge branch 'bugfix/esp_sntp_header' into 'master'
docs: Add esp_sntp to API reference as it's default idf header

Closes DOC-854

See merge request espressif/esp-idf!11796
2021-01-13 10:28:39 +08:00
David Čermák
76f6dd6214 lwip: Moved default SNTP API to esp_sntp.h
and make sntp.h in port folders of lwip component obsoleted
2021-01-13 10:28:34 +08:00
David Čermák
7dcf368e1c Merge branch 'bugfix/lwip_debug_print_format' into 'master'
lw-ip: Fixed minor debug print format issue

See merge request espressif/esp-idf!11946
2021-01-13 03:01:54 +08:00