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) {