Liu Zhi Fu
3f6a8f1430
esp32: add options to disable/enable TX/RX AMPDU independently
...
Make menuconfig can disable/enable TX/RX AMPDU independently
2017-11-23 09:42:31 +08:00
Liu Zhi Fu
095d163050
lwip: rebind UDP/TCP pcb to valid ip address when ip is changed
...
This change fix the issue UDP/TCP pcb failed to rebind to correct ip address when ip is changed
2017-11-15 16:15:24 +08:00
Liu Zhi Fu
3554d190ff
esp32: update wifi lib to fix some wifi bugs
...
1. Fix resend eapol cause crash issue
2. Don't asser the system when the channel is in 14
2017-11-14 20:45:33 +08:00
Liu Zhi Fu
48ca949fd4
lwip: fix socket close crash issue
...
When lwip_close free the socket resource (netconn etc), any work
related to these resource (netconn etc) must be aborted.
2017-11-13 06:00:52 +00:00
Liu Zhi Fu
2041ba9add
esp32: fix station can't connect esp32 softap in channel 14
...
Channel 14 only supports HT20 while ESP32 softap channel 14 is HT40, fix it.
2017-11-10 10:55:08 +08:00
Liu Zhi Fu
710055025e
esp32/lwip: adjust task stack size according 'nano' print
...
1. Adjust tcpip/main/event/timer task stack size according 'nano' print
2. If 'nano' print is disabled the task stack size reduces 512 bytes
2017-11-09 10:09:42 +08:00
Liu Zhi Fu
13621852dd
esp32: add wifi lib which is compiled with psram gcc
...
Add psram wifi lib because it doesn't impact the WiFi throughput once the psram is not enabled in IDF menuconfig
2017-11-03 23:02:35 +08:00
Liu Zhi Fu
1195ced75c
esp32: reduce default wifi static tx buffer
...
Modify the the default WiFi static tx buffer from 32 to 16
2017-10-28 12:15:40 +08:00
Liu Zhi Fu
ae1ac2ab0e
example: init nvs in iperf example
...
Need to call nvs_flash_init in iperf example
2017-10-20 10:39:56 +08:00
Liu Zhi Fu
cf7ae8135b
tcpip_adapter/lwip: make dhcp domain name server option configurable
...
Add api to configure dhcp option: domain name server
1.closes https://github.com/espressif/esp-idf/issues/162
2.closes https://github.com/espressif/esp-idf/issues/705
2017-10-19 19:28:00 +08:00
Liu Zhi Fu
3bcaa592ee
lwip: refactor to socket ping
...
Do some refactor to socket ping:
1. Add ping_deinit to kill ping thread
2. Apply configuration set by esp_ping_set_target to socket ping
3. Limit only one ping thread
2017-10-13 16:37:09 +08:00
Liu Zhi Fu
e2d077cea1
lwip: init lwip error code
...
Init the error code to ERR_OK when call tcpip_apimsg
2017-10-13 15:59:04 +08:00
Liu Zhi Fu
e04a0d66b8
esp32/tcpipadapter: correct eth ip got event info
...
1. Raise SYSTEM_EVENT_ETH_GOT_IP when eth got ip
2. Add default handler for SYSTEM_EVENT_ETH_GOT_IP
3. Minor change about ethernet kconfig
2017-10-13 15:56:51 +08:00
Liu Zhi Fu
0e586a4cdf
esp32: add const for some WiFi api
...
Add const if the pointer parameter is const
2017-10-13 15:10:34 +08:00
Liu Zhi Fu
762f8da078
esp32: support wifi country code
...
1. Add completed support for WiFi country code
2. Modify esp_wifi_set_country API
2017-09-26 13:36:53 +08:00
Liu Zhi Fu
05b0d567e5
example: add iperf example
...
Support iperf
2017-09-26 09:19:01 +08:00
Liu Zhi Fu
a568ad2c9d
esp32: update wifi lib for a bunch of small feature and bugfix
...
1. Update RTC V229: add BT AGC saturation protection
2. Update PHY V359: (1). esp_init_data_v2.bin -- modify WIFI and BT RX gain table Setting
(2). modify phy_close_rf()
(3). noisefloor add limit and no print
3. WiFi supports modem sleep dynamic frequency switch
4. Fix disabling AMPDU cause esp_wifi_init fail issue
5. Fix sniffer mode cause WiFi can't connect issue
6. Optimize an internal rx buffer full issue
7. Rollback the internal wifi init flag when wifi init fail
2017-09-07 11:01:12 +08:00
Liu Zhi Fu
b45433110f
tcpip_adapter/lwip: optimize wifi/ip event
2017-08-21 14:36:44 +08:00
Liu Zhi Fu
4ad1f2b272
lwip: optimize TCP close
...
Optimize TCP close:
1. Not remove TCP pcb when IP address is changed since the lwip netconn still need the pcb
2. If the TCP connection is in TCP_FIN_WAIT_1 for too long time, remove it
2017-07-27 12:44:39 +08:00
Liu Zhi Fu
7b2f388abc
lwip: Make UDP/TCP receive mail box configurable
...
Different application may require different TCP/UDP receiv mail box size,
so make them configurable.
2017-07-25 13:56:32 +08:00
Liu Zhi Fu
c99c5d13e6
esp32: add menuconfig options to configure BA window
...
Make AMPDU Block Ack Window configurable in menuconfig because we need to configure it
in some special cases, such as iperf test etc
2017-07-25 13:11:38 +08:00
Liu Zhi Fu
9ae5c6700b
lwip/ethernet: fix emac rx buf err
...
1. Lwip not free the ethernet buf in lwip layer
2. Fix emac counter error
2017-07-25 11:19:31 +08:00
Liu Zhi Fu
508855538e
docs: add wifi.rst
...
Add more documents about WiFi API/Event Mechanism/State Machine etc
2017-07-24 10:20:06 +08:00
Liu Zhi Fu
d724cc23d2
tcpip_adapter: not free netif when tcpip adapter is stopped
...
When tcpip adapter is stop, don't free the netif
2017-07-13 18:42:45 +08:00
Liu Zhi Fu
e1f13eda49
esp32: update wifi lib to make low rate work
...
Make low rate work
2017-07-07 22:05:54 +08:00
Liu Zhi Fu
a7ef510551
esp32: update wifi lib to fix a sniffer issue
...
Fix sniffer only receives the first MDPU in AMPDU when the AMPDU is not for our station/soft-AP
2017-06-24 10:45:20 +08:00
Liu Zhi Fu
59479eb7dd
esp32: update wifi lib to fix a wifi connect issue
...
Fix WiFi fails to connect TP842N bug
2017-06-19 21:23:24 +08:00
Liu Zhi Fu
bf4dd5175b
esp32: update wifi lib to fix assoc timeout issue
...
Fix assoc timeout thread-safe issue
2017-06-13 20:08:00 +08:00
Liu Zhi Fu
c1e8988240
esp32: update wifi lib to fix wifi crash bug
...
Fix a wifi crash bug which happens in throughput test
2017-06-08 20:51:21 +08:00
Liu Zhi Fu
f40be8eb77
esp32: add sniffer filter api
...
Add sniffer filter to filter specified packets
2017-06-06 19:07:12 +08:00
Liu Zhi Fu
cd58f089c2
lwip: fix dhcp server crash issue
...
Fix long dhcp request packet cause dhcp server crash issue
2017-06-02 14:02:33 +08:00
Liu Zhi Fu
365b66b95b
esp32: update wifi lib to fix ota fail bug
...
Fix ota fails on dual core
2017-05-23 11:38:45 +08:00
Liu Zhi Fu
f59bf74057
esp32: minor fix for wifi api comments
...
Minor fix about the comments of wifi_promiscuous_pkt_type_t
2017-05-16 17:01:42 +08:00
Liu Zhi Fu
dc78c55f61
esp32: update wifi lib to enlarge wifi task stack size
...
1. Enlarge wifi task stack size by 512Bytes to fix potential stack overflow issue
2. Modify wifi hmac tx queue size from 12 to 32 because we already limit the buffer number in ebuf
management module
2017-05-12 09:36:41 +08:00
Liu Zhi Fu
4235b4c13e
esp32: update wifi lib for some bugfix
...
1. Fix wifi ebuf free twice issue
2. Fix wifi internal assert issue
3. Fix a bug in esp_wifi_stop
4. Fix wifi crash issue
5. Fix 10 UDP connection test out of memory issue
2017-05-11 11:30:08 +08:00
Liu Zhi Fu
7308db6f94
esp32: update wifi lib to enable ebuf sanity check
...
Modify wifi ebuf sanity checking from disaled to enabled
2017-05-04 15:14:11 +08:00
Liu Zhi Fu
e86b2dc9c3
esp32: update WiFi lib for ebuf sanity check fail issue
...
Fix WiFi ebuf sanity check issue
2017-04-28 17:27:55 +08:00
Liu Zhi Fu
5cf3b1c201
esp32/lwip: adjust some lwip options and update wifi lib
...
1. Modify TCP TX window from 2 to 4
2. Modify TCPIP task stack default size from 2048 to 2560
3. Update wifi lib for TCP performance optimization
2017-04-28 15:25:33 +08:00
Liu Zhi Fu
561a1a64f2
esp32: update wifi lib for limitting dynamic wifi buffer
...
Add limit for all dynamic wifi ebuf to avoid wifi run out of memory in some extreme scanrio
2017-04-21 10:38:00 +08:00
Liu Zhi Fu
ab37f89f55
lwip: fix tcp stable test abort issue
...
1. Modify dhcp server timer to 1 seconds
2. Enable ETHARP_TRUST_IP_MAC
modify according to review
2017-04-19 17:39:32 +08:00
Liu Zhi Fu
b94e5f7855
esp32: update wifi lib to fix wifi connect cause crash
...
Fix softap wifi connect crash bug
2017-04-17 19:18:26 +08:00
Liu Zhi Fu
743359a6bf
esp32: update wifi lib for some refactor
...
1. Refactor for wifi ebuf management
2. Refactor for wifi rate control/long rate/tx
2017-04-13 11:41:42 +08:00
Liu Zhi Fu
ece61944f4
lwip: refractor to esp specific counter
...
1. Add tcp debug counter
2. Refractor other ESP specific counter
2017-04-10 14:46:48 +08:00
Liu Zhi Fu
68e27f8188
optimize tcpip adapter layer
2017-04-01 16:41:51 +08:00
Liu Zhi Fu
778a475136
lwip: implement lwip critical session with mutex
...
Currently lwip critical session is based on interrupt, now replace it with mutex
2017-04-01 16:24:58 +08:00
Liu Zhi Fu
a8f9d99cae
lwip: optimize dhcp renew/rebind timer
2017-03-16 09:46:43 +08:00
Liu Zhi Fu
67aabbff8f
esp32: update wifi lib for some bugfix/features
...
1. add options to disable nvs
2. add station keepalive with softap
3. fix beacon rx start time not accurate issue
4. set wifi rx desc/buffer boundary check to internal memory boundary
2017-03-14 10:14:26 +08:00
Liu Zhi Fu
99102af79e
esp32: update wifi lib to fix mpdu len error
...
Fix mpdu len error which impact espressif smartconfig
2017-03-03 18:06:05 +08:00
Liu Zhi Fu
abdd8feebb
esp32: menuconfig adds some WiFi options
...
1. Add options to enable/disable AMPDU
2. Add options to enable/disable WIFI NVS
3. Add options to configure WiFi RX/TX buffer number
2017-03-02 18:13:49 +08:00
Liu Zhi Fu
66199b1efe
Check DHCP rebind timer before checking dhcp release timer in cause they have the same value.
...
lwip: modify dhcp timer granularity from 60s to 1s
Current DHCP granularity is 60 seconds, it's not accurate, it can cause DHCP release/rebind/renew timer
timeout at the same time, also it may renew/rebind/release at wrong time, thus cause problem.
2017-03-01 20:50:58 +08:00
Liu Zhi Fu
3b3c3210a6
lwip: fix bool options default value wrong issue
...
menuconfig options with bool type should use 'y/n' to use the default value,
instead of '1/0'
2017-03-01 13:37:36 +08:00
Liu Zhi Fu
ae09a46cb8
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf
2017-03-01 13:32:04 +08:00
Liu Zhi Fu
cd83bfb31c
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf
2017-02-27 17:22:47 +08:00
Liu Zhi Fu
adfb289e81
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf
2017-02-21 15:03:34 +08:00
Liu Zhi Fu
97eef61184
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf
2017-02-13 17:39:53 +08:00
Liu Zhi Fu
0017e75bda
freertos: fix protection issue in freertos queue event list
...
When functions in queue.c calls listLIST_IS_EMPTY() to check queue event list, the queue list is
protected by queue mutex, on the other hand, when xTaskIncrementTick() modify the queue list, the
queue list is protected by xTaskQueueMutex, this may cause xTaskRemoveFromEventList operate on
the empty queue list and cause problem. This commit is to fix this bug.
may cause
2017-02-10 10:30:17 +08:00
Liu Zhi Fu
7093c59a74
esp32: update wifi lib for some fixes and optimizations
...
1. Reduce the default static rx buffer size from 25 to 10
2. Adjust ampdu interrupt size to 3, namely, raise 1 interrupt per 3-mpdu
3. Make a copy for all received packets, including AMSDU/AMPDU/MPDU
4. Fix softap mis-forward issue
5. Fix pp q full issue
6. Fix sniffer copy wrong content issue
2017-02-10 10:28:03 +08:00
Liu Zhi Fu
b748a63a43
esp32: fix several misc wifi issue
...
1. Fix ssid_str not free issue
2. Fix sniffer not work issue
3. Fix null parameter cause esp_wifi_init crash issue
4. Enable ap ampdu rx interface
2017-02-06 17:56:42 +08:00
Liu Zhi Fu
96e6839745
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf
2017-02-05 15:34:36 +08:00
Liu Zhi Fu
385c61e183
esp32: udpate wifi lib to fix two datapath issues
...
1. fix ampdu<->mpdu<->ampdu switch may cause rx slow issue by put mpdu into ampdu reorder queue
2. fix each ac first sending always fail issue by adding retry
2017-01-26 15:35:04 +08:00
Liu Zhi Fu
39fe51924e
esp32: update wifi lib to fix two datapath issues
...
1. fix ampdu<->mpdu<->ampdu switch may cause rx slow issue by put mpdu into ampdu reorder queue
2. fix each ac first sending always fail issue by adding retry
2017-01-26 15:33:23 +08:00
Liu Zhi Fu
12b1c99962
esp32: update wifi lib to fix ap not respond BA bug
...
Currently softap doesn't respond BA when receiving AMPDU, this fix is to fix this bug
2017-01-19 18:01:32 +08:00
Liu Zhi Fu
084c14f1e4
esp32: fix wifi timer thread-safe issue
...
Update wifi lib to fix a wifi timer thread-safe issue
2017-01-09 10:21:29 +08:00
Liu Zhi Fu
0e7f7a2112
esp32: fix wifi auth issue
...
Fix wifi auth failed issue by default phy mode to 11N
2017-01-07 16:32:03 +08:00
Liu Zhi Fu
a575b9e893
esp32: modify ld file to fix a crash issue
2017-01-07 16:12:07 +08:00
Liu Zhi Fu
1b38494df4
bootloader: modify bootloader dram start address to 0x3fff0000
...
Modify bootloader dram_seg from address 0x3ffc0000 to 0x3fff0000, len from
0x20000 to 0x10000. Please be notified that this is just a workaround for
fixing app data overwrite bootloader data issue!
2017-01-06 13:44:09 +08:00
Liu Zhi Fu
d98b99f4f0
lwip: rework according review comments
2017-01-05 12:22:49 +08:00
Liu Zhi Fu
be994740b4
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into feature/throughput_optimization_phrase_1
2017-01-05 11:37:56 +08:00
Liu Zhi Fu
0fb2ab9f5c
lwip/freertos/esp32: add throughput optimization related code
...
1. Update wifi lib which contains ampdu and other optimizations
2. Add throughput code debug code
3. Other misc modification about throughput optimization
2017-01-05 11:37:08 +08:00
Liu Zhi Fu
d049fd3929
freertos: rework code based on review
2016-12-27 12:11:07 +08:00
Liu Zhi Fu
d2e58193d2
add more protection for per-core data
2016-12-26 19:04:41 +08:00
Liu Zhi Fu
99f4c697ee
freertos: enable dual core by default
2016-12-22 13:37:07 +08:00
Liu Zhi Fu
3a2fbda35c
freertos: minor change according to review comments
2016-12-22 10:51:40 +08:00
Liu Zhi Fu
2cffaf9cc8
freertos: fix dual core issue
...
This commit fixes:
1. xTaskGetCurrentTaskHandle may return wrong TCB when current task switch to a different core
2. Idle task may have problem when it terminate the task in both core
2016-12-22 10:17:39 +08:00
Liu Zhi Fu
3984d96acb
esp32: refactor to sniffer
...
1. TW8657, WIFI send the whole packet to smartconfig;
2. modify API annotation of smartconfig and sniffer;
3. export smartconfig APIs to programming guide;
2016-12-15 18:20:00 +08:00
Liu Zhi Fu
55726385a4
add more comments and call portYIELD when necessary
2016-12-15 15:06:00 +08:00
Liu Zhi Fu
5e2ae7ac19
lwip: fix lwip dual core issue
...
Call xSemaphoreGiveFromISR instead xSemaphoreGive when the calling context is in critical section.
2016-12-15 14:37:21 +08:00
Liu Zhi Fu
5f47b85b87
freertos: default run program on 1st cpu
...
Modify the default cpu-mode to single cpu mode and always run the program on the 1st core
2016-12-02 18:17:57 +08:00
Liu Zhi Fu
9423390c2e
esp32: fix tw6901
...
1. tw6904 - esp32 mode switch cause exception
2. tw8881 - set mac cause exception
3. Make pm_open/pm_shutdown thread-safe
2016-12-02 17:35:49 +08:00
Liu Zhi Fu
144a1567e3
esp32: change wap2 enterprise encrypt type to 5
...
1. b332f3b5 - change wap2 enterprise encrypt type to 5
2. modify the print info of station state transmition
2016-11-30 17:34:19 +08:00
Liu Zhi Fu
72453e3e6b
esp32: update wifi lib to fix tw8868
...
In AP bridge mode, the length of the forwarded data is wrong, it's 26Btyes longer, thus cuase
AP can't forward the data of which length is more than 1460. This modification is to make the
data length right.
2016-11-30 14:20:05 +08:00
Liu Zhi Fu
d2c61cae8c
esp32: update wifi lib
...
1. update phy to version 258 to fix wifi upgrade cause wifi connect fail issue
2. update fix_printf.sh
3. fb5a2b07 - default set ps type to WIFI_PS_NONE
2016-11-29 19:46:34 +08:00
Liu Zhi Fu
5b4361f60a
esp32: update wifi lib to add tw8913 fix
...
dfe73737 - tw8913 wakeup first before scan
2016-11-28 20:11:43 +08:00
Liu Zhi Fu
fc2883a59a
lwip: modify according code review
...
1. Modify tcp window size/send buffer back to 4/2
2. Disable lwip statistics by default
2016-11-28 19:54:22 +08:00
Liu Zhi Fu
9a3f9af2db
esp32/lwip: some misc changes
...
1. Update phy to fix HT40 rx issue
2. Add code about RX_DONE/TX_DONE/Lock-free optimization
3. Fix wifi ioctl return value error
4. Add lwip statistics debug code
5. Modify TCP window size to 10 and send buffer size to 5
2016-11-28 18:36:14 +08:00
Liu Zhi Fu
340b14f0b7
esp32: update wifi lib to contain bt/wifi coexist code
2016-11-24 21:37:46 +08:00
Liu Zhi Fu
4bf0465dab
esp32: fix random pkt cause esp32 watchdog
...
This change fixes the ESP32 watchdog issue. When the MPDU of AMPDU is longer than 1600B,
esp32 will check whether the last 4B is DEADBEEF, if it's not DEADBEEF, it will assert
and the assert will cause esp32 watchdog. The solution is to init the last 4B to DEADBEEF
when malloc new ebuf for the packet longer than 1600B.
2016-11-22 11:46:10 +08:00
Liu Zhi Fu
586c17f831
lwip: remove useless printf info
2016-11-21 16:08:39 +08:00
Liu Zhi Fu
9cc9710a27
lwip: update according to review comments
...
1. Define memp_malloc/memp_free as static inline function
2. When TCP pcb is out of memory, try to kill PCB in FIN_WAIT_1 when necessary
2016-11-21 15:02:36 +08:00
Liu Zhi Fu
8cd48d9f9c
lwip: rework for low_level_output
2016-11-20 17:05:44 +08:00
Liu Zhi Fu
fa57720cdf
lwip: optimize low_level_output
...
When the parameter pbuf for low_level_output is a list, malloc a new pbuf of
which the length equals to the total length of pbuf and send the new pbuf to L2
2016-11-19 22:25:30 +08:00
Liu Zhi Fu
b08113d2b4
lwip: fix CI build issue
2016-11-19 15:14:37 +08:00
Liu Zhi Fu
ab92d43bc6
lwip: fix socket memory leak issue
...
1. Add socket memory leak debug counter
2. Fix TCP PCB leak issue
2016-11-19 14:57:42 +08:00
Liu Zhi Fu
659ec8facb
esp32: add phy_printf
...
1. add phy_printf into libcore
2. update libphy.a which has important optimization for ht40 traffic
2016-11-18 21:11:54 +08:00
Liu Zhi Fu
d19d7107d3
esp32: tw8706 softap join ap return wrong code
...
In softap/null mode, esp_wifi_connect will return ESP_ERR_WIFI_MODE
2016-11-17 11:56:22 +08:00
Liu Zhi Fu
936b02216b
docs/nvs_flash: update the nvs flash offset comment according review
2016-11-17 11:44:39 +08:00
Liu Zhi Fu
f12be7ebd8
nvs_flash: adjust the nvs_flash start sector number
...
Modify the nvs flash start sector from 6 to 9
2016-11-17 11:22:20 +08:00
Liu Zhi Fu
5e428f21b6
lwip: default ESP_L2_TO_L3_COPY to 0
2016-11-17 10:53:00 +08:00
Liu Zhi Fu
ceea97495f
lwip:refractor to the description about this menuconfig option
2016-11-17 10:22:20 +08:00
Liu Zhi Fu
0b2cea6e9f
lwip: modify menuconfig comments according to review
2016-11-16 21:11:17 +08:00