epping_main.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #ifndef EPPING_MAIN_H
  19. #define EPPING_MAIN_H
  20. /**===========================================================================
  21. \file epping_main.h
  22. \brief Linux epping head file
  23. ==========================================================================*/
  24. /*---------------------------------------------------------------------------
  25. Include files
  26. -------------------------------------------------------------------------*/
  27. #include <qdf_lock.h>
  28. #include <qdf_types.h>
  29. /* epping_main signatures */
  30. #ifdef WLAN_FEATURE_EPPING
  31. int epping_open(void);
  32. void epping_close(void);
  33. void epping_disable(void);
  34. int epping_enable(struct device *parent_dev, bool rtnl_held);
  35. void epping_enable_adapter(void);
  36. #else
  37. static inline int epping_open(void)
  38. {
  39. return QDF_STATUS_E_INVAL;
  40. }
  41. static inline int epping_enable(struct device *parent_dev, bool rtnl_held)
  42. {
  43. return QDF_STATUS_E_INVAL;
  44. }
  45. static inline void epping_close(void) {}
  46. static inline void epping_disable(void) {}
  47. static inline void epping_enable_adapter(void) {}
  48. #endif
  49. #endif /* end #ifndef EPPING_MAIN_H */