From 05b29d41142deb720084fc353e6c014ff06cbe29 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Tue, 3 Jul 2018 10:20:59 +0200 Subject: [PATCH] unlock all channels in REALTEK_DEFINE (default) channel plan --- Makefile | 3 +++ core/rtw_mlme_ext.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 89eba89..5a5940c 100755 --- a/Makefile +++ b/Makefile @@ -194,6 +194,9 @@ ifeq ($(CONFIG_PCI_HCI), y) HCI_NAME = pci endif +ifeq ($(CONFIG_USB2_EXTERNAL_POWER), y) +EXTRA_CFLAGS += -DCONFIG_USE_EXTERNAL_POWER +endif _OS_INTFS_FILES := os_dep/osdep_service.o \ os_dep/linux/os_intfs.o \ diff --git a/core/rtw_mlme_ext.c b/core/rtw_mlme_ext.c index 6d918ed..41c4395 100644 --- a/core/rtw_mlme_ext.c +++ b/core/rtw_mlme_ext.c @@ -345,7 +345,9 @@ static RT_CHANNEL_PLAN_MAP RTW_ChannelPlanMap[] = { }; static RT_CHANNEL_PLAN_MAP RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = - CHPLAN_ENT(RTW_RD_2G_WORLD, RTW_RD_5G_FCC1, TXPWR_LMT_FCC); /* 0x7F, Realtek Define */ + CHPLAN_ENT(RTW_RD_2G_GLOBAL, RTW_RD_5G_FCC11, TXPWR_LMT_FCC); /* 0x7F, Realtek Define -- *tweaked* */ + /* Default is RTW_RD_2G_WORLD / RTW_RD_5G_FCC1, which has some channels disabled + CHPLAN_ENT(RTW_RD_2G_WORLD, RTW_RD_5G_FCC1, TXPWR_LMT_FCC); */ bool rtw_chplan_is_empty(u8 id) {