Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 316f45c2 authored by Sarada Prasanna Garnayak's avatar Sarada Prasanna Garnayak Committed by Gerrit - the friendly Code Review server
Browse files

cnss: Add separate KCONFIG flag for cnss SDIO/PCIe platform driver



For devices with no SDIO connected, it is useless to compile/load
the cnss SDIO platform driver, same for the cnss PCIe platform driver
compile/load for the device with non PCIe interfaced wlan module.

To resolve the above issue the CNSS added separate KCONFIG  flag
for both cnss SDIO/PCIe platform driver compilation/load. Config
flag CONFIG_CNSS_SDIO to enable cnss SDIO support and CONFIG_CNSS_PCI
to enable cnss PCIe support.

This also helps to reduce the attack surface of kernel.

CRs-Fixed: 1104057
Change-Id: Ife8089ddeb1dc88f4db58f1a2ca1ecbfed3d28ce
Signed-off-by: default avatarSarada Prasanna Garnayak <sgarna@codeaurora.org>
parent 610be619
Loading
Loading
Loading
Loading
+22 −2
Original line number Diff line number Diff line
@@ -6,8 +6,28 @@ config CNSS
	---help---
	  This module adds support for the CNSS connectivity subsystem used
	  for wifi devices based on the QCA AR6320 chipset.

config CNSS_SDIO
	bool "Enable/disable cnss sdio platform driver for wifi module"
	depends on CNSS
	depends on MMC
	---help---
	 This module adds support for the CNSS wlan module interfaced
	 with SDIO bus.
	 This driver also adds support to integrate WLAN module to subsystem
	 restart framework, power on WLAN chip and registered the WLAN module
	 as a SDIO client device.

config CNSS_PCI
	bool "Enable/disable cnss pci platform driver for wifi module"
	depends on CNSS
	depends on PCI
	---help---
	 This module adds support for the CNSS wlan module interfaced
	 with PCIe bus.
	 This driver also adds support to integrate WLAN module to subsystem
	  restart framework.
	 restart framework, power on WLAN chip and registered the WLAN module
	 as a PCIe client device.

config CNSS_MAC_BUG
	bool "Enable/disable 0-4K memory initialization for QCA6174"