]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agoesp32: fix invalid channel state information(CSI) data index
XiaXiaotian [Thu, 27 Dec 2018 13:06:58 +0000 (21:06 +0800)]
esp32: fix invalid channel state information(CSI) data index

    Due to a hardware limitation in ESP32, the first four bytes of some
    CSI data is invalid, not the last four bytes.

    Correct a mistake of CSI sub-carrier index in documentation.

6 years agoMerge branch 'bugfix/phy_rtc_cache_disabled_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 18 Jan 2019 02:54:11 +0000 (10:54 +0800)]
Merge branch 'bugfix/phy_rtc_cache_disabled_v3.1' into 'release/v3.1'

Fix PHY/RTC functions called in ISR, but stored in flash

See merge request idf/esp-idf!4113

6 years agoFix some bugs in phy
Tian Hao [Sun, 13 Jan 2019 08:05:12 +0000 (16:05 +0800)]
Fix some bugs in phy

1. fix bug PHY/RTC functions called in ISR (update phy to v4007)
2. add UnitTest to test it
3. fix task watchdog bug when wifi change channel
4. disable/enable agc to mac deinit/init
5. add UnitTest Job

6 years agoMerge branch 'bugfix/wifi_fix_incorrect_tx_complete_state_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Sat, 12 Jan 2019 11:57:40 +0000 (19:57 +0800)]
Merge branch 'bugfix/wifi_fix_incorrect_tx_complete_state_v3.1' into 'release/v3.1'

esp32: fix the incorrect tx complete state issue (backport v3.1)

See merge request idf/esp-idf!4106

6 years agoesp32: fix the incorrect tx complete state issue
jack [Sat, 12 Jan 2019 07:38:30 +0000 (15:38 +0800)]
esp32: fix the incorrect tx complete state issue

6 years agoMerge branch 'bugfix/fix_ba_hardware_index_deleting_issue_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Sat, 12 Jan 2019 05:56:40 +0000 (13:56 +0800)]
Merge branch 'bugfix/fix_ba_hardware_index_deleting_issue_v3.1' into 'release/v3.1'

esp32: fix wrongly deleting hardware BA index bug (backport v3.1)

See merge request idf/esp-idf!4103

6 years agoesp32: fix wrongly deleting hardware BA index bug
Liu Zhi Fu [Fri, 11 Jan 2019 08:48:58 +0000 (16:48 +0800)]
esp32: fix wrongly deleting hardware BA index bug

Fix the bug that hardware BA index will be wrongly removed in
WiFi mode WIFI_MODE_APSTA.

6 years agoMerge branch 'bugfix/idf_monitor_without_toolchain_v3.1' into 'release/v3.1'
Ivan Grokhotkov [Fri, 11 Jan 2019 07:43:18 +0000 (15:43 +0800)]
Merge branch 'bugfix/idf_monitor_without_toolchain_v3.1' into 'release/v3.1'

tools: Print useful error message from idf_monitor when toolchain isn't available (backport v3.1)

See merge request idf/esp-idf!3948

6 years agoMerge branch 'bugfix/mdns_udp_send_protected_backport3.1' into 'release/v3.1'
Ivan Grokhotkov [Fri, 11 Jan 2019 07:36:57 +0000 (15:36 +0800)]
Merge branch 'bugfix/mdns_udp_send_protected_backport3.1' into 'release/v3.1'

mdns networking udp send protected (Backport 3.1)

See merge request idf/esp-idf!4021

6 years agoMerge branch 'bugfix/mdns_query_failed_after_init_v3.1' into 'release/v3.1'
Ivan Grokhotkov [Fri, 11 Jan 2019 03:26:28 +0000 (11:26 +0800)]
Merge branch 'bugfix/mdns_query_failed_after_init_v3.1' into 'release/v3.1'

Fixed: mdns query failed after init (Backport v3.1)

See merge request idf/esp-idf!3730

6 years agoMerge branch 'bugfix/mdns_crash_when_query_backport3.1' into 'release/v3.1'
Ivan Grokhotkov [Fri, 11 Jan 2019 03:26:02 +0000 (11:26 +0800)]
Merge branch 'bugfix/mdns_crash_when_query_backport3.1' into 'release/v3.1'

mdns crash when query (backport 3.1)

See merge request idf/esp-idf!4019

6 years agoMerge branch 'bugfix/wifi_defragmentation_only_for_data_frame_v3.1' into 'release...
Jiang Jiang Jian [Fri, 11 Jan 2019 02:36:22 +0000 (10:36 +0800)]
Merge branch 'bugfix/wifi_defragmentation_only_for_data_frame_v3.1' into 'release/v3.1'

esp32: do defragmentation only for data and management frame (backport v3.1)

See merge request idf/esp-idf!4091

6 years agoesp32: do defragmentation only for data and management frame
XiaXiaotian [Fri, 4 Jan 2019 03:17:53 +0000 (11:17 +0800)]
esp32: do defragmentation only for data and management frame

    Check frame type before defragmentation. Only data and management frame can do
    defragmentation.

6 years agoMerge branch 'bugfix/coex_unforce_wifi_if_no_data_buffered_in_beacon_v3.1' into ...
Jiang Jiang Jian [Wed, 9 Jan 2019 09:06:11 +0000 (17:06 +0800)]
Merge branch 'bugfix/coex_unforce_wifi_if_no_data_buffered_in_beacon_v3.1' into 'release/v3.1'

esp32: unforce wifi if receiving beacon with no data buffered in dream (backport v3.1)

See merge request idf/esp-idf!4035

6 years agoMerge branch 'bugfix/btdm_fix_auth_mode_error_when_reconnection_in_smp_v3.1' into...
Jiang Jiang Jian [Wed, 9 Jan 2019 05:57:07 +0000 (13:57 +0800)]
Merge branch 'bugfix/btdm_fix_auth_mode_error_when_reconnection_in_smp_v3.1' into 'release/v3.1'

Component/bt: fix auth_mode error when reconnection in SMP(backport V3.1)

See merge request idf/esp-idf!3956

6 years agoMerge branch 'bufix/btdm_fix_save_key_when_auth_mode_without_bond_v3.1' into 'release...
Jiang Jiang Jian [Wed, 9 Jan 2019 05:56:28 +0000 (13:56 +0800)]
Merge branch 'bufix/btdm_fix_save_key_when_auth_mode_without_bond_v3.1' into 'release/v3.1'

Component/bt: fix save keys when auth mode without bond (backport v3.1)

See merge request idf/esp-idf!3958

6 years agoMerge branch 'feature/illegal_instruction_panic_info_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 05:55:48 +0000 (13:55 +0800)]
Merge branch 'feature/illegal_instruction_panic_info_v3.1' into 'release/v3.1'

panic: dump some instruction memory on IllegalInstruction exception (backport v3.1)

See merge request idf/esp-idf!3959

6 years agoMerge branch 'bugfix/btdm_modem_sleep_cowork_with_DFS_for_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 05:53:28 +0000 (13:53 +0800)]
Merge branch 'bugfix/btdm_modem_sleep_cowork_with_DFS_for_v3.1' into 'release/v3.1'

Bugfix/btdm modem sleep cowork with dfs for v3.1(backport v3.1)

See merge request idf/esp-idf!3964

6 years agoMerge branch 'bugfix/btdm_fix_two_bugs_about_pairing_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 05:51:07 +0000 (13:51 +0800)]
Merge branch 'bugfix/btdm_fix_two_bugs_about_pairing_v3.1' into 'release/v3.1'

components/bt: Fix two bugs about pairing(backport 3.1)

See merge request idf/esp-idf!3996

6 years agoMerge branch 'bugfix/ota_magic_byte_issue_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 04:00:57 +0000 (12:00 +0800)]
Merge branch 'bugfix/ota_magic_byte_issue_v3.1' into 'release/v3.1'

Bugfix/ota magic byte issue v3.1 (backport v3.1)

See merge request idf/esp-idf!4003

6 years agoMerge branch 'bugfix/fix_mbox_thread_safe_issue_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 03:23:21 +0000 (11:23 +0800)]
Merge branch 'bugfix/fix_mbox_thread_safe_issue_v3.1' into 'release/v3.1'

fix mbox thread-safe issue (backport v3.1)

See merge request idf/esp-idf!4006

6 years agoMerge branch 'bugfix/ignore_windows_conf_tools_v31' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 03:21:39 +0000 (11:21 +0800)]
Merge branch 'bugfix/ignore_windows_conf_tools_v31' into 'release/v3.1'

gitignore: Add mconf-idf.exe and conf-idf.exe (v3.1)

See merge request idf/esp-idf!4070

6 years agoMerge branch 'bugfix/fix_uart_read_bug_when_using_dual_core_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 03:01:27 +0000 (11:01 +0800)]
Merge branch 'bugfix/fix_uart_read_bug_when_using_dual_core_v3.1' into 'release/v3.1'

driver(uart): fixed uart read error bug when using dual core  (backport v3.1)

See merge request idf/esp-idf!3814

6 years agoMerge branch 'test/add_case_to_detect_ds2ds_issue_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 02:57:26 +0000 (10:57 +0800)]
Merge branch 'test/add_case_to_detect_ds2ds_issue_v3.1' into 'release/v3.1'

test: add test case to receive ds2ds packet (backport v3.1)

See merge request idf/esp-idf!3850

6 years agoMerge branch 'bugfix/uart_select_buffer_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 02:54:16 +0000 (10:54 +0800)]
Merge branch 'bugfix/uart_select_buffer_v3.1' into 'release/v3.1'

VFS: select() on UART should return immediately when data is buffered (backport v3.1)

See merge request idf/esp-idf!3830

6 years agoMerge branch 'bugfix/btdm_fix_accept_specified_sec_auth_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 02:37:19 +0000 (10:37 +0800)]
Merge branch 'bugfix/btdm_fix_accept_specified_sec_auth_v3.1' into 'release/v3.1'

Component/bt: fix accept specified sec auth error(backport V3.1)

See merge request idf/esp-idf!3837

6 years agoMerge branch 'bugfix/btdm_fix_receive_adv_pkt_when_duplicate_scan_enabled_v3.1' into...
Jiang Jiang Jian [Wed, 9 Jan 2019 02:35:05 +0000 (10:35 +0800)]
Merge branch 'bugfix/btdm_fix_receive_adv_pkt_when_duplicate_scan_enabled_v3.1' into 'release/v3.1'

Component/bt: fix receive adv pkt when enable duplicate scan (backport v3.1)

See merge request idf/esp-idf!3943

6 years agoMerge branch 'bugfix/bbpll_wakeup_reset_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 9 Jan 2019 02:31:50 +0000 (10:31 +0800)]
Merge branch 'bugfix/bbpll_wakeup_reset_v3.1' into 'release/v3.1'

BBPLL reset fixes (backport v3.1)

See merge request idf/esp-idf!4013

6 years agoesp32: unforce wifi if receiving beacon with no data buffered in dream
XiaXiaotian [Thu, 27 Dec 2018 09:40:56 +0000 (17:40 +0800)]
esp32: unforce wifi if receiving beacon with no data buffered in dream
state and reduce force receiving broadcast data time

    1. If receiving beacon which indicates that there is no data
    buffered, do not force to receive WiFi data.
    2. If receiving beacon which indicates that there is broadcast data
    buffered, reduce the time to force receiving broadcast data.

6 years agoMerge branch 'bugfix/fix_the_country_code_bug_v3.1' into 'release/v3.1'
Wu Jian Gang [Fri, 4 Jan 2019 03:57:53 +0000 (11:57 +0800)]
Merge branch 'bugfix/fix_the_country_code_bug_v3.1' into 'release/v3.1'

wifi: fix the bug that STA can scan the channel out of the country regdomain range (backport v3.1)

See merge request idf/esp-idf!4064

6 years agogitignore: Add mconf-idf.exe and conf-idf.exe
Angus Gratton [Wed, 28 Nov 2018 01:05:29 +0000 (12:05 +1100)]
gitignore: Add mconf-idf.exe and conf-idf.exe

Problem since f6cd55d2ac

Closes https://github.com/espressif/esp-idf/issues/2751

6 years agowifi: fix the bug that STA can scan the channel out of the country regdomain range
zhangyanjiao [Thu, 3 Jan 2019 06:30:40 +0000 (14:30 +0800)]
wifi: fix the bug that STA can scan the channel out of the country regdomain range

6 years agolwip: fix mbox thread-safe issue
Liu Zhi Fu [Thu, 20 Dec 2018 07:26:52 +0000 (15:26 +0800)]
lwip: fix mbox thread-safe issue

Fix a mbox free thread-safe issue that can lead to crash in sys_arch_mbox_fetch.

6 years agoMerge branch 'bugfix/timer_delete_dispatch_race_v3.1' into 'release/v3.1' v3.1.2
Angus Gratton [Wed, 2 Jan 2019 12:42:45 +0000 (20:42 +0800)]
Merge branch 'bugfix/timer_delete_dispatch_race_v3.1' into 'release/v3.1'

esp_timer: do not allow deleting timers while callbacks are dispatched (backport v3.1)

See merge request idf/esp-idf!3993

6 years agoesp_timer: do not allow deleting timers while callbacks are dispatched
Ivan Grokhotkov [Wed, 19 Dec 2018 07:53:50 +0000 (15:53 +0800)]
esp_timer: do not allow deleting timers while callbacks are dispatched

timer_process_alarm function of esp_timer holds a spinlock for the
entire duration of its operation, except for the time when timer
callback function is called. It is possible that when
timer_process_alarm releases the spinlock, a higher priority task may
run and delete the timer. Then the execution will return to
timer_process_alarm, and this will either cause a crash, or undesired
execution of callback after the timer has been stopped or deleted.

To solve this problem, add a mutex which will prevent deletion of timers
while callbacks are being dispatched.

6 years agonewlib: Fix UT adjtime
Konstantin Kondrashov [Thu, 1 Nov 2018 12:34:39 +0000 (20:34 +0800)]
newlib: Fix UT adjtime

6 years agounit tests: Only initialise tcpip_adapter() when needed by the test
Angus Gratton [Wed, 26 Sep 2018 00:17:46 +0000 (10:17 +1000)]
unit tests: Only initialise tcpip_adapter() when needed by the test

Prevents unexpected memory allocations when running tests which
don't require tcpip_adapter.

6 years agospiffs: increase timeout in readdir test
Ivan Grokhotkov [Tue, 13 Nov 2018 03:41:19 +0000 (11:41 +0800)]
spiffs: increase timeout in readdir test

Timeout of 15 seconds is not sufficient if SPIFFS partition needs to
be formatted, on some of the boards.

6 years agotiny-test-fw: invoke expect callbacks in order of appearance
Ivan Grokhotkov [Wed, 8 Aug 2018 12:55:33 +0000 (15:55 +0300)]
tiny-test-fw: invoke expect callbacks in order of appearance

Previously the callbacks were invoked in the same order as the list of
patterns to be matched.

6 years agotest: fix merge error when backport junit report
He Yin Ling [Tue, 4 Dec 2018 01:19:07 +0000 (09:19 +0800)]
test: fix merge error when backport junit report

6 years agofix the bug that multi device's dut can't detect case
houchenyao [Mon, 3 Sep 2018 10:33:05 +0000 (18:33 +0800)]
fix the bug that multi device's dut can't detect case

6 years agobugfix:fix the multi device stop thread bug
houchenyao [Mon, 20 Aug 2018 11:21:10 +0000 (19:21 +0800)]
bugfix:fix the multi device stop thread bug

6 years agotest: add test case to receive ds2ds packet
He Yin Ling [Wed, 28 Nov 2018 13:53:06 +0000 (21:53 +0800)]
test: add test case to receive ds2ds packet

6 years agomdns: fix networking running udp_sendif from lwip thread
David Cermak [Fri, 14 Dec 2018 10:23:19 +0000 (11:23 +0100)]
mdns: fix networking running udp_sendif from lwip thread

6 years agomdns: fixed static memory leak
David Cermak [Mon, 10 Dec 2018 15:42:10 +0000 (16:42 +0100)]
mdns: fixed static memory leak

6 years agomdns: check all mallocs for failure and add default hook to log error with free heap
David Cermak [Fri, 7 Dec 2018 19:43:13 +0000 (20:43 +0100)]
mdns: check all mallocs for failure and add default hook to log error with free heap

solves crash about _mdns_result_txt_create when stress test

6 years agomdns: resolve memory leak when txt record received multiple times
David Cermak [Thu, 6 Dec 2018 15:46:31 +0000 (16:46 +0100)]
mdns: resolve memory leak when txt record received multiple times

6 years agomdns: skip sending search when finished, not properly locked timer task
David Cermak [Fri, 30 Nov 2018 16:00:05 +0000 (17:00 +0100)]
mdns: skip sending search when finished, not properly locked timer task

6 years agocomponents/bt: Fix two bugs about pairing
baohongde [Fri, 21 Dec 2018 12:52:46 +0000 (20:52 +0800)]
components/bt: Fix two bugs about pairing

1. Fix Legacy Pairing failed without remote device name
2. Fix discovery no device after disabling SSP

6 years agosoc/rtc: reset BBPLL configuration after enabling it
Ivan Grokhotkov [Fri, 21 Dec 2018 05:36:05 +0000 (13:36 +0800)]
soc/rtc: reset BBPLL configuration after enabling it

A workaround to reset BBPLL configuration after light sleep. Fixes the
issue that Wi-Fi can not receive packets after waking up from light
sleep.

Ref. https://github.com/espressif/esp-idf/issues/2711

6 years agobugfix/ota_magic_byte_issue: Fix indent and replace constant by macro
Supreet Deshpande [Mon, 17 Dec 2018 04:26:18 +0000 (09:56 +0530)]
bugfix/ota_magic_byte_issue: Fix indent and replace constant by macro

Replace 0xE9 by ESP_IMAGE_HEADER_MAGIC.

6 years agobugfix/ota_magic_byte_issue: Fixes OTA magic byte error
Supreet Deshpande [Mon, 10 Dec 2018 11:46:38 +0000 (17:16 +0530)]
bugfix/ota_magic_byte_issue: Fixes OTA magic byte error

On enabling flash encryption, OTA fails with magic byte error in the second chunk
if the http data is split into two or more chunks and first chunk is less than 16.

6 years agocomponent/bt: use a pm_lock to prevent light sleep when bluetooth is enabled due...
wangmengyang [Mon, 17 Dec 2018 11:54:57 +0000 (19:54 +0800)]
component/bt: use a pm_lock to prevent light sleep when bluetooth is enabled due to current imcompatibility

6 years agoMerge branch 'bugfix/tw27963_fix_wifi_stop_bug_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 18 Dec 2018 03:40:42 +0000 (11:40 +0800)]
Merge branch 'bugfix/tw27963_fix_wifi_stop_bug_v3.1' into 'release/v3.1'

esp32: fix WiFi stop bug in WiFi/BT coexist mode (backport v3.1)

See merge request idf/esp-idf!3981

6 years agoesp32: fix WiFi stop bug in WiFi/BT coexist mode
Liu Zhi Fu [Mon, 17 Dec 2018 12:39:54 +0000 (20:39 +0800)]
esp32: fix WiFi stop bug in WiFi/BT coexist mode

This fix includes following changes:
1. Fix the bug that esp_restart()/esp_wifi_stop() sometimes fails in WiFi/BT coexist mode.
2. Add a timer for WiFi stop and stop WiFi forcibly once the timer expires.

6 years agoComponent/bt: fix receive adv pkt when enable duplicate scan
zhiweijian [Tue, 11 Dec 2018 13:19:30 +0000 (21:19 +0800)]
Component/bt: fix receive adv pkt when enable duplicate scan

6 years agocomponent/bt: add DRAM_ATTR attribute to global variables(mainly bss segment) in...
wangmengyang [Fri, 14 Dec 2018 08:34:42 +0000 (16:34 +0800)]
component/bt: add DRAM_ATTR attribute to global variables(mainly bss segment) in bt.c which can be accessed in ISRs

6 years agocomponent/bt: bugfix of bluetooth modem sleep not being able to work with Dynamic...
wangmengyang [Fri, 14 Dec 2018 08:22:26 +0000 (16:22 +0800)]
component/bt: bugfix of bluetooth modem sleep not being able to work with Dynamic Frequency Scaling

1. start an esp_timer on entering sleep to acquire pm_lock before wake up from modem sleep
2. decrease the clock division of XTAL fed to bluetooth low power clock from 32us to 2us period to allow to work under 240MHz Max CPU frequency
3. decrease the minimum sleep duration threshold to allow shorter bluetooth modem sleep period, especially for BLE with short connection interval
4. reconfigure bluetooth baseband(BT-BB) settings after PHY/RF init upon waking up from modem sleep to avoid packet RX/TX performance degradation

6 years agoMerge branch 'bugfix/btdm_assert_ble_65536_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 14 Dec 2018 12:34:33 +0000 (20:34 +0800)]
Merge branch 'bugfix/btdm_assert_ble_65536_v3.1' into 'release/v3.1'

fix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222

See merge request idf/esp-idf!3967

6 years agofix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222
Tian Hao [Fri, 14 Dec 2018 09:38:52 +0000 (17:38 +0800)]
fix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222

6 years agopanic: dump some instruction memory on IllegalInstruction exception
Ivan Grokhotkov [Sun, 2 Dec 2018 22:57:26 +0000 (06:57 +0800)]
panic: dump some instruction memory on IllegalInstruction exception

6 years agoComponent/bt: fix save keys when auth mode without bond
zhiweijian [Fri, 23 Nov 2018 10:06:02 +0000 (18:06 +0800)]
Component/bt: fix save keys when auth mode without bond

6 years agoComponent/bt: fix auth_mode error when reconnection in SMP
zhiweijian [Fri, 30 Nov 2018 13:47:17 +0000 (21:47 +0800)]
Component/bt: fix auth_mode error when reconnection in SMP

6 years agotools: Print useful error message from idf_monitor when toolchain isn't available
Roland Dobai [Sat, 1 Dec 2018 15:16:49 +0000 (16:16 +0100)]
tools: Print useful error message from idf_monitor when toolchain isn't available

6 years agoMerge branch 'bugfix/xts_compile_err_3.1' into 'release/v3.1'
Ivan Grokhotkov [Mon, 10 Dec 2018 09:41:29 +0000 (17:41 +0800)]
Merge branch 'bugfix/xts_compile_err_3.1' into 'release/v3.1'

Bugfix/xts compile err 3.1

See merge request idf/esp-idf!3747

6 years agombedtls: Fix compilation errors when CONFIG_MBEDTLS_HARDWARE_AES is disabled
Sagar Bijwe [Wed, 17 Oct 2018 13:53:46 +0000 (19:23 +0530)]
mbedtls: Fix compilation errors when CONFIG_MBEDTLS_HARDWARE_AES is disabled

6 years agoMerge branch 'bugfix/fat_lock_log_v3.1' into 'release/v3.1'
Ivan Grokhotkov [Fri, 7 Dec 2018 06:07:16 +0000 (14:07 +0800)]
Merge branch 'bugfix/fat_lock_log_v3.1' into 'release/v3.1'

fatfs: Do not log from critical sections (backport v3.1)

See merge request idf/esp-idf!3720

6 years agoMerge branch 'bugfix/btdm_assert_ble_32768_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 7 Dec 2018 05:54:18 +0000 (13:54 +0800)]
Merge branch 'bugfix/btdm_assert_ble_32768_v3.1' into 'release/v3.1'

fix bug that there's very low ratio to cause BLE assert(32768, 0) in rwble.c at line 222

See merge request idf/esp-idf!3918

6 years agoMerge branch 'fix/spi_callback_in_iram_v3.1' into 'release/v3.1'
Angus Gratton [Fri, 7 Dec 2018 01:11:47 +0000 (09:11 +0800)]
Merge branch 'fix/spi_callback_in_iram_v3.1' into 'release/v3.1'

spi: fix the crash when callbacks are not in the IRAM (Backports v3.1)

See merge request idf/esp-idf!3886

6 years agofix bug that there's very low ratio to cause BLE assert(32768, 0) in rwble.c at line 222
Tian Hao [Thu, 6 Dec 2018 08:54:14 +0000 (16:54 +0800)]
fix bug that there's very low ratio to cause BLE assert(32768, 0) in rwble.c at line 222

6 years agoMerge branch 'bugfix/btdm_bugs_caused_by_coex_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Wed, 5 Dec 2018 06:17:33 +0000 (14:17 +0800)]
Merge branch 'bugfix/btdm_bugs_caused_by_coex_v3.1' into 'release/v3.1'

component/bt and esp32:  fix two bluetooth bugs that caused by coexist module

See merge request idf/esp-idf!3871

6 years agospi: fix the crash when callbacks are not in the IRAM
Michael (XIAO Xufeng) [Tue, 23 Oct 2018 08:57:32 +0000 (16:57 +0800)]
spi: fix the crash when callbacks are not in the IRAM

Introduced in 9c23b8e5 and 4f87a62f. To get higher speed, menuconfig
options are added to put ISR and other functions into the IRAM.  The
interrupt flag ESP_INTR_FLAG_IRAM is also mistakenly set when the ISR is
put into the IRAM. However callbacks, which are wrote by the user, are
called in the master and slave ISR. The user may not be aware of that
these callbacks are not disabled during flash operations. Any cache miss
during flash operation will cause panic.

Essentially IRAM functions and intrrupt flag ESP_INTR_FLAG_IRAM are
different, the latter means not disabling the ISR during flash
operations.  New bus_config flag intr_flags is offered to help set the
interrupt attribute, including priority level, SHARED, IRAM (not
disabled during flash operations).  It introduced a small BREAK to
IDFv3.1 (but the same as IDFv3.0) that the user has to manually set IRAM
flag now (therefore he's aware of the IRAM thing) to void the ISR being
disabled during flash operations.

6 years ago component/bt and esp32: fix two bluetooth bugs that caused by coexist module
Tian Hao [Sat, 1 Dec 2018 10:10:19 +0000 (18:10 +0800)]
 component/bt and esp32:  fix two bluetooth bugs that caused by coexist module

    1. Fix interrupt watchdog timeout in bluetooth "btdm_bb_isr"
    2. Fix BLE assert(512) or assert(1536)  in rwble.c at line 222
    3. Update librtc.a to fix BLE assert(512) in rwble.c at line 222

    The #1 and #2 occurs random.
    The #3 bug occurs in certain scenario:
     1. If Wifi start softap and BLE is working
     2. If wifi start station, but do not use normal station operation, such
     as just use espnow, while BLE is working
     3. Any other scenario, that wifi works without use software coexist
     operation, while BLE is working(such as do advertising and ...)

    4. update libcoexist.a version to v1.1.2

6 years agoMerge branch 'ci/combine_unit_test_and_integration_test_v3.1' into 'release/v3.1'
Angus Gratton [Mon, 3 Dec 2018 03:28:49 +0000 (11:28 +0800)]
Merge branch 'ci/combine_unit_test_and_integration_test_v3.1' into 'release/v3.1'

ci: combine unit_test and integration_test stage (backport v3.1)

See merge request idf/esp-idf!3844

6 years agoci: combine unit_test and integration_test stage:
He Yin Ling [Mon, 26 Nov 2018 08:40:32 +0000 (16:40 +0800)]
ci: combine unit_test and integration_test stage:

The number of runners of integration test is not bottleneck to CI
pipeline performance now. Combine these 2 stages will make integration
test executed even unit test fails. This could help us to collect more
info about test history.

6 years agoMerge branch 'test/enhanced_junit_test_result_v3.1' into 'release/v3.1'
Angus Gratton [Fri, 30 Nov 2018 03:38:26 +0000 (11:38 +0800)]
Merge branch 'test/enhanced_junit_test_result_v3.1' into 'release/v3.1'

test: enhanced junit test result (backport v3.1)

See merge request idf/esp-idf!3793

6 years agoComponent/bt: fix accept specified sec auth error
zhiweijian [Fri, 23 Nov 2018 12:14:03 +0000 (20:14 +0800)]
Component/bt: fix accept specified sec auth error

6 years agoMerge branch 'bugfix/i2c_hardware_filter_default_enable_v3.1' into 'release/v3.1'
Ivan Grokhotkov [Thu, 29 Nov 2018 11:29:04 +0000 (19:29 +0800)]
Merge branch 'bugfix/i2c_hardware_filter_default_enable_v3.1' into 'release/v3.1'

driver(i2c): enable I2C master hardware filter by default for release/v3.1

See merge request idf/esp-idf!3816

6 years agoVFS: select() on UART should return immediately when data is buffered
Roland Dobai [Tue, 27 Nov 2018 11:53:19 +0000 (12:53 +0100)]
VFS: select() on UART should return immediately when data is buffered

6 years agoMerge branch 'bugfix/freertos_idle_tick_count_v3.1' into 'release/v3.1'
Ivan Grokhotkov [Thu, 29 Nov 2018 04:01:56 +0000 (12:01 +0800)]
Merge branch 'bugfix/freertos_idle_tick_count_v3.1' into 'release/v3.1'

freertos: use xTaskQueueMutex to protect tick count (backport v3.1)

See merge request idf/esp-idf!3728

6 years agodriver(i2c): enable I2C master hardware filter by default for release/v3.1
kooho [Thu, 15 Nov 2018 12:21:49 +0000 (20:21 +0800)]
driver(i2c): enable I2C master hardware filter by default for release/v3.1

6 years agodriver(uart): fixed uart read error bug when using dual core for release/v3.1.
kooho [Fri, 19 Oct 2018 06:51:28 +0000 (14:51 +0800)]
driver(uart): fixed uart read error bug when using dual core for release/v3.1.

6 years agoci: use artifacts:reports feature of Gitlab CI
He Yin Ling [Tue, 13 Nov 2018 13:26:58 +0000 (21:26 +0800)]
ci: use artifacts:reports feature of Gitlab CI

6 years agoci: assign unit test cases in sequence of config and name
He Yin Ling [Mon, 16 Jul 2018 09:44:38 +0000 (17:44 +0800)]
ci: assign unit test cases in sequence of config and name

6 years agotest: generate junit test report according to executed cases
He Yin Ling [Fri, 13 Jul 2018 08:48:43 +0000 (16:48 +0800)]
test: generate junit test report according to executed cases

6 years agotiny-test-fw: support capture raw data in DUT:
He Yin Ling [Tue, 20 Nov 2018 15:11:04 +0000 (23:11 +0800)]
tiny-test-fw: support capture raw data in DUT:

test cases might want to use `expect` and get raw data from DUT at the same time. New added capture method provides a way to do that.

6 years agotiny-test-fw: enhanced junit test report support:
He Yin Ling [Fri, 13 Jul 2018 08:47:42 +0000 (16:47 +0800)]
tiny-test-fw: enhanced junit test report support:

1. replace xunitgen with junit_xml, which can log more info
2. allow test cases to handle junit test report by them own
3. allow test cases to log some info into report via `sysout` tag

6 years agoMerge branch 'bugfix/aes_sha_mpi_shared_regs_v3.1' into 'release/v3.1'
Angus Gratton [Mon, 26 Nov 2018 08:23:41 +0000 (16:23 +0800)]
Merge branch 'bugfix/aes_sha_mpi_shared_regs_v3.1' into 'release/v3.1'

aes/sha/mpi: Bugfix a use of shared registers.  (backport v3.1)

See merge request idf/esp-idf!3637

6 years agoaes/sha/mpi: Bugfix a use of shared registers.
Konstantin Kondrashov [Mon, 29 Oct 2018 15:55:02 +0000 (23:55 +0800)]
aes/sha/mpi: Bugfix a use of shared registers.

This commit resolves a blocking in esp_aes_block function.

Introduce:
The problem was in the fact that AES is switched off at the moment when he should give out the processed data. But because of the disabled, the operation can not be completed successfully, there is an infinite hang. The reason for this behavior is that the registers for controlling the inclusion of AES, SHA, MPI have shared registers and they were not protected from sharing.

Fix some related issue with shared using of AES SHA RSA accelerators.

Closes: https://github.com/espressif/esp-idf/issues/2295#issuecomment-432898137
6 years agoMerge branch 'bugfix/btdm_add_check_peer_addr_type_in_set_adv_params_v3.1' into ...
Jiang Jiang Jian [Fri, 23 Nov 2018 12:14:15 +0000 (20:14 +0800)]
Merge branch 'bugfix/btdm_add_check_peer_addr_type_in_set_adv_params_v3.1' into 'release/v3.1'

Component/bt: add check peer addr type in set adv params (backport v3.1)

See merge request idf/esp-idf!3735

6 years agoMerge branch 'bugfix/fix_some_wifi_bugs_1121_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Fri, 23 Nov 2018 09:08:49 +0000 (17:08 +0800)]
Merge branch 'bugfix/fix_some_wifi_bugs_1121_v3.1' into 'release/v3.1'

esp32: fix some wifi bugs (backport v3.1)

See merge request idf/esp-idf!3761

6 years agoesp32: fix some wifi bugs
Liu Zhi Fu [Wed, 21 Nov 2018 07:24:30 +0000 (15:24 +0800)]
esp32: fix some wifi bugs

Fix some wifi bugs
1. Enable RX BAR
2. Fix the bug that ESP32 AP negotiates with iphone to 11g
3. Fix the bug that ESP32 STA has ap_loss because CMCC AP contains two SSID

6 years agoMerge branch 'bugfix/btdm_controller_disable_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 20 Nov 2018 09:00:38 +0000 (17:00 +0800)]
Merge branch 'bugfix/btdm_controller_disable_v3.1' into 'release/v3.1'

Fix two bugs when disable bluetooth controller(backport v3.1)

See merge request idf/esp-idf!3693

6 years agoMerge branch 'bugfix/btdm_errors_in_comment_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 20 Nov 2018 06:26:19 +0000 (14:26 +0800)]
Merge branch 'bugfix/btdm_errors_in_comment_v3.1' into 'release/v3.1'

components/bt: Some errors in comment(backport 3.1)

See merge request idf/esp-idf!3714

6 years agoMerge branch 'bugfix/wifi_sta_sniffer_phy_config_bug_v3.1' into 'release/v3.1'
Jiang Jiang Jian [Tue, 20 Nov 2018 06:20:34 +0000 (14:20 +0800)]
Merge branch 'bugfix/wifi_sta_sniffer_phy_config_bug_v3.1' into 'release/v3.1'

wifi: fix wifi sta and sniffer phy config bug (backport v3.1)

See merge request idf/esp-idf!3723

6 years agoComponent/bt: add check peer addr type in set adv params
zhiweijian [Mon, 19 Nov 2018 09:04:48 +0000 (17:04 +0800)]
Component/bt: add check peer addr type in set adv params

6 years agomdns: sending search packets also in probing and announcing state
David Cermak [Fri, 12 Oct 2018 06:13:55 +0000 (08:13 +0200)]
mdns: sending search packets also in probing and announcing state

mdns queries did not work properly when send imeadiately after set_hostname, which cuased reinit of pcb and therefore restarted probing, so search packets were blocked until probing finished
closes #2507, closes #2593

6 years agofreertos: use xTaskQueueMutex to protect tick count
Ivan Grokhotkov [Fri, 12 Oct 2018 06:18:49 +0000 (14:18 +0800)]
freertos: use xTaskQueueMutex to protect tick count

Having two different spinlocks is problematic due to possibly
different order in which the locks will be taken. Changing the order
would require significant restructuring of kernel code which is
undesirable.

An additional place where taking xTickCountMutex was needed was in
vApplicationSleep function. Not taking xTickCountMutex resulted in
other CPU sometimes possibly advancing tick count while light sleep
entry/exit was happening. Taking xTickCountMutex in addition to
xTaskQueueMutex has shown a problem that in different code paths,
these two spinlocks could be taken in different order, leading to
(unlikely, but possible) deadlocks.

6 years agowifi: fix the bug that if station (sleep is enabled) and sniffer are enabled at the...
zhangyanjiao [Fri, 16 Nov 2018 12:18:05 +0000 (20:18 +0800)]
wifi: fix the bug that if station (sleep is enabled) and sniffer are enabled at the same time,
when disable sniffer, station will never enable phy and rf againi. (backport v3.1)

6 years agofatfs: Do not log from critical sections
Roland Dobai [Fri, 9 Nov 2018 13:15:00 +0000 (14:15 +0100)]
fatfs: Do not log from critical sections

Logging in the critical section can result in a deadlock when the logger
is redirected to FATFS.

Closes https://github.com/espressif/esp-idf/issues/1693