123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554 |
- /*
- * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
- /**
- * DOC: This file contains centralized definitions of converged configuration.
- */
- #ifndef __CFG_MLME_NSS_CHAINS
- #define __CFG_MLME_NSS_CHAINS
- /*
- * <ini>
- * num_tx_chains_2g - Config Param to change number of tx
- * chains per vdev for 2.4ghz frequency connections
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of chains for eg:-
- * 0x01249249 - change all vdev's num tx chains for 2.4ghz connection to 1 each
- * 0x02492492 - change all vdev's num tx chains for 2.4ghz connection to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_NUM_TX_CHAINS_2G CFG_INI_UINT( \
- "num_tx_chains_2g", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "num tx chains 2g")
- /*
- * <ini>
- * num_tx_chains_5g - Config Param to change number of tx
- * chains per vdev for 5 ghz frequency connections
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of chains for eg:-
- * 0x01249249- change all vdev's tx num chains for 5ghz connection to 1 each
- * 0x02492492 - change all vdev's tx num chains for 5ghz connection to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_NUM_TX_CHAINS_5G CFG_INI_UINT( \
- "num_tx_chains_5g", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "num tx chains 5g")
- /*
- * <ini>
- * num_rx_chains_2g - Config Param to change number of rx
- * chains per vdev for 2.4 ghz frequency connections
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of chains for eg:-
- * 0x01249249 - change all vdev's rx num chains for 2.4ghz connections to 1 each
- * 0x02492492 - change all vdev's rx num chains for 2.4ghz connections to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_NUM_RX_CHAINS_2G CFG_INI_UINT( \
- "num_rx_chains_2g", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "num rx chains 2g")
- /*
- * <ini>
- * num_rx_chains_5g - Config Param to change number of rx
- * chains per vdev for 5 ghz frequency connections
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of chains for eg:-
- * 0x01249249 - change all vdev's rx num chains for 5ghz connections to 1 each
- * 0x02492492 - change all vdev's rx num chains for 5ghz connections to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_NUM_RX_CHAINS_5G CFG_INI_UINT( \
- "num_rx_chains_5g", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "num rx chains 5g")
- /*
- * <ini>
- * tx_nss_2g - Config Param to change tx nss
- * per vdev for 2.4ghz frequency connections
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of tx spatial streams for eg:-
- * 0x01249249 - change all vdev's tx nss for 2.4ghz connections to 1 each
- * 0x02492492 - change all vdev's tx nss for 2.4ghz connections to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_TX_NSS_2G CFG_INI_UINT( \
- "tx_nss_2g", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "tx nss 2.4ghz")
- /*
- * <ini>
- * tx_nss_5g - Config Param to change tx nss
- * per vdev for 5ghz frequency connections
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of tx spatial streams for eg:-
- * 0x01249249 - change all vdev's tx nss for 5ghz connections to 1 each
- * 0x02492492 - change all vdev's tx nss for 5ghz connections to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_TX_NSS_5G CFG_INI_UINT( \
- "tx_nss_5g", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "tx nss 5ghz")
- /*
- * <ini>
- * rx_nss_2g - Config Param to change rx nss
- * per vdev for 2.4ghz frequency connections
- *
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of rx spatial streams for eg:-
- * 0x01249249 - change all vdev's rx nss for 2.4ghz connections to 1 each
- * 0x02492492 - change all vdev's rx nss for 2.4ghz connections to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_RX_NSS_2G CFG_INI_UINT( \
- "rx_nss_2g", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "rx nss 2.4ghz")
- /*
- * <ini>
- * rx_nss_5g - Config Param to change rx nss
- * per vdev for 5ghz frequency connections
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of rx spatial streams for eg:-
- * 0x01249249 - change all vdev's rx nss for 5ghz connections to 1 each
- * 0x02492492 - change all vdev's rx nss for 5ghz connections to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_RX_NSS_5G CFG_INI_UINT( \
- "rx_nss_5g", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "rx nss 5ghz")
- /*
- * <ini>
- * num_tx_chains_11b - Config Param to change number of tx
- * chains per vdev for 2.4ghz 11b mode connections
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of chains for eg:-
- * 0x01249249 - change all vdev's num chains for 11b connections to 1 each
- * 0x02492492 - change all vdev's num chains for 11b connections to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_NUM_TX_CHAINS_11b CFG_INI_UINT( \
- "num_tx_chains_11b", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "num tx chains 11b")
- /*
- * <ini>
- * num_tx_chains_11g - Config Param to change number of tx
- * chains per vdev for 2.4ghz 11g mode connections
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of chains for eg:-
- * 0x01249249 - change all vdev's num chains for 11g connections to 1 each
- * 0x02492492 - change all vdev's num chains for 11g connections to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_NUM_TX_CHAINS_11g CFG_INI_UINT( \
- "num_tx_chains_11g", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "num tx chains 11g")
- /*
- * <ini>
- * num_tx_chains_11a - Config Param to change number of tx
- * chains per vdev for 5ghz 11a mode connections
- * @Min: 0x01249249
- * @Max: 0x02492492
- * @Default: 0x02492492
- *
- * This ini is used to change the num of chains for eg:-
- * 0x01249249 - change all vdev's num chains for 11a connections to 1 each
- * 0x02492492 - change all vdev's num chains for 11a connections to 2 each
- * Bits VDEV Type
- * BIT[0:2] STA
- * BIT[3:5] SAP
- * BIT[6:8] P2P GO
- * BIT[9:11] P2P Client
- * BIT[12:14] TDLS
- * BIT[15:17] IBSS
- * BIT[18:20] P2P device
- * BIT[21:23] OCB
- * BIT[24:26] NAN
- * BIT[27:31] Reserved
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_NUM_TX_CHAINS_11a CFG_INI_UINT( \
- "num_tx_chains_11a", \
- 0x01249249, \
- 0x02492492, \
- 0x02492492, \
- CFG_VALUE_OR_DEFAULT, \
- "num tx chains 11a")
- /*
- * <ini>
- * disable_tx_mrc_2g - Config Param to disable 2 chains in 1x1 nss mode
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_DISABLE_TX_MRC_2G CFG_INI_BOOL( \
- "disable_tx_mrc_2g", \
- 0, \
- "disable diversity gain tx 2g")
- /*
- * <ini>
- * disable_rx_mrc_2g - Config Param to disable 2 chains in 1x1 nss mode
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_DISABLE_RX_MRC_2G CFG_INI_BOOL( \
- "disable_rx_mrc_2g", \
- 0, \
- "disable diversity gain rx 2g")
- /*
- * <ini>
- * disable_tx_mrc_5g - Config Param to disable 2 chains in 1x1 nss mode
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_DISABLE_TX_MRC_5G CFG_INI_BOOL( \
- "disable_tx_mrc_5g", \
- 0, \
- "disable diversity gain tx 5g")
- /*
- * <ini>
- * disable_rx_mrc_5g - Config Param to disable 2 chains in 1x1 nss mode
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * Related: STA/SAP/P2P/IBSS/NAN.
- *
- * Supported Feature: Dynamic chainmask
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_DISABLE_RX_MRC_5G CFG_INI_BOOL( \
- "disable_rx_mrc_5g", \
- 0, \
- "disable diversity gain rx 5g")
- #define CFG_NSS_CHAINS_ALL \
- CFG(CFG_NUM_TX_CHAINS_2G) \
- CFG(CFG_NUM_TX_CHAINS_5G) \
- CFG(CFG_NUM_RX_CHAINS_2G) \
- CFG(CFG_NUM_RX_CHAINS_5G) \
- CFG(CFG_TX_NSS_5G) \
- CFG(CFG_TX_NSS_2G) \
- CFG(CFG_RX_NSS_5G) \
- CFG(CFG_RX_NSS_2G) \
- CFG(CFG_NUM_TX_CHAINS_11b) \
- CFG(CFG_NUM_TX_CHAINS_11g) \
- CFG(CFG_NUM_TX_CHAINS_11a) \
- CFG(CFG_DISABLE_TX_MRC_2G) \
- CFG(CFG_DISABLE_RX_MRC_2G) \
- CFG(CFG_DISABLE_TX_MRC_5G) \
- CFG(CFG_DISABLE_RX_MRC_5G)
- #endif /* __CFG_MLME_NSS_CHAINS */
|