Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 1 | /* |
| 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 Dhamdhere | 3385d75 | 2016-05-25 20:36:47 -0700 | [diff] [blame] | 30 | struct hdd_context_s; |
Deepak Dhamdhere | 13230d3 | 2016-05-26 00:46:53 -0700 | [diff] [blame^] | 31 | struct wma_tgt_cfg; |
| 32 | struct hdd_config; |
Deepak Dhamdhere | 3385d75 | 2016-05-25 20:36:47 -0700 | [diff] [blame] | 33 | |
| 34 | #ifdef WLAN_FEATURE_NAN_DATAPATH |
| 35 | void hdd_ndp_print_ini_config(struct hdd_context_s *hdd_ctx); |
Deepak Dhamdhere | 13230d3 | 2016-05-26 00:46:53 -0700 | [diff] [blame^] | 36 | void hdd_nan_datapath_enable(struct hdd_config *cfg_ini, bool enable); |
| 37 | void hdd_nan_datapath_target_config(struct hdd_context_s *hdd_ctx, |
| 38 | struct wma_tgt_cfg *cfg); |
| 39 | |
Deepak Dhamdhere | 3385d75 | 2016-05-25 20:36:47 -0700 | [diff] [blame] | 40 | #else |
| 41 | static inline void hdd_ndp_print_ini_config(struct hdd_context_s *hdd_ctx) |
| 42 | { |
| 43 | } |
Deepak Dhamdhere | 13230d3 | 2016-05-26 00:46:53 -0700 | [diff] [blame^] | 44 | static inline void hdd_nan_datapath_enable(struct hdd_config *cfg_ini, |
| 45 | bool enable) |
| 46 | { |
| 47 | } |
| 48 | static inline void hdd_nan_datapath_target_config(struct hdd_context_s *hdd_ctx, |
| 49 | struct wma_tgt_cfg *cfg) |
| 50 | { |
| 51 | } |
| 52 | |
Deepak Dhamdhere | 3385d75 | 2016-05-25 20:36:47 -0700 | [diff] [blame] | 53 | #endif /* WLAN_FEATURE_NAN_DATAPATH */ |
| 54 | |
Ravi Joshi | a063dd9 | 2016-05-25 16:43:13 -0700 | [diff] [blame] | 55 | #endif /* __WLAN_HDD_NAN_DATAPATH_H */ |