From 5cb63c747f0e5d1e9e96f5d4e3f845756ccd1d30 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Tue, 19 Jan 2021 20:01:06 +0800 Subject: [PATCH] rtl8821cu: fix the link rate on some devices From user feedback, we should change this option to avoid slow link speed on some wireless network cards. Ref: brektrou/rtl8821CU/issues #5 --- .../patches/050-change-value-of-vht-enable.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/ctcgfw/rtl8821cu/patches/050-change-value-of-vht-enable.patch diff --git a/package/ctcgfw/rtl8821cu/patches/050-change-value-of-vht-enable.patch b/package/ctcgfw/rtl8821cu/patches/050-change-value-of-vht-enable.patch new file mode 100644 index 0000000000..34dcd8e4de --- /dev/null +++ b/package/ctcgfw/rtl8821cu/patches/050-change-value-of-vht-enable.patch @@ -0,0 +1,11 @@ +--- a/os_dep/linux/os_intfs.c ++++ b/os_dep/linux/os_intfs.c +@@ -238,7 +238,7 @@ + #endif /* CONFIG_80211N_HT */ + + #ifdef CONFIG_80211AC_VHT +-int rtw_vht_enable = 1; /* 0:disable, 1:enable, 2:force auto enable */ ++int rtw_vht_enable = 2; /* 0:disable, 1:enable, 2:force auto enable */ + module_param(rtw_vht_enable, int, 0644); + + int rtw_ampdu_factor = 7;