From 0c3cfa41e4ea4617374959231b82ed7a1ef86bf7 Mon Sep 17 00:00:00 2001 From: Thijs Withaar Date: Sat, 20 Oct 2018 11:55:20 +0200 Subject: [PATCH 1/2] fully apply CONFIG_DISABLE_REGD_C Fix floating point in VHT_HW_TX for both x86 and rpi --- os_dep/linux/wifi_regd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c index e1751ce..189c5db 100644 --- a/os_dep/linux/wifi_regd.c +++ b/os_dep/linux/wifi_regd.c @@ -258,6 +258,7 @@ static void _rtw_reg_apply_active_scan_flags(struct wiphy *wiphy, */ static void _rtw_reg_apply_radar_flags(struct wiphy *wiphy) { +#ifndef CONFIG_DISABLE_REGD_C struct ieee80211_supported_band *sband; struct ieee80211_channel *ch; unsigned int i; @@ -304,6 +305,7 @@ static void _rtw_reg_apply_radar_flags(struct wiphy *wiphy) IEEE80211_CHAN_PASSIVE_SCAN; #endif } +#endif // CONFIG_DISABLE_REGD_C } static void _rtw_reg_apply_flags(struct wiphy *wiphy) From fa0626b7634d11bf9359a43ef2141a9f3cf16e87 Mon Sep 17 00:00:00 2001 From: Thijs Withaar Date: Thu, 6 Sep 2018 19:05:08 +0200 Subject: [PATCH 2/2] Merge changes from the Makefile of v5.2.20, to allow compilation on RPI --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4b0431d..f887cc3 100755 --- a/Makefile +++ b/Makefile @@ -167,6 +167,10 @@ ifeq ($(CONFIG_DISABLE_REGD_C), y) EXTRA_CFLAGS += -DCONFIG_DISABLE_REGD_C endif +ifeq ($(CONFIG_MP_VHT_HW_TX_MODE), y) +EXTRA_CFLAGS += -DCONFIG_MP_VHT_HW_TX_MODE +endif + ifeq ($(CONFIG_GSPI_HCI), y) HCI_NAME = gspi endif @@ -372,10 +376,6 @@ endif ########### HAL_RTL8814A ################################# ifeq ($(CONFIG_RTL8814A), y) -## ADD NEW VHT MP HW TX MODE ## -#EXTRA_CFLAGS += -DCONFIG_MP_VHT_HW_TX_MODE -#CONFIG_MP_VHT_HW_TX_MODE = y -########################################## RTL871X = rtl8814a ifeq ($(CONFIG_USB_HCI), y) MODULE_NAME = 8814au @@ -1394,6 +1394,7 @@ KSRC := /lib/modules/$(KVER)/build MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ INSTALL_PREFIX := endif + ifeq ($(CONFIG_PLATFORM_ARM_ODROIDC2), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT