From 1b8650bf7e30e5055a3a8da877d2dfbe17e27ad6 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Thu, 30 May 2019 21:24:46 +0200 Subject: [PATCH 1/3] Preparing adding 8821au & 8814au support --- Makefile | 38 ++++++++++++++++++++++++++++++++++++++ dkms.conf | 2 +- include/autoconf.h | 2 +- 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 611dfd4..99a9539 100755 --- a/Makefile +++ b/Makefile @@ -195,6 +195,34 @@ ifeq ($(CONFIG_PCI_HCI), y) HCI_NAME = pci endif +ifeq ($(CONFIG_RTL8812A)_$(CONFIG_RTL8821A)_$(CONFIG_RTL8814A), y_n_n) + +EXTRA_CFLAGS += -DDRV_NAME=\"rtl88xxau\" +ifeq ($(CONFIG_USB_HCI), y) +USER_MODULE_NAME = 88XXau +endif +ifeq ($(CONFIG_PCI_HCI), y) +USER_MODULE_NAME = 88XXae +endif +ifeq ($(CONFIG_SDIO_HCI), y) +USER_MODULE_NAME = 88XXas +endif + +else +EXTRA_CFLAGS += -DDRV_NAME=\"rtl8812au\" +endif + +#ifeq ($(RTL8814), 1) +#CONFIG_RTL8812A = n +#CONFIG_RTL8821A = n +#CONFIG_RTL8814A = y +#endif + +#ifeq ($(RTL8821), 1) +#CONFIG_RTL8812A = y +#CONFIG_RTL8821A = y +#CONFIG_RTL8814A = n +#endif _OS_INTFS_FILES := os_dep/osdep_service.o \ os_dep/linux/os_intfs.o \ @@ -1194,6 +1222,16 @@ ifeq ($(CONFIG_IP_R_MONITOR), y) EXTRA_CFLAGS += -DCONFIG_IP_R_MONITOR endif +ifeq ($(CONFIG_LED_CONTROL), y) +EXTRA_CFLAGS += -DCONFIG_LED_CONTROL +ifeq ($(RTL8814), 1) +EXTRA_CFLAGS += -DCONFIG_SW_LED -DCONFIG_RTW_SW_LED +endif +ifeq ($(CONFIG_LED_ENABLE), y) +EXTRA_CFLAGS += -DCONFIG_LED_ENABLE +endif +endif + ifeq ($(CONFIG_RTW_WIFI_HAL), y) #EXTRA_CFLAGS += -DCONFIG_RTW_WIFI_HAL_DEBUG EXTRA_CFLAGS += -DCONFIG_RTW_WIFI_HAL diff --git a/dkms.conf b/dkms.conf index 3058e10..f0a0110 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="realtek-rtl88xxau" -PACKAGE_VERSION="5.6.4~20190522" +PACKAGE_VERSION="5.6.4~20190530" CLEAN="'make' clean" BUILT_MODULE_NAME[0]=88XXau PROCS_NUM=`nproc` diff --git a/include/autoconf.h b/include/autoconf.h index d88036b..b3c5ad3 100644 --- a/include/autoconf.h +++ b/include/autoconf.h @@ -22,7 +22,7 @@ */ #define AUTOCONF_INCLUDED #define RTL871X_MODULE_NAME "8812AU" -#define DRV_NAME "rtl8812au" +//#define DRV_NAME "rtl8812au" #define CONFIG_USB_HCI From c0cb946333e1a0a0bda7eef4f2026fcbd792b7d8 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Thu, 30 May 2019 22:28:31 +0200 Subject: [PATCH 2/3] Turned on MONITOR support & turned off POWERSAVING --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 99a9539..8bd9237 100755 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ CONFIG_SDIO_HCI = n CONFIG_GSPI_HCI = n ########################## Features ########################### CONFIG_MP_INCLUDED = y -CONFIG_POWER_SAVING = y +CONFIG_POWER_SAVING = n CONFIG_USB_AUTOSUSPEND = n CONFIG_HW_PWRP_DETECTION = n CONFIG_BT_COEXIST = n @@ -71,7 +71,7 @@ CONFIG_80211W = n CONFIG_REDUCE_TX_CPU_LOADING = n CONFIG_BR_EXT = y CONFIG_TDLS = n -CONFIG_WIFI_MONITOR = n +CONFIG_WIFI_MONITOR = y CONFIG_MCC_MODE = n CONFIG_APPEND_VENDOR_IE_ENABLE = n CONFIG_RTW_NAPI = y From e7cde4b39662c04eb90bc3242298bddc41027703 Mon Sep 17 00:00:00 2001 From: satmandu Date: Thu, 30 May 2019 16:37:22 -0400 Subject: [PATCH 3/3] Turn off Debug by default like in 5.3.4 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8bd9237..baadb92 100755 --- a/Makefile +++ b/Makefile @@ -84,7 +84,7 @@ CONFIG_RTW_WIFI_HAL = n CONFIG_ICMP_VOQ = n CONFIG_IP_R_MONITOR = n #arp VOQ and high rate ########################## Debug ########################### -CONFIG_RTW_DEBUG = y +CONFIG_RTW_DEBUG = n # default log level is _DRV_INFO_ = 4, # please refer to "How_to_set_driver_debug_log_level.doc" to set the available level. CONFIG_RTW_LOG_LEVEL = 4