summaryrefslogtreecommitdiff
path: root/include/net/cnss.h
diff options
context:
space:
mode:
authorYuanyuan Liu <yuanliu@codeaurora.org>2016-02-01 16:47:48 -0800
committerJeevan Shriram <jshriram@codeaurora.org>2016-04-22 15:01:34 -0700
commite1ed71b374670fc4604ec8f83ef6cc0258416303 (patch)
treecbe1799b7dda26b15847e7f467be12fc11f23f71 /include/net/cnss.h
parenta5e4baeeeb3cb801d2237dec285ce79414c0c602 (diff)
cnss: Fix compilation error of missing CONFIG_CNSS_SECURE_FW
Add #ifdef CONFIG_CNSS_SECURE_FW for cnss_get_fw_ptr and cnss_get_sha_hash. Change-Id: I884b4ab3d552b12dd83f852be565a5dc4e69e21a CRs-Fixed: 971688 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Diffstat (limited to 'include/net/cnss.h')
-rw-r--r--include/net/cnss.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/cnss.h b/include/net/cnss.h
index e9d0ca85d7f2..07056c1cc522 100644
--- a/include/net/cnss.h
+++ b/include/net/cnss.h
@@ -123,9 +123,12 @@ extern int cnss_get_fw_files_for_target(struct cnss_fw_files *pfw_files,
u32 target_type, u32 target_version);
extern int cnss_request_bus_bandwidth(int bandwidth);
+
+#ifdef CONFIG_CNSS_SECURE_FW
extern int cnss_get_sha_hash(const u8 *data, u32 data_len,
u8 *hash_idx, u8 *out);
extern void *cnss_get_fw_ptr(void);
+#endif
extern int cnss_get_codeswap_struct(struct codeswap_codeseg_info *swap_seg);
extern int cnss_get_bmi_setup(void);