cfg_mlme_oce.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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_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. * oce_enable_rssi_assoc_reject - Enable/disable rssi based assoc rejection
  90. * @Min: 0
  91. * @Max: 1
  92. * @Default: 1
  93. *
  94. * This ini is used to enable/disable rssi based assoc rejection. If this is
  95. * disabled then OCE ini oce_sta_enable will also be disabled and OCE IE will
  96. * not be sent in frames.
  97. *
  98. * Related: None
  99. *
  100. * Supported Feature: OCE
  101. *
  102. * Usage: External
  103. *
  104. * </ini>
  105. */
  106. #define CFG_OCE_ENABLE_RSSI_BASED_ASSOC_REJECT CFG_INI_BOOL( \
  107. "oce_enable_rssi_assoc_reject", \
  108. 1, \
  109. "Enable/disable rssi based assoc rejection")
  110. /*
  111. * <ini>
  112. * oce_enable_probe_req_rate - Set probe request rate
  113. * @Min: 0
  114. * @Max: 1
  115. * @Default: 0
  116. *
  117. * This ini is used to set probe request rate to 5.5Mbps as per OCE requirement
  118. * in 2.4G band
  119. *
  120. * Related: None
  121. *
  122. * Supported Feature: OCE
  123. *
  124. * Usage: External
  125. *
  126. * </ini>
  127. */
  128. #define CFG_OCE_PROBE_REQ_RATE CFG_INI_BOOL( \
  129. "oce_enable_probe_req_rate", \
  130. 0, \
  131. "Set probe request rate for OCE")
  132. /*
  133. * <ini>
  134. * oce_enable_probe_resp_rate - Set probe response rate
  135. * @Min: 0
  136. * @Max: 1
  137. * @Default: 0
  138. *
  139. * This ini is used to set probe response rate to 5.5Mbps as per OCE requirement
  140. * in 2.4G band
  141. *
  142. * Related: None
  143. *
  144. * Supported Feature: OCE
  145. *
  146. * Usage: External
  147. *
  148. * </ini>
  149. */
  150. #define CFG_OCE_PROBE_RSP_RATE CFG_INI_BOOL( \
  151. "oce_enable_probe_resp_rate", \
  152. 0, \
  153. "Set probe response rate for OCE")
  154. /*
  155. * <ini>
  156. * oce_enable_beacon_rate - Set beacon rate
  157. * @Min: 0
  158. * @Max: 1
  159. * @Default: 0
  160. *
  161. * This ini is used to set beacon rate to 5.5Mbps as per OCE requirement in
  162. * 2.4G band
  163. *
  164. * Related: None
  165. *
  166. * Supported Feature: OCE
  167. *
  168. * Usage: External
  169. *
  170. * </ini>
  171. */
  172. #define CFG_OCE_BEACON_RATE CFG_INI_BOOL( \
  173. "oce_enable_beacon_rate", \
  174. 0, \
  175. "Set Beacon rate for OCE")
  176. /*
  177. * <ini>
  178. * oce_enable_probe_req_deferral - Enable/disable probe request deferral
  179. * @Min: 0
  180. * @Max: 1
  181. * @Default: 0
  182. *
  183. * This ini is used to enable/disable probe request deferral as per OCE spec
  184. *
  185. * Related: None
  186. *
  187. * Supported Feature: OCE
  188. *
  189. * Usage: External
  190. *
  191. * </ini>
  192. */
  193. #define CFG_ENABLE_PROBE_REQ_DEFERRAL CFG_INI_BOOL( \
  194. "oce_enable_probe_req_deferral", \
  195. 0, \
  196. "Enable/disable probe request deferral for OCE")
  197. /*
  198. * <ini>
  199. * oce_enable_fils_discovery_sap - Enable/disable fils discovery in sap mode
  200. * @Min: 0
  201. * @Max: 1
  202. * @Default: 1
  203. *
  204. * This ini is used to enable/disable fils discovery in sap mode
  205. *
  206. * Related: None
  207. *
  208. * Supported Feature: FILS
  209. *
  210. * Usage: External
  211. *
  212. * </ini>
  213. */
  214. #define CFG_ENABLE_FILS_DISCOVERY_SAP CFG_INI_BOOL( \
  215. "oce_enable_fils_discovery_sap", \
  216. 1, \
  217. "Enable/disable fils discovery in sap mode")
  218. /*
  219. * <ini>
  220. * enable_esp_for_roam - Enable/disable esp feature
  221. * @Min: 0
  222. * @Max: 1
  223. * @Default: 0
  224. *
  225. * This ini is used to enable/disable ESP(Estimated service parameters) IE
  226. * parsing and decides whether firmware will include this in its scoring algo.
  227. *
  228. * Related: None
  229. *
  230. * Supported Feature: STA
  231. *
  232. * Usage: External
  233. *
  234. * </ini>
  235. */
  236. #define CFG_ENABLE_ESP_FEATURE CFG_INI_BOOL( \
  237. "enable_esp_for_roam", \
  238. 0, \
  239. "Enable/disable esp feature")
  240. /*
  241. * <ini>
  242. * g_is_fils_enabled - Enable/Disable FILS support in driver
  243. * @Min: 0
  244. * @Max: 1
  245. * @Default: 1
  246. *
  247. * This ini is used to enable/disable FILS support in driver
  248. * Driver will update config to supplicant based on this config.
  249. *
  250. * Related: None
  251. *
  252. * Supported Feature: FILS
  253. *
  254. * Usage: External
  255. *
  256. * </ini>
  257. */
  258. #define CFG_IS_FILS_ENABLED CFG_INI_BOOL( \
  259. "g_is_fils_enabled", \
  260. 1, \
  261. "Enable/disable support")
  262. #define CFG_OCE_ALL \
  263. CFG(CFG_ENABLE_BCAST_PROBE_RESP) \
  264. CFG(CFG_OCE_ENABLE_STA) \
  265. CFG(CFG_OCE_ENABLE_SAP) \
  266. CFG(CFG_OCE_ENABLE_RSSI_BASED_ASSOC_REJECT) \
  267. CFG(CFG_OCE_PROBE_REQ_RATE) \
  268. CFG(CFG_OCE_PROBE_RSP_RATE) \
  269. CFG(CFG_OCE_BEACON_RATE) \
  270. CFG(CFG_ENABLE_PROBE_REQ_DEFERRAL) \
  271. CFG(CFG_ENABLE_FILS_DISCOVERY_SAP) \
  272. CFG(CFG_ENABLE_ESP_FEATURE) \
  273. CFG(CFG_IS_FILS_ENABLED)
  274. #endif /* __CFG_MLME_OCE_H */