diff --git a/Makefile b/Makefile index 611dfd4..baadb92 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 @@ -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 @@ -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