From 4d95fe8727075d39d5494f827c5094a3607b43c9 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Fri, 16 Aug 2019 23:27:14 +0200 Subject: [PATCH] Enable DFS for 5ghz support --- include/hal_ic_cfg.h | 4 +--- os_dep/linux/usb_intf.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/hal_ic_cfg.h b/include/hal_ic_cfg.h index cc3ab5c..2feadf1 100644 --- a/include/hal_ic_cfg.h +++ b/include/hal_ic_cfg.h @@ -44,9 +44,6 @@ #define RATE_ADAPTIVE_SUPPORT 0 #define POWER_TRAINING_ACTIVE 0 -#ifdef CONFIG_MULTIDRV -#endif - #ifdef CONFIG_RTL8188E #undef RTL8188E_SUPPORT #undef RATE_ADAPTIVE_SUPPORT @@ -60,6 +57,7 @@ #ifdef CONFIG_RTL8812A #undef RTL8812A_SUPPORT #define RTL8812A_SUPPORT 1 + #define CONFIG_DFS /* Enable 5G band 2&3 channel */ #ifndef CONFIG_FW_C2H_PKT #define CONFIG_FW_C2H_PKT #endif diff --git a/os_dep/linux/usb_intf.c b/os_dep/linux/usb_intf.c index ac7ef35..89b9ceb 100644 --- a/os_dep/linux/usb_intf.c +++ b/os_dep/linux/usb_intf.c @@ -1125,7 +1125,7 @@ static int rtw_resume(struct usb_interface *pusb_intf) #ifdef CONFIG_AUTOSUSPEND if (pwrpriv->bInternalAutoSuspend) ret = rtw_resume_process(padapter); - else + else #endif { if (pwrpriv->wowlan_mode || pwrpriv->wowlan_ap_mode) {