Skip to content

Commit 685810b

Browse files
committed
Merge branch 'feature/try_tx_rate_from_high_to_low' into 'master'
feat(esp8266): make tx rate start from high to low See merge request sdk/ESP8266_RTOS_SDK!355
2 parents 3c806b7 + 4facff2 commit 685810b

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

components/esp8266/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ config SCAN_AP_MAX
4949

5050
User can use own function "esp_wifi_scan_get_ap_num_max" to determin how many AP to scan , too.
5151

52+
config WIFI_TX_RATE_SEQUENCE_FROM_HIGH
53+
bool "Set wifi tx rate from 54M to 1M"
54+
default n
55+
help
56+
If this option is enabled, Wifi will try to send packets first from high rate(54M). If it fails, it will
57+
try at low rate until the transmission is successful.
58+
5259
endmenu
5360

5461
menu PHY

components/esp8266/lib/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ gwen:
33
espnow: 8943c89
44
core: f4f0d3d
55
net80211: 80fc165
6-
pp: 06e0988
6+
pp: 09345a6
77
pwm: 0181338
88
smartconfig:8d61f0e
99
wpa: f59f0e0

components/esp8266/lib/libpp.a

136 Bytes
Binary file not shown.

components/esp8266/source/esp_wifi.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,11 @@ size_t __attribute__((weak)) esp_wifi_scan_get_ap_num_max(void)
5656
{
5757
return CONFIG_SCAN_AP_MAX;
5858
}
59+
60+
bool IRAM_ATTR esp_wifi_try_rate_from_high(void) {
61+
#if CONFIG_WIFI_TX_RATE_SEQUENCE_FROM_HIGH
62+
return true;
63+
#else
64+
return false;
65+
#endif
66+
}

components/lwip/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config LWIP_HIGH_THROUGHPUT
1010
select TCP_QUEUE_OOSEQ
1111
select TCP_HIGH_SPEED_RETRANSMISSION
1212
select SOC_FULL_ICACHE
13+
select WIFI_TX_RATE_SEQUENCE_FROM_HIGH
1314
help
1415
Enable this option, also enable "TCP_QUEUE_OOSEQ", "TCP_HIGH_SPEED_RETRANSMISSION" and
1516
"SOC_FULL_ICACHE", so lwip should cache TCP message received in disorder sequence and

0 commit comments

Comments
 (0)