drivers/wifi: Add files skeleton for adding WiFi drivers
This will help not to collide within drivers implementations and/or
avoid dependency from one driver to another one.
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt
index 4cfb68b..3254d6c 100644
--- a/drivers/CMakeLists.txt
+++ b/drivers/CMakeLists.txt
@@ -24,6 +24,7 @@
add_subdirectory_if_kconfig(spi)
add_subdirectory_if_kconfig(usb)
add_subdirectory_if_kconfig(watchdog)
+add_subdirectory_if_kconfig(wifi)
add_subdirectory_ifdef(CONFIG_AIO_COMPARATOR aio)
add_subdirectory_ifdef(CONFIG_BT bluetooth)
diff --git a/drivers/Kconfig b/drivers/Kconfig
index 0cd0c65..a77cce4 100644
--- a/drivers/Kconfig
+++ b/drivers/Kconfig
@@ -73,4 +73,6 @@
source "drivers/led_strip/Kconfig"
+source "drivers/wifi/Kconfig"
+
endmenu
diff --git a/drivers/wifi/Kconfig b/drivers/wifi/Kconfig
new file mode 100644
index 0000000..91a81ce
--- /dev/null
+++ b/drivers/wifi/Kconfig
@@ -0,0 +1,39 @@
+# Kconfig - WiFi drivers configuration options
+
+#
+# Copyright (c) 2017 Intel Corporation
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+menuconfig WIFI
+ bool "add support for WiFi Drivers"
+ default n
+
+if WIFI
+
+config SYS_LOG_WIFI_LEVEL
+ int "WiFi driver log level"
+ depends on SYS_LOG
+ default 0
+ range 0 4
+ help
+ Sets log level for WiFi Device Drivers.
+ Levels are:
+ 0 OFF, do not write
+ 1 ERROR, only write SYS_LOG_ERR
+ 2 WARNING, write SYS_LOG_WRN in addition to previous level
+ 3 INFO, write SYS_LOG_INF in addition to previous levels
+ 4 DEBUG, write SYS_LOG_DBG in addition to previous levels
+
+config WIFI_INIT_PRIORITY
+ int "WiFi driver init priority"
+ depends on WIFI
+ default 80
+ help
+ WiFi device driver initialization priority.
+ Do not mess with it unless you know what you are doing.
+ Note that the priority needs to be lower than the net stack
+ so that it can start before the networking sub-system.
+
+endif # WIFI