From b5c03ffea69c2b4cdc6c6631f7b3f3f9e1132b4a Mon Sep 17 00:00:00 2001 From: kimocoder Date: Fri, 31 Jan 2020 17:01:35 +0100 Subject: [PATCH] Enable channels 36-48 for AP usage --- dkms.conf | 2 +- os_dep/linux/wifi_regd.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dkms.conf b/dkms.conf index 9413b68..9812d9a 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="realtek-rtl8188eus" -PACKAGE_VERSION="5.7.6.1~20200125" +PACKAGE_VERSION="5.7.6.1~20200131" CLEAN="'make' clean" BUILT_MODULE_NAME[0]=8188eu PROCS_NUM=`nproc` diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c index 1ed088d..9e0e4fb 100644 --- a/os_dep/linux/wifi_regd.c +++ b/os_dep/linux/wifi_regd.c @@ -265,7 +265,7 @@ void rtw_regd_apply_flags(struct wiphy *wiphy) u16 channel; u32 freq; - /* all channels disable */ + /* all channels enable */ for (i = 0; i < NUM_NL80211_BANDS; i++) { sband = wiphy->bands[i]; @@ -274,7 +274,9 @@ void rtw_regd_apply_flags(struct wiphy *wiphy) ch = &sband->channels[j]; if (ch) - ch->flags = IEEE80211_CHAN_DISABLED; + ch->flags &= ~(IEEE80211_CHAN_DISABLED|IEEE80211_CHAN_NO_HT40PLUS| + IEEE80211_CHAN_NO_HT40MINUS|IEEE80211_CHAN_NO_80MHZ| + IEEE80211_CHAN_NO_160MHZ|IEEE80211_CHAN_NO_IR); } } }