Skip to content

Commit

Permalink
V1.0.1 Wlan patch
Browse files Browse the repository at this point in the history
V1.0.1 Wlan patch
- Update Wlan API for loop 5 times when connecting
- Update Wlan lib
- Support WPA3
  • Loading branch information
M-ichae-l committed Jul 8, 2021
1 parent 8692e27 commit 022263d
Show file tree
Hide file tree
Showing 76 changed files with 2,057 additions and 404 deletions.
2 changes: 1 addition & 1 deletion MicroPython_RTL8722/ports/rtl8722/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ IMAGETOOL = amebad_image_tool.exe
PICK = pick.exe
PAD = pad.exe
BUILDTOOL_PATH := tools/windows
UPLOAD_PATH := COM8
UPLOAD_PATH := COM10
POSTBUILDTOOL_PATH := amebad_tool/tools/windows
MPY_CROSS = $(TOP)/mpy-cross/mpy-cross.exe
LINKER_SCRIPT = amebad_vendor/linker_script
Expand Down
Binary file modified MicroPython_RTL8722/ports/rtl8722/amebad_vendor/ARCHIVE_LIB/btgap.a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ MEMORY
MSP_RAM_NS (rw) : ORIGIN = 0x10004000, LENGTH = 0x10005000 - 0x10004000 /* MSP_NS RAM: 4K */

BD_RAM_NS (rwx) : ORIGIN = 0x10005000, LENGTH = 0x1007C000 - 0x10005000 /* MAIN RAM NS: 456K */
ROMBSS_RAM_S (rwx) : ORIGIN = 0x1007C000, LENGTH = 0x1007D000 - 0x1007C000 /* ROM BSS RAM S: 4K */
BOOTLOADER_RAM_S (rwx) : ORIGIN = 0x1007D000, LENGTH = 0x1007F000 - 0x1007D000 /* BOOT Loader RAM: 8K */
MSP_RAM_S (rwx) : ORIGIN = 0x1007F000, LENGTH = 0x10080000 - 0x1007F000 /* MSP_S RAM: 4k */
EXTENTION_SRAM (rwx) : ORIGIN = 0x100E0000, LENGTH = 0x10100000 - 0x100E0000 /* EXTENTION SRAM: 128k */
ROMBSS_RAM_S (rwx) : ORIGIN = 0x1007C000, LENGTH = 0x1007D000 - 0x1007C000 /* ROM BSS RAM S: 4K */
BOOTLOADER_RAM_S (rwx) : ORIGIN = 0x1007D000, LENGTH = 0x1007F000 - 0x1007D000 /* BOOT Loader RAM: 8K */
MSP_RAM_S (rwx) : ORIGIN = 0x1007F000, LENGTH = 0x10080000 - 0x1007F000 /* MSP_S RAM: 4k */
EXTENTION_SRAM (rwx) : ORIGIN = 0x100E0000, LENGTH = 0x10100000 - 0x100E0000 /* EXTENTION SRAM: 128k */

PSRAM_NS (rwx) : ORIGIN = 0x02000000 + 0x20, LENGTH = 0x02400000 - 0x02000000 - 0x20 /* PSRAM_NS: 4M */
PSRAM_NS (rwx) : ORIGIN = 0x02000000 + 0x20, LENGTH = 0x02400000 - 0x02000000 - 0x20 /* PSRAM_NS: 4M */

/* Flash */
KM0_BOOT (rx) : ORIGIN = 0x08000000+0x20, LENGTH = 0x02000-0x20 /* XIPBOOT: 8k, 32 Bytes resvd for header*/
BACKUP (r) : ORIGIN = 0x08002000, LENGTH = 0x1000 /* BACKUP: 4K system data in flash */
KM0_BOOT (rx) : ORIGIN = 0x08000000+0x20, LENGTH = 0x02000-0x20 /* XIPBOOT: 8k, 32 Bytes resvd for header*/
BACKUP (r) : ORIGIN = 0x08002000, LENGTH = 0x1000 /* BACKUP: 4K system data in flash */
XIPSYS (r) : ORIGIN = 0x08003000, LENGTH = 0x1000 /* XIPSYS: 4K system data in flash */
KM4_BOOT (rx) : ORIGIN = 0x08004000+0x20, LENGTH = 0x02000-0x20 /* XIPBOOT: 8k, 32 Bytes resvd for header*/
KM0_IMG2 (rx) : ORIGIN = 0x0C000000+0x20, LENGTH = 0x02000000-0x20 /* KM0_IMG2: 32MB, 32 Bytes resvd for header, virtual address */
Expand Down Expand Up @@ -60,7 +60,6 @@ SECTIONS
*(.image2.ram.text*)
*(.image2.net.ram.text*)
__ram_text_end__ = .;
. = ALIGN(16);
} > BD_RAM_NS

.ram_image2.data :
Expand All @@ -69,9 +68,9 @@ SECTIONS
*(.data*)
__data_end__ = .;
__ram_image2_text_end__ = .;
. = ALIGN(16);
. = ALIGN(16);
} > BD_RAM_NS

.ram_image2.bss :
{
__bss_start__ = .;
Expand All @@ -96,17 +95,17 @@ SECTIONS
end = .;
*(.heap.stdlib*)
. = . + 4096;

__bfsram_end__ = .;
} > BD_RAM_NS

.xip_image2.text :
.xip_image2.text :
{
__flash_text_start__ = .;

*(.img2_custom_signature*)

*(.text*)
/* *(.image2.net.ram.text*) */
/* *(.image2.net.ram.text*) */
*(.rodata*)

. = ALIGN (4);
Expand Down Expand Up @@ -167,3 +166,5 @@ SECTIONS
*(.psram.heap*)
} > PSRAM_NS
}

__sram_end__ = ORIGIN(BD_RAM_NS) + LENGTH(BD_RAM_NS);
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,6 @@
#endif
#endif

/* This file is from Linux Kernel (include/linux/list.h)
* and modified by simply removing hardware prefetching of list items.
* Here by copyright, credits attributed to wherever they belong.
* Kulesh Shanmugasundaram (kulesh [squiggly] isis.poly.edu)
*/

/*
* Simple doubly linked list implementation.
*
* Some of the internal functions ("__xxx") are useful when
* manipulating whole lists rather than single entries, as
* sometimes we already know the next/prev entries and we can
* generate better code by using them directly rather than
* using the generic single-entry routines.
*/

struct list_head {
struct list_head *next, *prev;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,15 +384,15 @@ static void wifi_disconn_hdl( char* buf, int buf_len, int flags, void* userdata)
if(rtw_join_status & JOIN_NO_NETWORKS)
error_flag = RTW_NONE_NETWORK;

else if(rtw_join_status == 0)
else if(rtw_join_status == JOIN_CONNECTING)
error_flag = RTW_CONNECT_FAIL;

}else if(join_user_data->network_info.security_type == RTW_SECURITY_WPA2_AES_PSK){

if(rtw_join_status & JOIN_NO_NETWORKS)
error_flag = RTW_NONE_NETWORK;

else if(rtw_join_status == 0)
else if(rtw_join_status == JOIN_CONNECTING)
error_flag = RTW_CONNECT_FAIL;

else if(rtw_join_status == (JOIN_COMPLETE | JOIN_SECURITY_COMPLETE | JOIN_ASSOCIATED | JOIN_AUTHENTICATED | JOIN_LINK_READY | JOIN_CONNECTING))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,10 @@

#define BAD_MIC_COUNTERMEASURE 1
#define DEFRAGMENTATION 1
#define RX_AGGREGATION 1
#define RX_AMSDU 1

#define WIFI_LOGO_CERTIFICATION 0
#if WIFI_LOGO_CERTIFICATION
#define RX_AGGREGATION 1
#define RX_AMSDU 1
#else
#ifdef CONFIG_HIGH_TP_TEST
#define RX_AGGREGATION 1
#else
#define RX_AGGREGATION 1
#endif
#define RX_AMSDU 0
#endif

#if defined(CONFIG_PLATFORM_8711B)
#define CONFIG_FW_C2H_PKT
Expand Down Expand Up @@ -243,6 +234,11 @@
#endif


/* For repeater mode */
#define CONFIG_REPEATER 0
#if defined(CONFIG_REPEATER) && CONFIG_REPEATER
#define NOT_SUPPORT_40M
#endif

/* For promiscuous mode */
#define CONFIG_PROMISC
Expand All @@ -262,6 +258,8 @@
#define CONFIG_MULTICAST
#endif

#define CONFIG_RX_PACKET_APPEND_FCS

/* For STA+AP Concurrent MODE */
#define CONFIG_CONCURRENT_MODE
#ifdef CONFIG_CONCURRENT_MODE
Expand Down Expand Up @@ -862,13 +860,12 @@ extern unsigned int g_ap_sta_num;

#define TIME_THRES 20

// zzw
/* 80211 - K V R */
//#define CONFIG_IEEE80211K
//#define CONFIG_LAYER2_ROAMING
#define CONFIG_IEEE80211K
#define CONFIG_LAYER2_ROAMING
#ifdef CONFIG_LAYER2_ROAMING
//#define CONFIG_RTW_WNM
//#define CONFIG_IEEE80211R
#define CONFIG_RTW_WNM
#define CONFIG_IEEE80211R
#endif

#endif //WLANCONFIG_H
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,12 @@ struct net_device_stats {
unsigned long rx_overflow; /* rx fifo overflow count */
unsigned long rx_reorder_drop_cnt;
unsigned long rx_reorder_timeout_cnt;
unsigned long tx_unicast_packets;
unsigned long tx_broadcast_packets;
unsigned long tx_multicast_packets;
unsigned long rx_unicast_packets;
unsigned long rx_broadcast_packets;
unsigned long rx_multicast_packets;
};

struct net_device {
Expand Down
Loading

0 comments on commit 022263d

Please sign in to comment.