wlan_platform: Add CONFIG_CNSS_OUT_OF_TREE flag

Use CONFIG_CNSS_OUT_OF_TREE to control if CNSS family drivers are
built from in-kernel-tree source or out-of-kernel-tree source since
the exposed header files will be in different paths. This is also
for backward compatibility.

Change-Id: I24111fdb76607bf911c29e415d42d25609f9b26c
This commit is contained in:
Yue Ma
2021-10-06 21:01:24 -07:00
parent 5b29459b17
commit 7e3754303f
8 changed files with 36 additions and 1 deletions

View File

@@ -9,7 +9,11 @@
#include <linux/etherdevice.h>
#include <linux/debugfs.h>
#include <linux/of.h>
#ifdef CONFIG_CNSS_OUT_OF_TREE
#include "cnss_utils.h"
#else
#include <net/cnss_utils.h>
#endif
#define CNSS_MAX_CH_NUM 157
struct cnss_unsafe_channel_list {