1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-09 23:57:00 +00:00

Added switch to turn ON/OFF regdomain settings

This commit is contained in:
kimocoder 2018-06-22 23:06:03 +02:00
parent 0176d9ddae
commit 1b89d1d755
3 changed files with 17 additions and 1 deletions

View File

@ -69,6 +69,11 @@ CONFIG_REDUCE_TX_CPU_LOADING = n
CONFIG_BR_EXT = y CONFIG_BR_EXT = y
CONFIG_TDLS = n CONFIG_TDLS = n
CONFIG_WIFI_MONITOR = y CONFIG_WIFI_MONITOR = y
# If you are setting up AP (e.g. by hostapd) in 802.11ac mode, you may have to choose 'y' below.
# Otherwise some channels may be flagged 'NO-IR' (i.e. Passive scanning) by the driver.
# Please check your country's regulatory domain first,
# to see whether active scanning is permitted by law/regulations on the desired channels.
CONFIG_DISABLE_REGD_C=y
CONFIG_MCC_MODE = n CONFIG_MCC_MODE = n
CONFIG_APPEND_VENDOR_IE_ENABLE = n CONFIG_APPEND_VENDOR_IE_ENABLE = n
CONFIG_RTW_NAPI = y CONFIG_RTW_NAPI = y
@ -159,6 +164,10 @@ CONFIG_DRVEXT_MODULE = n
export TopDIR ?= $(shell pwd) export TopDIR ?= $(shell pwd)
########### COMMON ################################# ########### COMMON #################################
ifeq ($(CONFIG_DISABLE_REGD_C), y)
EXTRA_CFLAGS += -DCONFIG_DISABLE_REGD_C
endif
ifeq ($(CONFIG_GSPI_HCI), y) ifeq ($(CONFIG_GSPI_HCI), y)
HCI_NAME = gspi HCI_NAME = gspi
endif endif

View File

@ -29,7 +29,13 @@
- Enabled monitor mode - Enabled monitor mode
- Parse radiotap headers for proper frame injection - Parse radiotap headers for proper frame injection
- RadioTap iterator from kernel 4.9 was added due to VHT field bug in kernels before 4.6 - RadioTap iterator from kernel 4.9 was added due to VHT field bug in kernels before 4.6
- Disabled DFS
- Enable DBG_TX_POWER_IDX and DBG_PG_TXPWR_READ, added extra logging for these
- Disabled AP mode channel switching due to DFS checks
- Tweaked & optimized Makefile to compile with all cores available. Decreasing the compile time. - Tweaked & optimized Makefile to compile with all cores available. Decreasing the compile time.
- Added switch to turn ON/OFF regdomain settings (Makefile)
- Added ODROID-C2 support
- Added 2 more VID/PID's
- Fixed dkms.conf and added dkms-install.sh and dkms-remove.sh - Fixed dkms.conf and added dkms-install.sh and dkms-remove.sh
- Cleaned up some files & execution permissions. - Cleaned up some files & execution permissions.

View File

@ -529,6 +529,7 @@ static struct country_code_to_enum_rd *_rtw_regd_find_country(u16 countrycode)
int rtw_regd_init(_adapter *padapter) int rtw_regd_init(_adapter *padapter)
{ {
#ifndef CONFIG_DISABLE_REGD_C
struct wiphy *wiphy = padapter->rtw_wdev->wiphy; struct wiphy *wiphy = padapter->rtw_wdev->wiphy;
#if 0 #if 0
@ -547,7 +548,7 @@ int rtw_regd_init(_adapter *padapter)
#endif #endif
_rtw_regd_init_wiphy(NULL, wiphy); _rtw_regd_init_wiphy(NULL, wiphy);
#endif
return 0; return 0;
} }
#endif /* CONFIG_IOCTL_CFG80211 */ #endif /* CONFIG_IOCTL_CFG80211 */