Commit graph

1138 commits

Author SHA1 Message Date
Jiang Jiang Jian 0d1e1fc61c Merge branch 'bugfix/btdm_backports_v3.0_0920' into 'release/v3.0'
components/bt: Backports some bugfix to v3.0

See merge request espressif/esp-idf!6168
2019-09-29 10:20:33 +08:00
liu zhifu 72fa12ec9b esp32: backport some WiFi fixes to v3.0
Fix following WiFi bugs:
1. Fix some potential memory leak caused by WiFi stop
2. Fix the bug that ESP32 AP crashes when connected STA power-off
3. Fix the bug that STA can scan the channel out of regdomain
4. Fix some scan/connect bugs
5. Fix the bug that ESP32 STA fails to connect WPA_WPA2_PSK Apple AP
6. Fix the crashing in scan done because of uint8 overflow
7. Fix the bug that smartconfig crashes when no AP is found
8. Fix the bug that ESP32 sends broadcast to phone after smartconfig is done
2019-09-20 14:30:15 +08:00
baohongde 3333f8c74d components/bt: Backports some bugfix to v3.0
1. bugfix for the error in calculation sniff anchor point which can result in supervision timeout after connection is brought into sniff mode
2. bugfix of error when entering sniff mode with attempt large than 0xFF
3. clear BT/BLE interrupts after controller_disable to overwrite the default non-zero value of intcntl registers.
2019-09-20 11:45:32 +08:00
Angus Gratton 8df3c666db flash encryption: Add config option to disable any plaintext reflashes
Enabled by default when Secure Boot is on, so Flash Encryption protection
is always available in case of a Secure Boot bypass.
2019-09-10 14:27:29 +10:00
zhangyanjiao 21c7c3992c fix wifi bugs for authmode and multi ssid 2019-08-23 13:19:15 +08:00
liu zhifu dd611c54a6 esp32: fix wpa2_enterprise vulnerability bug 2019-08-01 18:11:22 +08:00
zhangyanjiao f10d443b38 fix wifi bugs:
1. fix the crash when do WPS with some router
2. fix espnow bug when add node in STA+AP mode
3. fix espnow watchdog when modify peer
2019-05-24 16:01:28 +08:00
zhangyanjiao 4a2992aac5 fix the bug when scan fail after STA failed to connect to a nonexistent AP 2019-04-30 17:30:18 +08:00
zhangyanjiao f399dc7d48 wifi: fix the bug that WPS fails when AP is encrypted 2019-04-29 15:54:02 +08:00
zhangyanjiao fa69f9b915 wifi: modify wifi reason code 2019-04-02 05:02:15 +00:00
Jiang Jiang Jian 11550525c1 Merge branch 'bugfix/wifi_modify_wifi_kconfig_v3.0' into 'release/v3.0'
esp32: modify WiFi Kconfig in order to achieve better compatility and performance (bakcport v3.0)

See merge request idf/esp-idf!4384
2019-03-17 14:13:50 +08:00
Liu Zhi Fu 6d70432c7b esp32: fix some WiFi bugs
Fix following WiFi bugs:
1. Fix the bug that STA incorrectly deletes BA when receiving DelBA request
2. Add out of memory check
3. Fix the bug that STA incorrectly receives packets when scanning in connected status
2019-03-01 12:53:55 +08:00
XiaXiaotian 7593ca5997 esp32: modify WiFi Kconfig in order to achieve better compatility
and performance
2019-02-28 10:02:29 +08:00
Deng Xin 71e4d231c6 Wifi: bug fix of may connect to wrong AP in all channel scan
1. enable threshold in all channel scan
2. bug fix of may connect to an open AP even set password in all channel scan
2019-02-15 12:41:18 +08:00
Liu Zhi Fu a774044688 esp32: fix some WiFi bugs
Fix following WiFi bugs:
1. Fix a crash bug which is caused by WiFi static TX buffer alloc/free.
2. Fix the bug that iphone fails to connect to ESP32 AP by enabling AP BAR receiving.
3. Fix the bug that ESP32 station fails to connect some APs, such as Xiaomi hotspot etc,
   after reset.
2019-01-31 21:22:09 +08:00
Ivan Grokhotkov 0ee46b6321 bootloader, esp32: add workaround for Tensilica erratum 572
If zero-overhead loop buffer is enabled, under certain rare conditions
when executing a zero-overhead loop, the CPU may attempt to execute an invalid instruction. Work around by disabling the buffer.
2019-01-23 17:20:56 +08:00
Liu Zhi Fu fe6d497fb7 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.
2019-01-11 23:56:27 +08:00
XiaXiaotian 2d40102197 esp32: do defragmentation only for data and management frame
Check frame type before defragmentation. Only data and management frame can do
    defragmentation.
2019-01-09 16:17:27 +08:00
He Yin Ling 1bde2dada6 test: add test case to receive ds2ds packet 2018-12-06 20:28:54 +08:00
Liu Zhi Fu 1a2cb6e363 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
2018-11-21 15:15:11 +08:00
Konstantin Kondrashov 7761b0f28b 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
2018-11-19 20:57:01 +08:00
Angus Gratton 03533a79d9 Merge branch 'bugfix/aes_sha_mpi_shared_regs_v3.0' into 'release/v3.0'
aes/sha/mpi: Bugfix a use of shared registers. (backport v3.0)

See merge request idf/esp-idf!3641
2018-11-19 15:18:55 +08:00
Jiang Jiang Jian 93530e676e Merge branch 'bugfix/iperf_bt_error_when_wifi_connect_v3.0' into 'release/v3.0'
components/bt: Point ACL RX buffer ptr to ACL RX buffer if ACL RX buffer ptr is null(backport 3.0)

See merge request idf/esp-idf!3644
2018-11-12 15:29:37 +08:00
XiaXiaotian ec5f7d6344 esp32: do not try to load PHY data if fail to open NVS 2018-11-06 21:57:23 +08:00
baohongde 0ee8db80ff components/bt: Point ACL RX buffer ptr to ACL RX buffer if ACL RX buffer ptr is null
When WIFI task or other high priority task blocks the Bluetooth task, ACL RX buffer will use up, ACL RX buffer ptr will point to null and will never point to a valid adress. Causing errors in Bluetooth.
2018-11-06 18:03:15 +08:00
Konstantin Kondrashov 8776290f73 aes/sha: Bugfix a filling of AES_KEY_BASE and eap_sha function
Fixed filling of AES_KEY_BASE.
Fixed esp_sha function.
2018-11-06 15:05:36 +08:00
Liu Zhi Fu b8e084c479 esp32: fix some wifi bugs
Fix following WiFi bugs:
1. Fix the bug that sniffer can't catch control packets
2. Fix crash bug in soft-AP mode
3. Fix ACM(Admission Control Management) bug
2018-10-25 12:10:54 +08:00
Liu Zhi Fu ba5f0585af esp32: fix wifi memory leak
Fix a WiFi memory leak bug
2018-10-21 20:56:05 +08:00
zwj 5ce10cb58c component/bt: fix start adv crash 2018-10-19 16:11:56 +08:00
Liu Zhi Fu be02f6b423 esp32: fix WiFi timer inaccurate bug
Fix the bug that WiFi timer is not accurate when sleep is on
2018-10-16 19:55:53 +08:00
Angus Gratton 6313ea0088 Merge branch 'bugfix/fix_psram_eid_v3.0' into 'release/v3.0'
psram: fix psram eid (backport v3.0)

See merge request idf/esp-idf!3463
2018-10-12 11:41:13 +08:00
chenjianqiang 80c013ee5a bugfix(psram): fix the error that two macro definitions are undeclared
1. add definition of FLASH_ID_GD25LQ32C
2. modify DPORT_SPI3_CLK_EN as DPORT_SPI_CLK_EN_2
2018-10-10 20:21:01 +08:00
chenjianqiang 8cfb0b207a bugfix(psram): fix psram driver
1. remove use EID to distinguish psram voltage
2. 1V8 64Mbit psram and 3V3 64Mbit psram use the same psram driver(standard spi interface)
3. set cs hold time register as 1
2018-10-10 15:51:18 +08:00
Wangjialin 6d253b4394 feature(psram): add support for 64MBit psram of 1.8v and 3.3v.
1. Add reading psram EID.
2. Configure different clock mode for different EID.
3. add API to get psram size and voltage.
4. Remove unnecessary VSPI claim.

For 32MBit@1.8V and 64MBit@3.3V psram, there should be 2 extra clock cycles after CS get high level.
For 64MBit@1.8 psram, we can just use standard SPI protocol to drive the psram. We also need to increase the HOLD time for CS in this case.

EID for psram:
32MBit 1.8v: 0x20
64MBit 1.8v: 0x26
64MBit 3.3v: 0x46
2018-10-10 15:43:30 +08:00
Liu Zhi Fu 3af5384a24 esp32: several fixes about BA session setup
1. Fix the bug that ESP32 will reject the retry AddBA request frame
   if AddBA response frame is failed to sent by WiFi LMAC
2. Fix the bug that AddBA request retrys too frequently
3. Forbid BA session setup for VO queue related TID
2018-10-10 13:51:13 +08:00
XiaXiaotian 43d2f940b2 esp32: make esp-touch channel switch thread safe
Fix the crash issue when esp-touch is in progress.
2018-09-25 11:20:29 +08:00
Liu Zhi Fu 328e689cf1 esp32: fix AMPDU RX sequence compitability issue
Fix AMPDU RX sequence compitability issue when connecting to some special APs, such as Mercury, Fast etc.
2018-09-17 14:51:00 +08:00
zhangyanjiao 9189e1006d esp32: fix the bug that SYSTEM_EVENT_STA_GOT_IP is forbidden when gateway is 0.0.0.0 2018-09-11 11:05:51 +08:00
zhangyanjiao f323fe5fee defination: fix the bug that esp_derive_local_mac() defination missing 2018-09-05 14:45:48 +08:00
XiaXiaotian f4022111c8 esp32: reorder MPDU as AMPDU
Some APs transmit AMPDU and MPDU by turns. Moreover, the sequence
    numbers of AMPDU and MPDU are out of order, e.g. MPDU(1253) -
    AMPDU(1251, 1252) - MPDU(1254) - AMPDU(1255, 1256). In order to
    receive both AMPDU and MPDU in order, MPDU must be reordered with
    AMPDU.
2018-08-30 11:59:31 +08:00
Liu Zhi Fu 5dafcf9363 esp32: update wifi lib to fix several WiFi bugs
Fix following WiFi bugs:
1. Shouldn't scan when connect
2. Check beacon length in modem sleep
3. Fix the bug that AP may deauth wrong station when inactivity timer expires
4. Fix the bug that WiFi assert the system when receiving empty MCS in association response frame
2018-08-26 13:05:59 +08:00
Deng Xin 0806617971 wifi: bugfix of ap loss 2018-08-23 21:54:15 +08:00
XiaXiaotian 007d884a85 esp32: fix next beacon and dtim time update issue when beacon is not
received for more than one beacon interval
2018-08-10 11:36:59 +08:00
Liu Zhi Fu 3c92cd607b esp32: update libphy.a to v3663 to improve 11n TX stability
Fix the bug that WiFi 11n TX may fail in some AP or CMW500 3.5 version
This fix can improve the 11n stability
2018-08-06 17:32:10 +08:00
Deng Xin 39f97bb4e8 wifi: add compatible to ccmp encryption 2018-07-31 21:07:46 +08:00
chenyudong 05eb9d155f Wifi: fix ampdu duplicate issue
fix ampdu duplicate issue
2018-07-18 14:51:29 +08:00
Ivan Grokhotkov ef3c6ac276 esp_timer: test for monotonic values of esp_timer_get_timer in CI
Reduce test time by increasing overflow rate, make test more robust.
2018-07-09 15:42:30 +08:00
Ivan Grokhotkov 4129436f7e esp_timer: add test for esp_timer_impl_set_alarm
Ref https://github.com/espressif/esp-idf/issues/1891
2018-07-09 15:42:30 +08:00
Ivan Grokhotkov 0808a04ee8 esp_timer: reduce overflow value in unit tests
This allows testing for race conditions which occur near timer
overflow point more effectively.
2018-07-09 12:06:11 +08:00
Ivan Grokhotkov c99977b67c esp_timer: don’t busy loop in esp_timer_impl_set_alarm
Previously the loop in esp_timer_impl_set_alarm was necessary to catch
the case when timer count wraps around (goes from 2^32 - 1 to 0).
Since ALARM_OVERFLOW_VAL was reduced from 2^32 - 1 to 0xefffffff,
this is no longer necessary.

Fixes https://github.com/espressif/esp-idf/issues/1891
2018-07-09 12:06:11 +08:00