From 1b8650bf7e30e5055a3a8da877d2dfbe17e27ad6 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Thu, 30 May 2019 21:24:46 +0200 Subject: [PATCH] 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