123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- /*
- * Copyright (c) 2012-2019 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 configuration definitions for MLME REG.
- */
- #ifndef CFG_MLME_REG_H__
- #define CFG_MLME_REG_H__
- #define VALID_CHANNEL_LIST_DEFAULT "36, 40, 44, 48, 52, 56, 60, 64, 1, 6, 11, 34, 38, 42, 46, 2, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 151, 153, 155, 157, 159, 161, 50, 54, 58, 62, 240, 242, 244, 246, 248, 250, 252"
- /*
- * <ini>
- * gSelfGenFrmPwr - self-generated frame power in tx chain mask
- * for CCK rates
- * @Min: 0
- * @Max: 0xffff
- * @Default: 0
- *
- * gSelfGenFrmPwr is to set self-generated frame power in tx chain mask
- * for CCK rates
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_SELF_GEN_FRM_PWR CFG_INI_UINT( \
- "gSelfGenFrmPwr", \
- 0, \
- 0xffff, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "set the self gen power value")
- /*
- * <ini>
- * etsi13_srd_chan_in_master_mode - Enable/disable ETSI SRD channels in
- * master mode PCL and ACS functionality
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * etsi13_srd_chan_in_master_mode is to enable/disable ETSI SRD channels in
- * master mode PCL and ACS functionality
- *
- * Related: None
- *
- * Supported Feature: SAP/P2P-GO
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_ETSI13_SRD_CHAN_IN_MASTER_MODE CFG_INI_BOOL( \
- "etsi13_srd_chan_in_master_mode", \
- 0, \
- "enable/disable ETSI SRD channels in master mode")
- /*
- * <ini>
- * restart_beaconing_on_chan_avoid_event - control the beaconing entity to move
- * away from active LTE channels
- * @Min: 0
- * @Max: 2
- * @Default: 1
- *
- * This ini is used to control the beaconing entity (SAP/GO) to move away from
- * active LTE channels when channel avoidance event is received
- * restart_beaconing_on_chan_avoid_event=0: Don't allow beaconing entity move
- * from active LTE channels
- * restart_beaconing_on_chan_avoid_event=1: Allow beaconing entity move from
- * active LTE channels
- * restart_beaconing_on_chan_avoid_event=2: Allow beaconing entity move from
- * 2.4G active LTE channels only
- *
- * Related: None
- *
- * Supported Feature: channel avoidance
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_RESTART_BEACONING_ON_CH_AVOID CFG_INI_UINT( \
- "restart_beaconing_on_chan_avoid_event", \
- 0, \
- 2, \
- 1, \
- CFG_VALUE_OR_DEFAULT, \
- "control the beaconing entity to move away from active LTE channels")
- /*
- * <ini>
- * gindoor_channel_support - support to start sap in indoor channel
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is to support to start sap in indoor channel.
- * Customer can config this item to enable/disable sap in indoor channel
- *
- * Related: None
- *
- * Supported Feature: SAP
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_INDOOR_CHANNEL_SUPPORT CFG_INI_BOOL( \
- "gindoor_channel_support", \
- 0, \
- "enable/disable sap in indoor channel")
- /*
- * <ini>
- * scan_11d_interval - 11d scan interval in ms
- * @Min: 1 sec
- * @Max: 10 hr
- * @Default: 1 hr
- *
- * This ini sets the 11d scan interval in FW
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_SCAN_11D_INTERVAL CFG_INI_UINT( \
- "scan_11d_interval", \
- 1000, \
- 36000000, \
- 3600000, \
- CFG_VALUE_OR_DEFAULT, \
- "set the 11d scan interval in FW")
- /*
- * valid_chan_list - Configure valid channel list
- * @Min: 0
- * @Max: 256
- * @Default: 64
- *
- * This ini is used to configure the data max number of pre-auth
- *
- * Usage: Internal
- *
- */
- #define CFG_VALID_CHANNEL_LIST CFG_INI_STRING( \
- "valid_chan_list", \
- 0, \
- CFG_VALID_CHANNEL_LIST_STRING_LEN, \
- VALID_CHANNEL_LIST_DEFAULT, \
- "valid channel list")
- /*
- * max_num_pre_auth - Configure max number of pre-auth
- * @Min: 0
- * @Max: 256
- * @Default: 64
- *
- * This ini is used to configure the data max number of pre-auth
- *
- * Usage: Internal
- *
- */
- #define CFG_COUNTRY_CODE CFG_INI_STRING( \
- "country_code", \
- 0, \
- CFG_COUNTRY_CODE_LEN, \
- "", \
- "country code")
- #define CFG_REG_ALL \
- CFG(CFG_SELF_GEN_FRM_PWR) \
- CFG(CFG_ETSI13_SRD_CHAN_IN_MASTER_MODE) \
- CFG(CFG_RESTART_BEACONING_ON_CH_AVOID) \
- CFG(CFG_INDOOR_CHANNEL_SUPPORT) \
- CFG(CFG_SCAN_11D_INTERVAL) \
- CFG(CFG_VALID_CHANNEL_LIST) \
- CFG(CFG_COUNTRY_CODE)
- #endif /* CFG_MLME_REG_H__ */
|