From 0b626110f30cc1710c900376b3a99bb640a10b6d Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Tue, 1 Dec 2020 11:30:02 +0800 Subject: [PATCH] rtl8821cu: fix luci control Known issues: 1. Default does not start, need to be set manually. 2. Default works in legacy mode, so recommend to switch to n/ac mode. 3. Switch to n/ac mode and relay WiFi needs to restart to work normally. 4. It is not recommended to change the country code, which may cause the module to fail to find the 5GHz channel when scanning WiFi. --- package/ctcgfw/rtl8821cu/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/ctcgfw/rtl8821cu/Makefile b/package/ctcgfw/rtl8821cu/Makefile index f1286e32a3..850df5641d 100644 --- a/package/ctcgfw/rtl8821cu/Makefile +++ b/package/ctcgfw/rtl8821cu/Makefile @@ -47,6 +47,7 @@ NOSTDINC_FLAGS = \ -I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \ -I$(STAGING_DIR)/usr/include/mac80211 \ -I$(STAGING_DIR)/usr/include/mac80211/uapi \ + -include backport/autoconf.h \ -include backport/backport.h EXTRA_KCONFIG:=\ @@ -58,6 +59,7 @@ ifeq ($(ARCH),aarch64) endif EXTRA_CFLAGS:= \ + -DRTW_SINGLE_WIPHY \ -DRTW_USE_CFG80211_STA_EVENT \ -DCONFIG_RADIO_WORK \ -DCONFIG_IOCTL_CFG80211 \