qdf_net_if.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. * DOC: qdf_net_if
  20. * QCA driver framework (QDF) network interface management APIs
  21. */
  22. #if !defined(__QDF_NET_IF_H)
  23. #define __QDF_NET_IF_H
  24. /* Include Files */
  25. #include <qdf_types.h>
  26. #include <i_qdf_net_if.h>
  27. struct qdf_net_if;
  28. #ifdef ENHANCED_OS_ABSTRACTION
  29. /**
  30. * qdf_net_if_create_dummy_if() - create dummy interface
  31. * @nif: interface handle
  32. *
  33. * This function will create a dummy network interface
  34. *
  35. * Return: QDF_STATUS_SUCCESS on success
  36. */
  37. QDF_STATUS
  38. qdf_net_if_create_dummy_if(struct qdf_net_if *nif);
  39. #else
  40. static inline QDF_STATUS
  41. qdf_net_if_create_dummy_if(struct qdf_net_if *nif)
  42. {
  43. return __qdf_net_if_create_dummy_if(nif);
  44. }
  45. #endif
  46. #endif /* __QDF_NET_IF_H */