cfg_qos.h 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  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 QOS related
  20. * converged configurations.
  21. */
  22. #ifndef __CFG_MLME_QOS_H
  23. #define __CFG_MLME_QOS_H
  24. /*
  25. * <ini>
  26. * gTxAggregationSize - Gives an option to configure Tx aggregation size
  27. * in no of MPDUs
  28. * @Min: 0
  29. * @Max: 64
  30. * @Default: 64
  31. *
  32. * gTxAggregationSize gives an option to configure Tx aggregation size
  33. * in no of MPDUs.This can be useful in debugging throughput issues
  34. *
  35. * Related: None
  36. *
  37. * Supported Feature: STA
  38. *
  39. * Usage: Internal/External
  40. *
  41. * </ini>
  42. */
  43. #define CFG_TX_AGGREGATION_SIZE CFG_INI_UINT( \
  44. "gTxAggregationSize", \
  45. 0, \
  46. 64, \
  47. 64, \
  48. CFG_VALUE_OR_DEFAULT, \
  49. "Tx Aggregation size value")
  50. /*
  51. * <ini>
  52. * gTxAggregationSizeBE - To configure Tx aggregation size for BE queue
  53. * in no of MPDUs
  54. * @Min: 0
  55. * @Max: 64
  56. * @Default: 0
  57. *
  58. * gTxAggregationSizeBE gives an option to configure Tx aggregation size
  59. * for BE queue in no of MPDUs.This can be useful in debugging
  60. * throughput issues
  61. *
  62. * Related: None
  63. *
  64. * Supported Feature: STA
  65. *
  66. * Usage: Internal
  67. *
  68. * </ini>
  69. */
  70. #define CFG_TX_AGGREGATION_SIZEBE CFG_INI_UINT( \
  71. "gTxAggregationSizeBE", \
  72. 0, \
  73. 64, \
  74. 0, \
  75. CFG_VALUE_OR_DEFAULT, \
  76. "Tx Aggregation size value BE")
  77. /*
  78. * <ini>
  79. * gTxAggregationSizeBK - To configure Tx aggregation size for BK queue
  80. * in no of MPDUs
  81. * @Min: 0
  82. * @Max: 64
  83. * @Default: 0
  84. *
  85. * gTxAggregationSizeBK gives an option to configure Tx aggregation size
  86. * for BK queue in no of MPDUs.This can be useful in debugging
  87. * throughput issues
  88. *
  89. * Related: None
  90. *
  91. * Supported Feature: STA
  92. *
  93. * Usage: Internal
  94. *
  95. * </ini>
  96. */
  97. #define CFG_TX_AGGREGATION_SIZEBK CFG_INI_UINT( \
  98. "gTxAggregationSizeBK", \
  99. 0, \
  100. 64, \
  101. 0, \
  102. CFG_VALUE_OR_DEFAULT, \
  103. "Tx Aggregation size value BK")
  104. /*
  105. * <ini>
  106. * gTxAggregationSizeVI - To configure Tx aggregation size for VI queue
  107. * in no of MPDUs
  108. * @Min: 0
  109. * @Max: 64
  110. * @Default: 0
  111. *
  112. * gTxAggregationSizeVI gives an option to configure Tx aggregation size
  113. * for VI queue in no of MPDUs.This can be useful in debugging
  114. * throughput issues
  115. *
  116. * Related: None
  117. *
  118. * Supported Feature: STA
  119. *
  120. * Usage: Internal
  121. *
  122. * </ini>
  123. */
  124. #define CFG_TX_AGGREGATION_SIZEVI CFG_INI_UINT( \
  125. "gTxAggregationSizeVI", \
  126. 0, \
  127. 64, \
  128. 0, \
  129. CFG_VALUE_OR_DEFAULT, \
  130. "Tx Aggregation size value for VI")
  131. /*
  132. * <ini>
  133. * gTxAggregationSizeVO - To configure Tx aggregation size for VO queue
  134. * in no of MPDUs
  135. * @Min: 0
  136. * @Max: 64
  137. * @Default: 0
  138. *
  139. * gTxAggregationSizeVO gives an option to configure Tx aggregation size
  140. * for BE queue in no of MPDUs.This can be useful in debugging
  141. * throughput issues
  142. *
  143. * Related: None
  144. *
  145. * Supported Feature: STA
  146. *
  147. * Usage: Internal
  148. *
  149. * </ini>
  150. */
  151. #define CFG_TX_AGGREGATION_SIZEVO CFG_INI_UINT( \
  152. "gTxAggregationSizeVO", \
  153. 0, \
  154. 64, \
  155. 0, \
  156. CFG_VALUE_OR_DEFAULT, \
  157. "Tx Aggregation size value for VO")
  158. /*
  159. * <ini>
  160. * gRxAggregationSize - Gives an option to configure Rx aggregation size
  161. * in no of MPDUs
  162. * @Min: 1
  163. * @Max: 64
  164. * @Default: 64
  165. *
  166. * gRxAggregationSize gives an option to configure Rx aggregation size
  167. * in no of MPDUs. This can be useful in debugging throughput issues
  168. *
  169. * Related: None
  170. *
  171. * Supported Feature: STA
  172. *
  173. * Usage: Internal/External
  174. *
  175. * </ini>
  176. */
  177. #define CFG_RX_AGGREGATION_SIZE CFG_INI_UINT( \
  178. "gRxAggregationSize", \
  179. 1, \
  180. 64, \
  181. 64, \
  182. CFG_VALUE_OR_DEFAULT, \
  183. "Rx Aggregation size value")
  184. /*
  185. * <ini>
  186. * gTxAggSwRetryBE - Configure Tx aggregation sw retry for BE
  187. * @Min: 0
  188. * @Max: 64
  189. * @Default: 0
  190. *
  191. * gTxAggSwRetryBE gives an option to configure Tx aggregation sw
  192. * retry for BE. This can be useful in debugging throughput issues.
  193. *
  194. * Related: None
  195. *
  196. * Supported Feature: STA
  197. *
  198. * Usage: Internal
  199. *
  200. * </ini>
  201. */
  202. #define CFG_TX_AGGR_SW_RETRY_BE CFG_INI_UINT( \
  203. "gTxAggSwRetryBE", \
  204. 0, \
  205. 64, \
  206. 0, \
  207. CFG_VALUE_OR_DEFAULT, \
  208. "Tx aggregation retry value for BE")
  209. /*
  210. * <ini>
  211. * gTxAggSwRetryBK - Configure Tx aggregation sw retry for BK
  212. * @Min: 0
  213. * @Max: 64
  214. * @Default: 0
  215. *
  216. * gTxAggSwRetryBK gives an option to configure Tx aggregation sw
  217. * retry for BK. This can be useful in debugging throughput issues.
  218. *
  219. * Related: None
  220. *
  221. * Supported Feature: STA
  222. *
  223. * Usage: Internal
  224. *
  225. * </ini>
  226. */
  227. #define CFG_TX_AGGR_SW_RETRY_BK CFG_INI_UINT( \
  228. "gTxAggSwRetryBK", \
  229. 0, \
  230. 64, \
  231. 0, \
  232. CFG_VALUE_OR_DEFAULT, \
  233. "Tx aggregation retry value for BK")
  234. /*
  235. * <ini>
  236. * gTxAggSwRetryVI - Configure Tx aggregation sw retry for VI
  237. * @Min: 0
  238. * @Max: 64
  239. * @Default: 0
  240. *
  241. * gTxAggSwRetryVI gives an option to configure Tx aggregation sw
  242. * retry for VI. This can be useful in debugging throughput issues.
  243. *
  244. * Related: None
  245. *
  246. * Supported Feature: STA
  247. *
  248. * Usage: Internal
  249. *
  250. * </ini>
  251. */
  252. #define CFG_TX_AGGR_SW_RETRY_VI CFG_INI_UINT( \
  253. "gTxAggSwRetryVI", \
  254. 0, \
  255. 64, \
  256. 0, \
  257. CFG_VALUE_OR_DEFAULT, \
  258. "Tx aggregation retry value for VI")
  259. /*
  260. * <ini>
  261. * gTxAggSwRetryVO - Configure Tx aggregation sw retry for VO
  262. * @Min: 0
  263. * @Max: 64
  264. * @Default: 0
  265. *
  266. * gTxAggSwRetryVO gives an option to configure Tx aggregation sw
  267. * retry for VO. This can be useful in debugging throughput issues.
  268. *
  269. * Related: None
  270. *
  271. * Supported Feature: STA
  272. *
  273. * Usage: Internal
  274. *
  275. * </ini>
  276. */
  277. #define CFG_TX_AGGR_SW_RETRY_VO CFG_INI_UINT( \
  278. "gTxAggSwRetryVO", \
  279. 0, \
  280. 64, \
  281. 0, \
  282. CFG_VALUE_OR_DEFAULT, \
  283. "Tx aggregation retry value for VO")
  284. /*
  285. * <ini>
  286. * gTxNonAggSwRetryBE - Configure Tx non aggregation sw retry for BE
  287. * @Min: 0
  288. * @Max: 64
  289. * @Default: 0
  290. *
  291. * gTxNonAggSwRetryBE gives an option to configure Tx non aggregation sw
  292. * retry for BE. This can be useful in debugging throughput issues.
  293. *
  294. * Related: None
  295. *
  296. * Supported Feature: STA
  297. *
  298. * Usage: Internal
  299. *
  300. * </ini>
  301. */
  302. #define CFG_TX_NON_AGGR_SW_RETRY_BE CFG_INI_UINT( \
  303. "gTxNonAggSwRetryBE", \
  304. 0, \
  305. 64, \
  306. 0, \
  307. CFG_VALUE_OR_DEFAULT, \
  308. "Tx non aggregation retry value for BE")
  309. /*
  310. * <ini>
  311. * gTxNonAggSwRetryBK - Configure Tx non aggregation sw retry for BK
  312. * @Min: 0
  313. * @Max: 64
  314. * @Default: 0
  315. *
  316. * gTxNonAggSwRetryBK gives an option to configure Tx non aggregation sw
  317. * retry for BK. This can be useful in debugging throughput issues.
  318. *
  319. * Related: None
  320. *
  321. * Supported Feature: STA
  322. *
  323. * Usage: Internal
  324. *
  325. * </ini>
  326. */
  327. #define CFG_TX_NON_AGGR_SW_RETRY_BK CFG_INI_UINT( \
  328. "gTxNonAggSwRetryBK", \
  329. 0, \
  330. 64, \
  331. 0, \
  332. CFG_VALUE_OR_DEFAULT, \
  333. "Tx non aggregation retry value for BK")
  334. /*
  335. * <ini>
  336. * gTxNonAggSwRetryVI - Configure Tx non aggregation sw retry for VI
  337. * @Min: 0
  338. * @Max: 64
  339. * @Default: 0
  340. *
  341. * gTxNonAggSwRetryVI gives an option to configure Tx non aggregation sw
  342. * retry for VI. This can be useful in debugging throughput issues.
  343. *
  344. * Related: None
  345. *
  346. * Supported Feature: STA
  347. *
  348. * Usage: Internal
  349. *
  350. * </ini>
  351. */
  352. #define CFG_TX_NON_AGGR_SW_RETRY_VI CFG_INI_UINT( \
  353. "gTxNonAggSwRetryVI", \
  354. 0, \
  355. 64, \
  356. 0, \
  357. CFG_VALUE_OR_DEFAULT, \
  358. "Tx non aggregation retry value for VI")
  359. /*
  360. * <ini>
  361. * gTxNonAggSwRetryVO - Configure Tx non aggregation sw retry for VO
  362. * @Min: 0
  363. * @Max: 64
  364. * @Default: 0
  365. *
  366. * gTxNonAggSwRetryVO gives an option to configure Tx non aggregation sw
  367. * retry for VO. This can be useful in debugging throughput issues.
  368. *
  369. * Related: None
  370. *
  371. * Supported Feature: STA
  372. *
  373. * Usage: Internal
  374. *
  375. * </ini>
  376. */
  377. #define CFG_TX_NON_AGGR_SW_RETRY_VO CFG_INI_UINT( \
  378. "gTxNonAggSwRetryVO", \
  379. 0, \
  380. 64, \
  381. 0, \
  382. CFG_VALUE_OR_DEFAULT, \
  383. "Tx non aggregation retry value for VO")
  384. /*
  385. * <ini>
  386. * gSapMaxInactivityOverride - Configure
  387. * @Min: 0
  388. * @Max: 1
  389. * @Default: 0
  390. *
  391. * This parameter will avoid updating ap_sta_inactivity from hostapd.conf
  392. * file. If a station does not send anything in ap_max_inactivity seconds, an
  393. * empty data frame is sent to it in order to verify whether it is
  394. * still in range. If this frame is not ACKed, the station will be
  395. * disassociated and then deauthenticated. This feature is used to
  396. * clear station table of old entries when the STAs move out of the
  397. * range.
  398. *
  399. * Related: None
  400. *
  401. * Supported Feature: SAP
  402. *
  403. * Usage: Internal/External
  404. * </ini>
  405. */
  406. #define CFG_SAP_MAX_INACTIVITY_OVERRIDE CFG_INI_BOOL( \
  407. "gSapMaxInactivityOverride", \
  408. 0, \
  409. "SAP maximum inactivity override flag")
  410. #define CFG_QOS_ALL \
  411. CFG(CFG_SAP_MAX_INACTIVITY_OVERRIDE) \
  412. CFG(CFG_TX_AGGREGATION_SIZE) \
  413. CFG(CFG_TX_AGGREGATION_SIZEBE) \
  414. CFG(CFG_TX_AGGREGATION_SIZEBK) \
  415. CFG(CFG_TX_AGGREGATION_SIZEVI) \
  416. CFG(CFG_TX_AGGREGATION_SIZEVO) \
  417. CFG(CFG_RX_AGGREGATION_SIZE) \
  418. CFG(CFG_TX_AGGR_SW_RETRY_BE) \
  419. CFG(CFG_TX_AGGR_SW_RETRY_BK) \
  420. CFG(CFG_TX_AGGR_SW_RETRY_VI) \
  421. CFG(CFG_TX_AGGR_SW_RETRY_VO) \
  422. CFG(CFG_TX_NON_AGGR_SW_RETRY_BE) \
  423. CFG(CFG_TX_NON_AGGR_SW_RETRY_BK) \
  424. CFG(CFG_TX_NON_AGGR_SW_RETRY_VI) \
  425. CFG(CFG_TX_NON_AGGR_SW_RETRY_VO)
  426. #endif /* __CFG_MLME_QOS_H */