Commit 47ff7679 authored by Gary Bisson's avatar Gary Bisson
Browse files

Kconfig/Kbuild: fix in-tree kernel build

The Kconfig is actually taken from Android source:
https://android.googlesource.com/kernel/msm.git/+/android-msm-bullhead-3.10-nougat/drivers/staging/qcacld-2.0/Kconfig



When built externally, the Makefile defines the CONFIG_QCA_WIFI_xxx
values. Those configurations also need to be set in the Kbuild since
our kernel isn't a QCom one.

This was tested by copying the code to drivers/staging and enabling
the following options to the kernel config:
CONFIG_QCA_CLD_WLAN=m
CONFIG_CLD_HL_SDIO_CORE=y
CONFIG_PRIMA_WLAN_LFR=y
CONFIG_PRIMA_WLAN_OKC=y
CONFIG_WLAN_FEATURE_11W=y
CONFIG_QCOM_TDLS=y
CONFIG_QCOM_VOWIFI_11R=y
CONFIG_ENABLE_LINUX_REG=y
CONFIG_FEATURE_NAN=y
CONFIG_WLAN_SYNC_TSF=y
CONFIG_WLAN_UDP_RESPONSE_OFFLOAD=y
CONFIG_WLAN_WOW_PULSE=y
Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
parent 9987011f
......@@ -25,6 +25,8 @@ ifeq ($(KERNEL_BUILD),1)
MODNAME := wlan
WLAN_ROOT := drivers/staging/qcacld-2.0
WLAN_OPEN_SOURCE := 1
CONFIG_QCA_WIFI_2_0 := 1
CONFIG_QCA_WIFI_ISOC := 0
endif
ifeq ($(KERNEL_BUILD), 0)
......
comment "Qualcomm Atheros Prima WLAN module"
comment "Qualcomm Atheros CLD WLAN module"
config PRIMA_WLAN
tristate "Qualcomm Atheros Prima WLAN module"
config QCA_CLD_WLAN
tristate "Qualcomm Atheros CLD WLAN module"
default n
help
Add support for the Qualcomm Atheros Prima WLAN module
Add support for the Qualcomm Atheros CLD WLAN module
config PRONTO_WLAN
if QCA_CLD_WLAN != n
tristate "Qualcomm Atheros Pronto WLAN module"
config CLD_HL_SDIO_CORE
bool "Enable the SDIO support"
default n
help
Add support for the Qualcomm Atheros Pronto WLAN module
# depends on WLAN
# depends on CFG80211
# depends on WCNSS_CORE
if PRIMA_WLAN != n || PRONTO_WLAN != n
config PRIMA_WLAN_BTAMP
bool "Enable the Prima WLAN BT-AMP feature"
......@@ -45,19 +36,23 @@ config WLAN_FEATURE_LPSS
bool "Enable the WLAN LPSS feature"
default n
config QCOM_TDLS
bool "Enable TDLS feature"
default n
config QCOM_VOWIFI_11R
bool "Enable Fast Transition (11r) feature"
default n
config CONFIG_ENABLE_LINUX_REG
config ENABLE_LINUX_REG
bool "Enable linux regulatory feature"
default n
config CONFIG_FEATURE_NAN
config FEATURE_NAN
bool "Enable NAN feature"
default n
config CONFIG_WLAN_SYNC_TSF
config WLAN_SYNC_TSF
bool "Enable QCOM sync multi devices tsf feature"
default n
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment