1 /*
2 * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all
7 * copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18
19 #ifndef EPPING_MAIN_H
20 #define EPPING_MAIN_H
21 /**===========================================================================
22
23 \file epping_main.h
24
25 \brief Linux epping head file
26
27 ==========================================================================*/
28
29 /*---------------------------------------------------------------------------
30 Include files
31 -------------------------------------------------------------------------*/
32 #include <qdf_lock.h>
33 #include <qdf_types.h>
34
35 /* epping_main signatures */
36 #ifdef WLAN_FEATURE_EPPING
37 int epping_open(void);
38 void epping_close(void);
39 void epping_disable(void);
40 int epping_enable(struct device *parent_dev, bool rtnl_held);
41 void epping_enable_adapter(void);
42 #else
epping_open(void)43 static inline int epping_open(void)
44 {
45 return QDF_STATUS_E_INVAL;
46 }
47
epping_enable(struct device * parent_dev,bool rtnl_held)48 static inline int epping_enable(struct device *parent_dev, bool rtnl_held)
49 {
50 return QDF_STATUS_E_INVAL;
51 }
52
epping_close(void)53 static inline void epping_close(void) {}
epping_disable(void)54 static inline void epping_disable(void) {}
epping_enable_adapter(void)55 static inline void epping_enable_adapter(void) {}
56 #endif
57 #endif /* end #ifndef EPPING_MAIN_H */
58