cfg_mlme_wifi_pos.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (c) 2012-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: This file contains centralized definitions of converged configuration.
  20. */
  21. #ifndef __CFG_MLME_WIFI_POS_H
  22. #define __CFG_MLME_WIFI_POS_H
  23. /*
  24. * <ini>
  25. * gfine_time_meas_cap - fine timing measurement capability information
  26. * @Min: 0x0000
  27. * @Max: 0x00BD
  28. * @Default: 0x00BD
  29. *
  30. * fine timing measurement capability information
  31. *
  32. * <----- fine_time_meas_cap (in bits) ----->
  33. * +----------+-----+-----+------+------+-------+-------+-----+-----+
  34. * | 8-31 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
  35. * +----------+-----+-----+------+------+-------+-------+-----+-----+
  36. * | reserved | SAP | SAP |P2P-GO|P2P-GO|P2P-CLI|P2P-CLI| STA | STA |
  37. * | |resp |init |resp |init |resp |init |resp |init |
  38. * +----------+-----+-----+------+------+-------+-------+-----+-----+
  39. *
  40. * resp - responder role; init- initiator role
  41. *
  42. * CFG_FINE_TIME_MEAS_CAPABILITY_MAX computed based on the table
  43. * +-----------------+-----------------+-----------+
  44. * | Device Role | Initiator | Responder |
  45. * +-----------------+-----------------+-----------+
  46. * | Station | Y | N |
  47. * | P2P-CLI | Y | Y |
  48. * | P2P-GO | Y | Y |
  49. * | SAP | N | Y |
  50. * +-----------------+-----------------+-----------+
  51. *
  52. * Related: None
  53. *
  54. * Supported Feature: WIFI POS
  55. *
  56. * Usage: Internal/External
  57. *
  58. * </ini>
  59. */
  60. #define CFG_FINE_TIME_MEAS_CAPABILITY CFG_INI_UINT( \
  61. "gfine_time_meas_cap", \
  62. 0x0000, \
  63. 0x00BD, \
  64. 0x00BD, \
  65. CFG_VALUE_OR_DEFAULT, \
  66. "fine timing measurement capability")
  67. #define CFG_WIFI_POS_ALL \
  68. CFG(CFG_FINE_TIME_MEAS_CAPABILITY)
  69. #endif /* __CFG_MLME_WIFI_POS_H */