wlan_p2p_api.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 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: Contains p2p public data structure definitions
  20. */
  21. #ifndef _WLAN_P2P_API_H_
  22. #define _WLAN_P2P_API_H_
  23. #include <qdf_types.h>
  24. /**
  25. * wlan_p2p_check_oui_and_force_1x1() - Function to get P2P client device
  26. * attributes from assoc request frames
  27. * @assoc_ie: pointer to assoc request frame IEs
  28. * @ie_len: length of the assoc request frame IE
  29. *
  30. * When assoc request is received from P2P STA device, this function checks
  31. * for specific OUI present in the P2P device info attribute. The caller should
  32. * take care of checking if this is called only in P2P GO mode.
  33. *
  34. * Return: True if OUI is present, else false.
  35. */
  36. bool wlan_p2p_check_oui_and_force_1x1(uint8_t *assoc_ie, uint32_t ie_len);
  37. #endif