cfg_mlme_oce.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. /*
  2. * Copyright (c) 2012-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: This file contains centralized definitions of converged configuration.
  20. */
  21. #ifndef __CFG_MLME_OCE_H
  22. #define __CFG_MLME_OCE_H
  23. /*
  24. * <ini>
  25. * g_enable_bcast_probe_rsp - Enable Broadcast probe response.
  26. * @Min: 0
  27. * @Max: 1
  28. * @Default: 1
  29. *
  30. * This ini is used to enable/disable broadcast probe response.
  31. * If this is disabled then OCE ini oce_sta_enable will also be
  32. * disabled and OCE IE will not be sent in frames.
  33. *
  34. * Related: None
  35. *
  36. * Supported Feature: FILS
  37. *
  38. * Usage: External
  39. *
  40. * </ini>
  41. */
  42. #define CFG_ENABLE_BCAST_PROBE_RESP CFG_INI_BOOL( \
  43. "g_enable_bcast_probe_rsp", \
  44. 1, \
  45. "Enable Broadcast probe response")
  46. /*
  47. * <ini>
  48. * oce_sta_enable - Enable/disable oce feature for STA
  49. * @Min: 0
  50. * @Max: 1
  51. * @Default: 1
  52. *
  53. * This ini is used to enable/disable oce feature for STA
  54. *
  55. * Related: None
  56. *
  57. * Supported Feature: OCE
  58. *
  59. * Usage: External
  60. *
  61. * </ini>
  62. */
  63. #define CFG_OCE_ENABLE_STA CFG_INI_BOOL( \
  64. "oce_sta_enable", \
  65. 1, \
  66. "Enable/disable oce feature for STA")
  67. /*
  68. * <ini>
  69. * oce_sap_enable - Enable/disable oce feature for SAP
  70. * @Min: 0
  71. * @Max: 1
  72. * @Default: 1
  73. *
  74. * This ini is used to enable/disable oce feature for SAP
  75. *
  76. * Related: None
  77. *
  78. * Supported Feature: OCE
  79. *
  80. * Usage: External
  81. *
  82. * </ini>
  83. */
  84. #define CFG_OCE_ENABLE_SAP CFG_INI_BOOL( \
  85. "oce_sap_enable", \
  86. 1, \
  87. "Enable/disable oce feature for SAP")
  88. /*
  89. * <ini>
  90. * oce_enable_rssi_assoc_reject - Enable/disable rssi based assoc rejection
  91. * @Min: 0
  92. * @Max: 1
  93. * @Default: 1
  94. *
  95. * This ini is used to enable/disable rssi based assoc rejection. If this is
  96. * disabled then OCE ini oce_sta_enable will also be disabled and OCE IE will
  97. * not be sent in frames.
  98. *
  99. * Related: None
  100. *
  101. * Supported Feature: OCE
  102. *
  103. * Usage: External
  104. *
  105. * </ini>
  106. */
  107. #define CFG_OCE_ENABLE_RSSI_BASED_ASSOC_REJECT CFG_INI_BOOL( \
  108. "oce_enable_rssi_assoc_reject", \
  109. 1, \
  110. "Enable/disable rssi based assoc rejection")
  111. /*
  112. * <ini>
  113. * oce_enable_probe_req_rate - Set probe request rate
  114. * @Min: 0
  115. * @Max: 1
  116. * @Default: 1
  117. *
  118. * This ini is used to set probe request rate to 5.5Mbps as per OCE requirement
  119. * in 2.4G band
  120. *
  121. * Related: None
  122. *
  123. * Supported Feature: OCE
  124. *
  125. * Usage: External
  126. *
  127. * </ini>
  128. */
  129. #define CFG_OCE_PROBE_REQ_RATE CFG_INI_BOOL( \
  130. "oce_enable_probe_req_rate", \
  131. 1, \
  132. "Set probe request rate for OCE")
  133. /*
  134. * <ini>
  135. * oce_enable_probe_resp_rate - Set probe response rate
  136. * @Min: 0
  137. * @Max: 1
  138. * @Default: 0
  139. *
  140. * This ini is used to set probe response rate to 5.5Mbps as per OCE requirement
  141. * in 2.4G band
  142. *
  143. * Related: None
  144. *
  145. * Supported Feature: OCE
  146. *
  147. * Usage: External
  148. *
  149. * </ini>
  150. */
  151. #define CFG_OCE_PROBE_RSP_RATE CFG_INI_BOOL( \
  152. "oce_enable_probe_resp_rate", \
  153. 0, \
  154. "Set probe response rate for OCE")
  155. /*
  156. * <ini>
  157. * oce_enable_beacon_rate - Set beacon rate
  158. * @Min: 0
  159. * @Max: 1
  160. * @Default: 0
  161. *
  162. * This ini is used to set beacon rate to 5.5Mbps as per OCE requirement in
  163. * 2.4G band
  164. *
  165. * Related: None
  166. *
  167. * Supported Feature: OCE
  168. *
  169. * Usage: External
  170. *
  171. * </ini>
  172. */
  173. #define CFG_OCE_BEACON_RATE CFG_INI_BOOL( \
  174. "oce_enable_beacon_rate", \
  175. 0, \
  176. "Set Beacon rate for OCE")
  177. /*
  178. * <ini>
  179. * oce_enable_probe_req_deferral - Enable/disable probe request deferral
  180. * @Min: 0
  181. * @Max: 1
  182. * @Default: 1
  183. *
  184. * This ini is used to enable/disable probe request deferral as per OCE spec
  185. *
  186. * Related: None
  187. *
  188. * Supported Feature: OCE
  189. *
  190. * Usage: External
  191. *
  192. * </ini>
  193. */
  194. #define CFG_ENABLE_PROBE_REQ_DEFERRAL CFG_INI_BOOL( \
  195. "oce_enable_probe_req_deferral", \
  196. 1, \
  197. "Enable/disable probe request deferral for OCE")
  198. /*
  199. * <ini>
  200. * oce_enable_fils_discovery_sap - Enable/disable fils discovery in sap mode
  201. * @Min: 0
  202. * @Max: 1
  203. * @Default: 1
  204. *
  205. * This ini is used to enable/disable fils discovery in sap mode
  206. *
  207. * Related: None
  208. *
  209. * Supported Feature: FILS
  210. *
  211. * Usage: External
  212. *
  213. * </ini>
  214. */
  215. #define CFG_ENABLE_FILS_DISCOVERY_SAP CFG_INI_BOOL( \
  216. "oce_enable_fils_discovery_sap", \
  217. 1, \
  218. "Enable/disable fils discovery in sap mode")
  219. /*
  220. * <ini>
  221. * enable_esp_for_roam - Enable/disable esp feature
  222. * @Min: 0
  223. * @Max: 1
  224. * @Default: 1
  225. *
  226. * This ini is used to enable/disable ESP(Estimated service parameters) IE
  227. * parsing and decides whether firmware will include this in its scoring algo.
  228. *
  229. * Related: None
  230. *
  231. * Supported Feature: STA
  232. *
  233. * Usage: External
  234. *
  235. * </ini>
  236. */
  237. #define CFG_ENABLE_ESP_FEATURE CFG_INI_BOOL( \
  238. "enable_esp_for_roam", \
  239. 1, \
  240. "Enable/disable esp feature")
  241. /*
  242. * <ini>
  243. * g_is_fils_enabled - Enable/Disable FILS support in driver
  244. * @Min: 0
  245. * @Max: 1
  246. * @Default: 1
  247. *
  248. * This ini is used to enable/disable FILS support in driver
  249. * Driver will update config to supplicant based on this config.
  250. *
  251. * Related: None
  252. *
  253. * Supported Feature: FILS
  254. *
  255. * Usage: External
  256. *
  257. * </ini>
  258. */
  259. #define CFG_IS_FILS_ENABLED CFG_INI_BOOL( \
  260. "g_is_fils_enabled", \
  261. 1, \
  262. "Enable/disable support")
  263. #define CFG_OCE_ALL \
  264. CFG(CFG_ENABLE_BCAST_PROBE_RESP) \
  265. CFG(CFG_OCE_ENABLE_STA) \
  266. CFG(CFG_OCE_ENABLE_SAP) \
  267. CFG(CFG_OCE_ENABLE_RSSI_BASED_ASSOC_REJECT) \
  268. CFG(CFG_OCE_PROBE_REQ_RATE) \
  269. CFG(CFG_OCE_PROBE_RSP_RATE) \
  270. CFG(CFG_OCE_BEACON_RATE) \
  271. CFG(CFG_ENABLE_PROBE_REQ_DEFERRAL) \
  272. CFG(CFG_ENABLE_FILS_DISCOVERY_SAP) \
  273. CFG(CFG_ENABLE_ESP_FEATURE) \
  274. CFG(CFG_IS_FILS_ENABLED)
  275. #endif /* __CFG_MLME_OCE_H */