diff options
| author | Yue Ma <yuem@qca.qualcomm.com> | 2013-12-04 22:16:55 -0800 |
|---|---|---|
| committer | Prakash Dhavali <pdhavali@qca.qualcomm.com> | 2013-12-08 02:47:06 -0800 |
| commit | f624cdfbe7a099a94c8d9978b90ac8a6318a7680 (patch) | |
| tree | 9f2f16236f219f9aed44b89d8137f31bb5219830 | |
| parent | 5879fa6f15b8ec6263cd14f1ebf2527658e4a95b (diff) | |
qcacld: Add CONFIG_CNSS flag to protect platform driver related code
CNSS platform driver related code should be protected by CONFIG_CNSS
flag to avoid compilation for other systems. If the system doesn't
have CNSS platform driver, the flag won't be enabled.
Change-Id: I5a18d17d6394a02cbfa7563519b0e55fda70442e
| -rw-r--r-- | CORE/SERVICES/BMI/ol_fw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CORE/SERVICES/BMI/ol_fw.c b/CORE/SERVICES/BMI/ol_fw.c index 7b180512b420..31e9b0a77a55 100644 --- a/CORE/SERVICES/BMI/ol_fw.c +++ b/CORE/SERVICES/BMI/ol_fw.c @@ -40,7 +40,7 @@ #include "fw_one_bin.h" #include "bin_sig.h" -#if defined(QCA_WIFI_2_0) && !defined(QCA_WIFI_ISOC) +#if defined(QCA_WIFI_2_0) && !defined(QCA_WIFI_ISOC) && defined(CONFIG_CNSS) #include <net/cnss.h> #endif @@ -460,7 +460,7 @@ u_int32_t host_interest_item_address(u_int32_t target_type, u_int32_t item_offse } } -#if defined(QCA_WIFI_2_0) && !defined(QCA_WIFI_ISOC) +#if defined(QCA_WIFI_2_0) && !defined(QCA_WIFI_ISOC) && defined(CONFIG_CNSS) static struct ol_softc *ramdump_scn; static void ramdump_work_handler(struct work_struct *ramdump) @@ -568,7 +568,7 @@ void ol_target_failure(void *instance, A_STATUS status) return; } -#if defined(QCA_WIFI_2_0) && !defined(QCA_WIFI_ISOC) +#if defined(QCA_WIFI_2_0) && !defined(QCA_WIFI_ISOC) && defined(CONFIG_CNSS) /* Collect the RAM dump through a workqueue */ ramdump_scn = scn; schedule_work(&ramdump_work); |
