blob: 112cc0a18d12f58e30df51a314f96fb0cfa7d63c [file] [log] [blame]
Ravi Joshia063dd92016-05-25 16:43:13 -07001/*
2 * Copyright (c) 2016 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for
7 * any purpose with or without fee is hereby granted, provided that the
8 * above copyright notice and this permission notice appear in all
9 * copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
12 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
13 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
14 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
15 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
16 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
17 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18 * PERFORMANCE OF THIS SOFTWARE.
19 */
20
21/**
22 * DOC: wlan_hdd_nan_datapath.h
23 *
24 * WLAN Host Device Driver nan datapath API specification
25 */
26
27#ifndef __WLAN_HDD_NAN_DATAPATH_H
28#define __WLAN_HDD_NAN_DATAPATH_H
29
Deepak Dhamdhere3385d752016-05-25 20:36:47 -070030struct hdd_context_s;
Deepak Dhamdhere13230d32016-05-26 00:46:53 -070031struct wma_tgt_cfg;
32struct hdd_config;
Deepak Dhamdhere3385d752016-05-25 20:36:47 -070033
34#ifdef WLAN_FEATURE_NAN_DATAPATH
35void hdd_ndp_print_ini_config(struct hdd_context_s *hdd_ctx);
Deepak Dhamdhere13230d32016-05-26 00:46:53 -070036void hdd_nan_datapath_enable(struct hdd_config *cfg_ini, bool enable);
37void hdd_nan_datapath_target_config(struct hdd_context_s *hdd_ctx,
38 struct wma_tgt_cfg *cfg);
39
Deepak Dhamdhere3385d752016-05-25 20:36:47 -070040#else
41static inline void hdd_ndp_print_ini_config(struct hdd_context_s *hdd_ctx)
42{
43}
Deepak Dhamdhere13230d32016-05-26 00:46:53 -070044static inline void hdd_nan_datapath_enable(struct hdd_config *cfg_ini,
45 bool enable)
46{
47}
48static inline void hdd_nan_datapath_target_config(struct hdd_context_s *hdd_ctx,
49 struct wma_tgt_cfg *cfg)
50{
51}
52
Deepak Dhamdhere3385d752016-05-25 20:36:47 -070053#endif /* WLAN_FEATURE_NAN_DATAPATH */
54
Ravi Joshia063dd92016-05-25 16:43:13 -070055#endif /* __WLAN_HDD_NAN_DATAPATH_H */