cfg_mlme_vht_caps.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  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_VHT_CAPS_H
  22. #define __CFG_MLME_VHT_CAPS_H
  23. #define CFG_VHT_SUPP_CHAN_WIDTH CFG_UINT( \
  24. "supp_chan_width", \
  25. 0, \
  26. 2, \
  27. 0, \
  28. CFG_VALUE_OR_DEFAULT, \
  29. "VHT SUPPORTED CHAN WIDTH SET")
  30. /*
  31. * <ini>
  32. * gTxBFCsnValue - ini to set VHT/HE STS Caps field
  33. * @Min: 0
  34. * @Max: 7
  35. * @Default: 7
  36. *
  37. * This ini is used to configure the STS capability shown in AC/AX mode
  38. * MGMT frame IE, the final STS field shown in VHT/HE IE will be calculated
  39. * by MIN of (INI set, target report value). Only if gTxBFEnable is enabled
  40. * and SU/MU BEAMFORMEE Caps is shown, then STS Caps make sense.
  41. *
  42. * Related: gTxBFEnable.
  43. *
  44. * Supported Feature: STA/SAP
  45. *
  46. * Usage: Internal
  47. *
  48. * </ini>
  49. */
  50. #define CFG_VHT_BEAMFORMEE_ANT_SUPP CFG_INI_UINT( \
  51. "txBFCsnValue", \
  52. 0, \
  53. 7, \
  54. 7, \
  55. CFG_VALUE_OR_DEFAULT, \
  56. "VHT BEAMFORMEE ANTENNA SUPPORTED CAP")
  57. /*
  58. * <ini>
  59. * gEnableTxSUBeamformer - Enables TX Su beam former
  60. * @Min: 0
  61. * @Max: 1
  62. * @Default: 0
  63. *
  64. * Related: NA
  65. *
  66. * Supported Feature: 11AC
  67. *
  68. * Usage: External
  69. *
  70. * </ini>
  71. */
  72. #define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER CFG_INI_BOOL( \
  73. "gEnableTxSUBeamformer", \
  74. 0, \
  75. "vht tx su beam former")
  76. #define CFG_VHT_NUM_SOUNDING_DIMENSIONS CFG_UINT( \
  77. "num_soundingdim", \
  78. 0, \
  79. 3, \
  80. 0, \
  81. CFG_VALUE_OR_DEFAULT, \
  82. "VHT NUMBER OF SOUNDING DIMENSIONS")
  83. #define CFG_VHT_HTC_VHTC CFG_BOOL( \
  84. "htc_vhtc", \
  85. 0, \
  86. "VHT HTC VHTC")
  87. #define CFG_VHT_LINK_ADAPTATION_CAP CFG_UINT( \
  88. "link_adap_cap", \
  89. 0, \
  90. 3, \
  91. 0, \
  92. CFG_VALUE_OR_DEFAULT, \
  93. "VHT LINK ADAPTATION CAP")
  94. #define CFG_VHT_RX_ANT_PATTERN CFG_BOOL( \
  95. "rx_antpattern", \
  96. 1, \
  97. "VHT RX ANTENNA PATTERN CAP")
  98. #define CFG_VHT_TX_ANT_PATTERN CFG_BOOL( \
  99. "tx_antpattern", \
  100. 1, \
  101. "VHT TX ANTENNA PATTERN CAP")
  102. #define CFG_VHT_RX_SUPP_DATA_RATE CFG_UINT( \
  103. "rx_supp_data_rate", \
  104. 0, \
  105. 780, \
  106. 780, \
  107. CFG_VALUE_OR_DEFAULT, \
  108. "VHT RX SUPP DATA RATE")
  109. #define CFG_VHT_TX_SUPP_DATA_RATE CFG_UINT( \
  110. "tx_supp_data_rate", \
  111. 0, \
  112. 780, \
  113. 780, \
  114. CFG_VALUE_OR_DEFAULT, \
  115. "VHT TX SUPP DATA RATE")
  116. /*
  117. * <ini>
  118. * gTxBFEnable - Enables SU beamformee caps
  119. * @Min: 0
  120. * @Max: 1
  121. * @Default: 1
  122. *
  123. * Related: NA
  124. *
  125. * Supported Feature: 11AC
  126. *
  127. * Usage: External
  128. *
  129. * </ini>
  130. */
  131. #define CFG_VHT_SU_BEAMFORMEE_CAP CFG_INI_BOOL( \
  132. "gTxBFEnable", \
  133. 1, \
  134. "VHT SU BEAMFORMEE CAPABILITY")
  135. /*
  136. * <ini>
  137. * gEnableTxBFin20MHz - Enables TXBF in 20mhz
  138. * @Min: 0
  139. * @Max: 1
  140. * @Default: 0
  141. *
  142. * Related: NA
  143. *
  144. * Supported Feature: 11AC
  145. *
  146. * Usage: External
  147. *
  148. * </ini>
  149. */
  150. #define CFG_VHT_ENABLE_TXBF_IN_20MHZ CFG_INI_BOOL( \
  151. "gEnableTxBFin20MHz", \
  152. 0, \
  153. "VHT ENABLE TXBF 20MHZ")
  154. #define CFG_VHT_MU_BEAMFORMER_CAP CFG_BOOL( \
  155. "mu_bformer", \
  156. 0, \
  157. "VHT MU BEAMFORMER CAP")
  158. #define CFG_VHT_TXOP_PS CFG_BOOL( \
  159. "txop_ps", \
  160. 0, \
  161. "VHT TXOP PS")
  162. /*
  163. * <ini>
  164. * gVhtChannelWidth - Channel width capability for 11ac
  165. * @Min: 0
  166. * @Max: 4
  167. * @Default: 3
  168. *
  169. * This ini is used to set channel width capability for 11AC.
  170. * eHT_CHANNEL_WIDTH_20MHZ = 0,
  171. * eHT_CHANNEL_WIDTH_40MHZ = 1,
  172. * eHT_CHANNEL_WIDTH_80MHZ = 2,
  173. * eHT_CHANNEL_WIDTH_160MHZ = 3,
  174. * eHT_CHANNEL_WIDTH_80P80MHZ = 4,
  175. *
  176. * Related: NA
  177. *
  178. * Supported Feature: 11AC
  179. *
  180. * Usage: External
  181. *
  182. * </ini>
  183. */
  184. #define CFG_VHT_CHANNEL_WIDTH CFG_INI_UINT( \
  185. "gVhtChannelWidth", \
  186. 0, \
  187. 4, \
  188. 2, \
  189. CFG_VALUE_OR_DEFAULT, \
  190. "Channel width capability for 11ac")
  191. /*
  192. * <ini>
  193. * gVhtRxMCS - VHT Rx MCS capability for 1x1 mode
  194. * @Min: 0
  195. * @Max: 2
  196. * @Default: 0
  197. *
  198. * This ini is used to set VHT Rx MCS capability for 1x1 mode.
  199. * 0, MCS0-7
  200. * 1, MCS0-8
  201. * 2, MCS0-9
  202. *
  203. * Related: NA
  204. *
  205. * Supported Feature: 11AC
  206. *
  207. * Usage: Internal/External
  208. *
  209. * </ini>
  210. */
  211. #define CFG_VHT_ENABLE_RX_MCS_8_9 CFG_INI_UINT( \
  212. "gVhtRxMCS", \
  213. 0, \
  214. 2, \
  215. 0, \
  216. CFG_VALUE_OR_DEFAULT, \
  217. "VHT Rx MCS")
  218. /*
  219. * <ini>
  220. * gVhtTxMCS - VHT Tx MCS capability for 1x1 mode
  221. * @Min: 0
  222. * @Max: 2
  223. * @Default: 0
  224. *
  225. * This ini is used to set VHT Tx MCS capability for 1x1 mode.
  226. * 0, MCS0-7
  227. * 1, MCS0-8
  228. * 2, MCS0-9
  229. *
  230. * Related: NA
  231. *
  232. * Supported Feature: 11AC
  233. *
  234. * Usage: Internal/External
  235. *
  236. * </ini>
  237. */
  238. #define CFG_VHT_ENABLE_TX_MCS_8_9 CFG_INI_UINT( \
  239. "gVhtTxMCS", \
  240. 0, \
  241. 2, \
  242. 0, \
  243. CFG_VALUE_OR_DEFAULT, \
  244. "VHT Tx MCS")
  245. /*
  246. * <ini>
  247. * gVhtRxMCS2x2 - VHT Rx MCS capability for 2x2 mode
  248. * @Min: 0
  249. * @Max: 2
  250. * @Default: 0
  251. *
  252. * This ini is used to set VHT Rx MCS capability for 2x2 mode.
  253. * 0, MCS0-7
  254. * 1, MCS0-8
  255. * 2, MCS0-9
  256. *
  257. * Related: NA
  258. *
  259. * Supported Feature: 11AC
  260. *
  261. * Usage: External
  262. *
  263. * </ini>
  264. */
  265. #define CFG_VHT_ENABLE_RX_MCS2x2_8_9 CFG_INI_UINT( \
  266. "gVhtRxMCS2x2", \
  267. 0, \
  268. 2, \
  269. 0, \
  270. CFG_VALUE_OR_DEFAULT, \
  271. "VHT Rx MCS 2x2")
  272. /*
  273. * <ini>
  274. * gVhtTxMCS2x2 - VHT Tx MCS capability for 2x2 mode
  275. * @Min: 0
  276. * @Max: 2
  277. * @Default: 0
  278. *
  279. * This ini is used to set VHT Tx MCS capability for 2x2 mode.
  280. * 0, MCS0-7
  281. * 1, MCS0-8
  282. * 2, MCS0-9
  283. *
  284. * Related: NA
  285. *
  286. * Supported Feature: 11AC
  287. *
  288. * Usage: External
  289. *
  290. * </ini>
  291. */
  292. #define CFG_VHT_ENABLE_TX_MCS2x2_8_9 CFG_INI_UINT( \
  293. "gVhtTxMCS2x2", \
  294. 0, \
  295. 2, \
  296. 0, \
  297. CFG_VALUE_OR_DEFAULT, \
  298. "VHT Tx MCS 2x2")
  299. /*
  300. * <ini>
  301. * enable_vht20_mcs9 - Enables VHT MCS9 in 20M BW operation
  302. * @Min: 0
  303. * @Max: 1
  304. * @Default: 1
  305. *
  306. * Related: NA
  307. *
  308. * Supported Feature: 11AC
  309. *
  310. * Usage: External
  311. *
  312. * </ini>
  313. */
  314. #define CFG_ENABLE_VHT20_MCS9 CFG_INI_BOOL( \
  315. "enable_vht20_mcs9", \
  316. 1, \
  317. "Enables VHT MCS9 in 20M BW")
  318. /*
  319. * <ini>
  320. * gEnable2x2 - Enables/disables VHT Tx/Rx MCS values for 2x2
  321. * @Min: 0
  322. * @Max: 1
  323. * @Default: 0
  324. *
  325. * This ini disables/enables 2x2 mode. If this is zero then DUT operates as 1x1
  326. *
  327. * 0, Disable
  328. * 1, Enable
  329. *
  330. * Related: NA
  331. *
  332. * Supported Feature: 11AC
  333. *
  334. * Usage: External
  335. *
  336. * </ini>
  337. */
  338. #define CFG_VHT_ENABLE_2x2_CAP_FEATURE CFG_INI_BOOL( \
  339. "gEnable2x2", \
  340. 0, \
  341. "VHT Enable 2x2")
  342. /*
  343. * <ini>
  344. * gEnableMuBformee - Enables/disables multi-user (MU) beam formee capability
  345. * @Min: 0
  346. * @Max: 1
  347. * @Default: 0
  348. *
  349. * This ini enables/disables multi-user (MU) beam formee
  350. * capability
  351. *
  352. * Change MU Bformee only when gTxBFEnable is enabled.
  353. * When gTxBFEnable and gEnableMuBformee are set, MU beam formee capability is
  354. * enabled.
  355. * Related: gTxBFEnable
  356. *
  357. * Supported Feature: 11AC
  358. *
  359. * Usage: External
  360. *
  361. * </ini>
  362. */
  363. #define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE CFG_INI_BOOL( \
  364. "gEnableMuBformee", \
  365. 0, \
  366. "VHT Enable MU Beamformee")
  367. /*
  368. * <ini>
  369. * gEnablePAID - Enables VHT paid feature
  370. * @Min: 0
  371. * @Max: 1
  372. * @Default: 0
  373. *
  374. * Related: NA
  375. *
  376. * Supported Feature: 11AC
  377. *
  378. * Usage: External
  379. *
  380. * </ini>
  381. */
  382. #define CFG_VHT_ENABLE_PAID_FEATURE CFG_INI_BOOL( \
  383. "gEnablePAID", \
  384. 0, \
  385. "VHT Enable PAID")
  386. /*
  387. * <ini>
  388. * gEnableGID - Enables VHT gid feature
  389. * @Min: 0
  390. * @Max: 1
  391. * @Default: 0
  392. *
  393. * Related: NA
  394. *
  395. * Supported Feature: 11AC
  396. *
  397. * Usage: External
  398. *
  399. * </ini>
  400. */
  401. #define CFG_VHT_ENABLE_GID_FEATURE CFG_INI_BOOL( \
  402. "gEnableGID", \
  403. 0, \
  404. "VHT Enable GID")
  405. /*
  406. * <ini>
  407. * gEnableVhtFor24GHzBand - Enable VHT for 2.4GHZ in SAP mode
  408. * @Min: 0
  409. * @Max: 1
  410. * @Default: 0
  411. *
  412. * Related: NA
  413. *
  414. * Supported Feature: 11AC
  415. *
  416. * Usage: External
  417. *
  418. * </ini>
  419. */
  420. #define CFG_ENABLE_VHT_FOR_24GHZ CFG_INI_BOOL( \
  421. "gEnableVhtFor24GHzBand", \
  422. 0, \
  423. "VHT Enable for 24GHz")
  424. /*
  425. * gEnableVendorVhtFor24GHzBand:Parameter to control VHT support
  426. * based on vendor ie in 2.4 GHz band
  427. * @Min: 0
  428. * @Max: 1
  429. * @Default: 1
  430. *
  431. * This parameter will enable SAP to read VHT capability in vendor ie in Assoc
  432. * Req and send VHT caps in Resp to establish connection in VHT Mode.
  433. * Supported Feature: SAP
  434. *
  435. *
  436. * Usage: Internal/External
  437. *
  438. * </ini>
  439. */
  440. #define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ CFG_INI_BOOL( \
  441. "gEnableVendorVhtFor24GHzBand", \
  442. 1, \
  443. "VHT Enable Vendor for 24GHz")
  444. /*
  445. * <ini>
  446. * gVhtAmpduLenExponent - maximum receive AMPDU size configuration
  447. * @Min: 0
  448. * @Max: 7
  449. * @Default: 3
  450. *
  451. * Related: NA
  452. *
  453. * Supported Feature: 11AC
  454. *
  455. * Usage: External
  456. *
  457. * </ini>
  458. */
  459. #define CFG_VHT_AMPDU_LEN_EXPONENT CFG_INI_UINT( \
  460. "gVhtAmpduLenExponent", \
  461. 0, \
  462. 7, \
  463. 3, \
  464. CFG_VALUE_OR_DEFAULT, \
  465. "VHT AMPDU Len in Exponent")
  466. /*
  467. * <ini>
  468. * gVhtMpduLen - VHT MPDU length
  469. * @Min: 0
  470. * @Max: 2
  471. * @Default: 0
  472. *
  473. * Related: NA
  474. *
  475. * Supported Feature: 11AC
  476. *
  477. * Usage: External
  478. *
  479. * </ini>
  480. */
  481. #define CFG_VHT_MPDU_LEN CFG_INI_UINT( \
  482. "gVhtMpduLen", \
  483. 0, \
  484. 2, \
  485. 0, \
  486. CFG_VALUE_OR_DEFAULT, \
  487. "VHT MPDU Length")
  488. /*
  489. * <ini>
  490. * gEnableTxBFeeSAP - Enable / Disable Tx beamformee in SAP mode
  491. * @Min: 0
  492. * @Max: 1
  493. * @Default: 0
  494. *
  495. * Related: NA
  496. *
  497. * Supported Feature: 11AC
  498. *
  499. * Usage: External
  500. *
  501. * </ini>
  502. */
  503. #define CFG_VHT_ENABLE_TXBF_SAP_MODE CFG_INI_BOOL( \
  504. "gEnableTxBFeeSAP", \
  505. 0, \
  506. "Enable tx bf sap mode")
  507. /*
  508. * <ini>
  509. * enable_subfee_vendor_vhtie - ini to enable/disable SU Bformee in vendor VHTIE
  510. * @Min: 0
  511. * @Max: 1
  512. * @Default: 1
  513. *
  514. * This ini is used to enable/disable SU Bformee in vendor vht ie if gTxBFEnable
  515. * is enabled. if gTxBFEnable is 0 this will not have any effect.
  516. *
  517. * Related: gTxBFEnable.
  518. *
  519. * Supported Feature: STA
  520. *
  521. * Usage: External
  522. *
  523. * </ini>
  524. */
  525. #define CFG_ENABLE_SUBFEE_IN_VENDOR_VHTIE CFG_INI_BOOL( \
  526. "enable_subfee_vendor_vhtie", \
  527. 0, \
  528. "Enable subfee in vendor vht ie")
  529. #define CFG_VHT_CAPS_ALL \
  530. CFG(CFG_VHT_SUPP_CHAN_WIDTH) \
  531. CFG(CFG_VHT_SU_BEAMFORMEE_CAP) \
  532. CFG(CFG_VHT_BEAMFORMEE_ANT_SUPP) \
  533. CFG(CFG_VHT_ENABLE_TX_SU_BEAM_FORMER) \
  534. CFG(CFG_VHT_NUM_SOUNDING_DIMENSIONS) \
  535. CFG(CFG_VHT_MU_BEAMFORMER_CAP) \
  536. CFG(CFG_VHT_TXOP_PS) \
  537. CFG(CFG_VHT_HTC_VHTC) \
  538. CFG(CFG_VHT_LINK_ADAPTATION_CAP) \
  539. CFG(CFG_VHT_RX_ANT_PATTERN) \
  540. CFG(CFG_VHT_TX_ANT_PATTERN) \
  541. CFG(CFG_VHT_RX_SUPP_DATA_RATE) \
  542. CFG(CFG_VHT_TX_SUPP_DATA_RATE) \
  543. CFG(CFG_VHT_ENABLE_TXBF_IN_20MHZ) \
  544. CFG(CFG_VHT_CHANNEL_WIDTH) \
  545. CFG(CFG_VHT_ENABLE_RX_MCS_8_9) \
  546. CFG(CFG_VHT_ENABLE_TX_MCS_8_9) \
  547. CFG(CFG_VHT_ENABLE_RX_MCS2x2_8_9) \
  548. CFG(CFG_VHT_ENABLE_TX_MCS2x2_8_9) \
  549. CFG(CFG_ENABLE_VHT20_MCS9) \
  550. CFG(CFG_VHT_ENABLE_2x2_CAP_FEATURE) \
  551. CFG(CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE) \
  552. CFG(CFG_VHT_ENABLE_PAID_FEATURE) \
  553. CFG(CFG_VHT_ENABLE_GID_FEATURE) \
  554. CFG(CFG_ENABLE_VHT_FOR_24GHZ) \
  555. CFG(CFG_ENABLE_VENDOR_VHT_FOR_24GHZ) \
  556. CFG(CFG_VHT_AMPDU_LEN_EXPONENT) \
  557. CFG(CFG_VHT_MPDU_LEN) \
  558. CFG(CFG_VHT_ENABLE_TXBF_SAP_MODE) \
  559. CFG(CFG_ENABLE_SUBFEE_IN_VENDOR_VHTIE)
  560. #endif /* __CFG_MLME_VHT_CAPS_H */