wlan_p2p_cfg_api.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Copyright (c) 2018 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: Contains p2p configures interface definitions
  20. */
  21. #ifndef _WLAN_P2P_CFG_API_H_
  22. #define _WLAN_P2P_CFG_API_H_
  23. #include <qdf_types.h>
  24. struct wlan_objmgr_psoc;
  25. /**
  26. * cfg_p2p_get_go_keepalive_period() - get go keepalive period
  27. * @psoc: pointer to psoc object
  28. * @period: go keepalive period
  29. *
  30. * This function gets go keepalive period to p2p component
  31. */
  32. QDF_STATUS
  33. cfg_p2p_get_go_keepalive_period(struct wlan_objmgr_psoc *psoc,
  34. uint32_t *period);
  35. /**
  36. * cfg_p2p_get_go_link_monitor_period() - get go link monitor period
  37. * @psoc: pointer to psoc object
  38. * @period: go link monitor period
  39. *
  40. * This function gets go link monitor period to p2p component
  41. */
  42. QDF_STATUS
  43. cfg_p2p_get_go_link_monitor_period(struct wlan_objmgr_psoc *psoc,
  44. uint32_t *period);
  45. /**
  46. * cfg_p2p_get_device_addr_admin() - get enable/disable p2p device
  47. * addr administrated
  48. * @psoc: pointer to psoc object
  49. * @enable: enable/disable p2p device addr administrated
  50. *
  51. * This function gets enable/disable p2p device addr administrated
  52. */
  53. QDF_STATUS
  54. cfg_p2p_get_device_addr_admin(struct wlan_objmgr_psoc *psoc,
  55. bool *enable);
  56. /**
  57. * cfg_p2p_get_skip_dfs_channel_p2p_search() - get skip dfs channel
  58. * in p2p search
  59. * @psoc: pointer to psoc object
  60. * @enable: enable/disable skip dfs channel in p2p search
  61. *
  62. * This function gets enable/disable skip dfs channel in p2p search
  63. */
  64. QDF_STATUS
  65. cfg_p2p_get_skip_dfs_channel_p2p_search(struct wlan_objmgr_psoc *psoc,
  66. bool *enable);
  67. #endif /* _WLAN_P2P_CFG_API_H_ */