You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/09/18 03:11:40 UTC

[incubator-nuttx] 02/02: Update bl602 MTU_SIZE and TX_BUF_SIZE

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit f4b6bb281cbf0fb26288aad83e7afe4955643ad0
Author: jsun <js...@bouffalolab.com>
AuthorDate: Fri Sep 17 18:37:00 2021 +0800

    Update bl602 MTU_SIZE and TX_BUF_SIZE
    
    N/A
    
    Signed-off-by: jsun <js...@bouffalolab.com>
---
 arch/risc-v/src/bl602/bl602_netdev.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/risc-v/src/bl602/bl602_netdev.c b/arch/risc-v/src/bl602/bl602_netdev.c
index ad4fe5b..549e92e 100644
--- a/arch/risc-v/src/bl602/bl602_netdev.c
+++ b/arch/risc-v/src/bl602/bl602_netdev.c
@@ -107,13 +107,13 @@
 
 #define BL602_NET_WDDELAY (1 * CLOCKS_PER_SEC)
 
+#define WIFI_MTU_SIZE 1516
+
 #define BL602_NET_TXBUFF_NUM  12
-#define BL602_NET_TXBUFF_SIZE (1650)
+#define BL602_NET_TXBUFF_SIZE (WIFI_MTU_SIZE + PRESERVE_80211_HEADER_LEN)
 
 #define BL602_TXDESC_THRESHOLD 3
 
-#define WIFI_MTU_SIZE 1514
-
 #if BL602_NET_TXBUFF_SIZE & 0x3 != 0
 #error "BL602_NET_TXBUFF_SIZE must be aligned to 4 bytes"
 #endif