Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > 756cec81f2415651b9b72345f711e486 > files > 19

kernel-5.5.6-2.mga7.src.rpm

From 1ddc1d901ea5157b008c6262e4b2a03f0fadf228 Mon Sep 17 00:00:00 2001
From: Elie Morisse <syniurge@gmail.com>
Date: Wed, 24 Jul 2019 12:40:51 -0300
Subject: [PATCH] Enable CONFIG_DFS for RTL8821CE adapters, to support 5Ghz
 bands only allowed with DFS.

DFS (as client, not as AP) is supported by the Windows driver, and it seems to be implemented in this driver too, just disabled.

This fixes issue #34. Thanks to @tomaspinho for pointing me in the right direction.
---
 3rdparty/rtl8821ce/include/hal_ic_cfg.h |    1 +
 1 file changed, 1 insertion(+)

diff -Nurp ./3rdparty/rtl8821ce.orig/include/hal_ic_cfg.h ./3rdparty/rtl8821ce/include/hal_ic_cfg.h
--- ./3rdparty/rtl8821ce.orig/include/hal_ic_cfg.h	2019-10-16 00:25:48.841975185 +0300
+++ ./3rdparty/rtl8821ce/include/hal_ic_cfg.h	2019-10-17 14:11:17.965632910 +0300
@@ -234,6 +234,7 @@
 #ifdef CONFIG_RTL8821C
 	#undef RTL8821C_SUPPORT
 	#define RTL8821C_SUPPORT				1
+	#define CONFIG_DFS	/* Enable 5G band 2&3 channel */
 	#ifndef CONFIG_FW_C2H_PKT
 		#define CONFIG_FW_C2H_PKT
 	#endif