From 0176d9ddaeccf5f50e126004c8aaaf81c47516af Mon Sep 17 00:00:00 2001 From: Christian B Date: Fri, 22 Jun 2018 22:50:47 +0200 Subject: [PATCH 1/4] Added more VID/PID --- os_dep/linux/usb_intf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/os_dep/linux/usb_intf.c b/os_dep/linux/usb_intf.c index bc2a95e..d6c2297 100644 --- a/os_dep/linux/usb_intf.c +++ b/os_dep/linux/usb_intf.c @@ -184,11 +184,12 @@ static struct usb_device_id rtw_usb_id_tbl[] = { {USB_DEVICE(0x2001, 0x3316), .driver_info = RTL8812}, /* D-Link - Cameo */ {USB_DEVICE(0x2019, 0xAB30), .driver_info = RTL8812}, /* Planex - Abocom */ {USB_DEVICE(0x20F4, 0x805B), .driver_info = RTL8812}, /* TRENDnet - Cameo */ - {USB_DEVICE(0x2357, 0x0101), .driver_info = RTL8812}, /* TP-Link - Archer T4U */ - {USB_DEVICE(0x2357, 0x0103), .driver_info = RTL8812}, /* TP-Link - Archer T4UH */ + {USB_DEVICE(0x2357, 0x0101), .driver_info = RTL8812}, /* TP-Link - Archer T4U AC1200 */ + {USB_DEVICE(0x2357, 0x0103), .driver_info = RTL8812}, /* TP-Link - T4UH */ {USB_DEVICE(0x2357, 0x010D), .driver_info = RTL8812}, /* TP-Link - Archer T4U AC1300 */ {USB_DEVICE(0x2357, 0x010E), .driver_info = RTL8812}, /* TP-Link - Archer T4UH AC1300 */ {USB_DEVICE(0x2357, 0x010F), .driver_info = RTL8812}, /* TP-Link - T4UHP */ + {USB_DEVICE(0x2357, 0x0122), .driver_info = RTL8812}, /* TP-Link - T4UHP (other) */ {USB_DEVICE(0x2604, 0x0012), .driver_info = RTL8812}, /* Tenda - U12 */ {USB_DEVICE(0x7392, 0xA812), .driver_info = RTL8812}, /* Edimax - EW-7811UTC */ {USB_DEVICE(0x7392, 0xA822), .driver_info = RTL8812}, /* Edimax - Edimax */ From 1b89d1d755eca1c32962884bf8b45948763a726f Mon Sep 17 00:00:00 2001 From: kimocoder Date: Fri, 22 Jun 2018 23:06:03 +0200 Subject: [PATCH 2/4] Added switch to turn ON/OFF regdomain settings --- Makefile | 9 +++++++++ kimocoder_Changelog.txt | 6 ++++++ os_dep/linux/wifi_regd.c | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2e8288b..f4e29a1 100755 --- a/Makefile +++ b/Makefile @@ -69,6 +69,11 @@ CONFIG_REDUCE_TX_CPU_LOADING = n CONFIG_BR_EXT = y CONFIG_TDLS = n 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_APPEND_VENDOR_IE_ENABLE = n CONFIG_RTW_NAPI = y @@ -159,6 +164,10 @@ CONFIG_DRVEXT_MODULE = n export TopDIR ?= $(shell pwd) ########### COMMON ################################# +ifeq ($(CONFIG_DISABLE_REGD_C), y) +EXTRA_CFLAGS += -DCONFIG_DISABLE_REGD_C +endif + ifeq ($(CONFIG_GSPI_HCI), y) HCI_NAME = gspi endif diff --git a/kimocoder_Changelog.txt b/kimocoder_Changelog.txt index fdf1021..1dfd24e 100644 --- a/kimocoder_Changelog.txt +++ b/kimocoder_Changelog.txt @@ -29,7 +29,13 @@ - Enabled monitor mode - 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 + - 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. + - 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 - Cleaned up some files & execution permissions. diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c index 1edbcae..73025cc 100644 --- a/os_dep/linux/wifi_regd.c +++ b/os_dep/linux/wifi_regd.c @@ -529,6 +529,7 @@ static struct country_code_to_enum_rd *_rtw_regd_find_country(u16 countrycode) int rtw_regd_init(_adapter *padapter) { +#ifndef CONFIG_DISABLE_REGD_C struct wiphy *wiphy = padapter->rtw_wdev->wiphy; #if 0 @@ -547,7 +548,7 @@ int rtw_regd_init(_adapter *padapter) #endif _rtw_regd_init_wiphy(NULL, wiphy); - +#endif return 0; } #endif /* CONFIG_IOCTL_CFG80211 */ From 22ae5a102c295e57c57b9698658138d0a57fb119 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sat, 23 Jun 2018 14:49:27 +0200 Subject: [PATCH 3/4] Added more VID/PID + moved 1 to correct place --- os_dep/linux/usb_intf.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/os_dep/linux/usb_intf.c b/os_dep/linux/usb_intf.c index d6c2297..74441c4 100644 --- a/os_dep/linux/usb_intf.c +++ b/os_dep/linux/usb_intf.c @@ -193,7 +193,6 @@ static struct usb_device_id rtw_usb_id_tbl[] = { {USB_DEVICE(0x2604, 0x0012), .driver_info = RTL8812}, /* Tenda - U12 */ {USB_DEVICE(0x7392, 0xA812), .driver_info = RTL8812}, /* Edimax - EW-7811UTC */ {USB_DEVICE(0x7392, 0xA822), .driver_info = RTL8812}, /* Edimax - Edimax */ - {USB_DEVICE(0x0BDA, 0xA811), .driver_info = RTL8812}, /* Unknown - For testing */ #endif #ifdef CONFIG_RTL8821A @@ -201,17 +200,26 @@ static struct usb_device_id rtw_usb_id_tbl[] = { {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x0811), .driver_info = RTL8821}, /* Default ID */ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x0821), .driver_info = RTL8821}, /* Default ID */ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8822), .driver_info = RTL8821}, /* Default ID */ - {USB_DEVICE(USB_VENDER_ID_REALTEK, 0xA811) , .driver_info = RTL8821},/* Default ID */ + {USB_DEVICE(USB_VENDER_ID_REALTEK, 0xA811), .driver_info = RTL8821},/* Default ID */ {USB_DEVICE_AND_INTERFACE_INFO(USB_VENDER_ID_REALTEK, 0x0820, 0xff, 0xff, 0xff), .driver_info = RTL8821}, /* 8821AU */ {USB_DEVICE_AND_INTERFACE_INFO(USB_VENDER_ID_REALTEK, 0x0823, 0xff, 0xff, 0xff), .driver_info = RTL8821}, /* 8821AU */ /*=== Customer ID ===*/ {USB_DEVICE(0x7392, 0xA811), .driver_info = RTL8821}, /* Edimax - Edimax */ + {USB_DEVICE(0x7392, 0xA812), .driver_info = RTL8821}, /* Edimax - EW-7811UTC */ + {USB_DEVICE(0x7392, 0xA813), .driver_info = RTL8821}, /* Edimax - EW-7811UAC */ + {USB_DEVICE(0x0BDA, 0xA811), .driver_info = RTL8821}, /* OUTLINK - Edimax */ {USB_DEVICE(0x04BB, 0x0953), .driver_info = RTL8821}, /* I-O DATA - Edimax */ {USB_DEVICE(0x2001, 0x3314), .driver_info = RTL8821}, /* D-Link - Cameo */ {USB_DEVICE(0x2001, 0x3318), .driver_info = RTL8821}, /* D-Link - Cameo */ {USB_DEVICE(0x0E66, 0x0023), .driver_info = RTL8821}, /* HAWKING - Edimax */ - {USB_DEVICE(0x056E, 0x400E) , .driver_info = RTL8821}, /* ELECOM - ELECOM */ - {USB_DEVICE(0x056E, 0x400F) , .driver_info = RTL8821}, /* ELECOM - ELECOM */ + {USB_DEVICE(0x056E, 0x400E), .driver_info = RTL8821}, /* ELECOM - ELECOM */ + {USB_DEVICE(0x056E, 0x400F), .driver_info = RTL8821}, /* ELECOM - ELECOM */ + {USB_DEVICE(0x0846, 0x9052), .driver_info = RTL8821}, /* Netgear - A6100 */ + {USB_DEVICE(0x2019, 0xAB32), .driver_info = RTL8821}, /* Planex - GW-450S */ + {USB_DEVICE(0x0411, 0x0242), .driver_info = RTL8821}, /* BUFFALO - Edimax */ + {USB_DEVICE(0x0411, 0x025D), .driver_info = RTL8821}, /* BUFFALO - WI-U3-866D */ + {USB_DEVICE(0x0411, 0x029B), .driver_info = RTL8821}, /* BUFFALO - WI-U2-433DHP */ + {USB_DEVICE(0x0BDA, 0xA811), .driver_info = RTL8821}, /* Comfast - CF-915AC, CF-916AC */ #endif #ifdef CONFIG_RTL8192E From f9bd4b5b606962b7f4e0ad7ae4974c44280176f8 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sat, 23 Jun 2018 14:50:28 +0200 Subject: [PATCH 4/4] Moved changelogs to docs/ --- clean | 5 ----- Realtek_Changelog.txt => docs/Realtek_Changelog.txt | 0 kimocoder_Changelog.txt => docs/kimocoder_Changelog.txt | 0 3 files changed, 5 deletions(-) delete mode 100644 clean rename Realtek_Changelog.txt => docs/Realtek_Changelog.txt (100%) rename kimocoder_Changelog.txt => docs/kimocoder_Changelog.txt (100%) diff --git a/clean b/clean deleted file mode 100644 index 8766421..0000000 --- a/clean +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -rmmod 8192cu -rmmod 8192ce -rmmod 8192du -rmmod 8192de diff --git a/Realtek_Changelog.txt b/docs/Realtek_Changelog.txt similarity index 100% rename from Realtek_Changelog.txt rename to docs/Realtek_Changelog.txt diff --git a/kimocoder_Changelog.txt b/docs/kimocoder_Changelog.txt similarity index 100% rename from kimocoder_Changelog.txt rename to docs/kimocoder_Changelog.txt