wlan_mlme_public_struct.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 mlme structure definations
  20. */
  21. #ifndef _WLAN_MLME_STRUCT_H_
  22. #define _WLAN_MLME_STRUCT_H_
  23. #include <wlan_cmn.h>
  24. /**
  25. * struct mlme_ht_capabilities_info - HT Capabilities Info
  26. * @l_sig_tx_op_protection: L-SIG TXOP Protection Mechanism support
  27. * @stbc_control_frame: STBC Control frame support
  28. * @psmp: PSMP Support
  29. * @dsss_cck_mode_40_mhz: To indicate use of DSSS/CCK in 40Mhz
  30. * @maximal_amsdu_size: Maximum AMSDU Size - 0:3839 octes, 1:7935 octets
  31. * @delayed_ba: Support of Delayed Block Ack
  32. * @rx_stbc: Rx STBC Support - 0:Not Supported, 1: 1SS, 2: 1,2SS, 3: 1,2,3SS
  33. * @tx_stbc: Tx STBC Support
  34. * @short_gi_40_mhz: Short GI Support for HT40
  35. * @short_gi_20_mhz: Short GI support for HT20
  36. * @green_field: Support for HT Greenfield PPDUs
  37. * @mimo_power_save: SM Power Save Mode - 0:Static, 1:Dynamic, 3:Disabled, 2:Res
  38. * @supported_channel_width_set: Supported Chan Width - 0:20Mhz, 1:20Mhz & 40Mhz
  39. * @adv_coding_cap: Rx LDPC support
  40. */
  41. #ifndef ANI_LITTLE_BIT_ENDIAN
  42. struct mlme_ht_capabilities_info {
  43. uint16_t l_sig_tx_op_protection:1;
  44. uint16_t stbc_control_frame:1;
  45. uint16_t psmp:1;
  46. uint16_t dsss_cck_mode_40_mhz:1;
  47. uint16_t maximal_amsdu_size:1;
  48. uint16_t delayed_ba:1;
  49. uint16_t rx_stbc:2;
  50. uint16_t tx_stbc:1;
  51. uint16_t short_gi_40_mhz:1;
  52. uint16_t short_gi_20_mhz:1;
  53. uint16_t green_field:1;
  54. uint16_t mimo_power_save:2;
  55. uint16_t supported_channel_width_set:1;
  56. uint16_t adv_coding_cap:1;
  57. } qdf_packed;
  58. #else
  59. struct mlme_ht_capabilities_info {
  60. uint16_t adv_coding_cap:1;
  61. uint16_t supported_channel_width_set:1;
  62. uint16_t mimo_power_save:2;
  63. uint16_t green_field:1;
  64. uint16_t short_gi_20_mhz:1;
  65. uint16_t short_gi_40_mhz:1;
  66. uint16_t tx_stbc:1;
  67. uint16_t rx_stbc:2;
  68. uint16_t delayed_ba:1;
  69. uint16_t maximal_amsdu_size:1;
  70. uint16_t dsss_cck_mode_40_mhz:1;
  71. uint16_t psmp:1;
  72. uint16_t stbc_control_frame:1;
  73. uint16_t l_sig_tx_op_protection:1;
  74. } qdf_packed;
  75. #endif
  76. /**
  77. * struct wlan_mlme_ht_caps - HT Capabilities related config items
  78. * @ht_cap_info: HT capabilities Info Structure
  79. */
  80. struct wlan_mlme_ht_caps {
  81. struct mlme_ht_capabilities_info ht_cap_info;
  82. };
  83. struct wlan_mlme_vht_caps {
  84. /* VHT related configs */
  85. };
  86. /**
  87. * struct wlan_mlme_rates - RATES related config items
  88. * @cfpPeriod: cfp period info
  89. * @cfpMaxDuration: cfp Max duration info
  90. * @max_htmcs_txdata: max HT mcs info for Tx
  91. * @disable_abg_rate_txdata: disable abg rate info for tx data
  92. * @sap_max_mcs_txdata: sap max mcs info
  93. * @disable_high_ht_mcs_2x2: disable high mcs for 2x2 info
  94. */
  95. struct wlan_mlme_rates {
  96. uint8_t cfp_period;
  97. uint16_t cfp_max_duration;
  98. uint16_t max_htmcs_txdata;
  99. bool disable_abg_rate_txdata;
  100. uint16_t sap_max_mcs_txdata;
  101. uint8_t disable_high_ht_mcs_2x2;
  102. };
  103. /**
  104. * struct wlan_mlme_cfg - MLME config items
  105. * @ht_cfg: HT related CFG Items
  106. * @vht_cfg: VHT related CFG Items
  107. * @rates: Rates related cfg items
  108. */
  109. struct wlan_mlme_cfg {
  110. struct wlan_mlme_ht_caps ht_caps;
  111. struct wlan_mlme_vht_caps vht_caps;
  112. struct wlan_mlme_rates rates;
  113. };
  114. #endif