123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480 |
- /*
- * 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_SAP_H
- #define __CFG_MLME_SAP_H
- #define CFG_SSID CFG_STRING( \
- "cfg_ssid", \
- 0, \
- 32, \
- "1,2,3,4,5,6,7,8,9,0", \
- "CFG_SSID")
- #define CFG_BEACON_INTERVAL CFG_INI_UINT( \
- "gBeaconInterval", \
- 0, \
- 65535, \
- 100, \
- CFG_VALUE_OR_DEFAULT, \
- "CFG_BEACON_INTERVAL")
- #define CFG_DTIM_PERIOD CFG_UINT( \
- "cfg_dtim_period", \
- 0, \
- 65535, \
- 1, \
- CFG_VALUE_OR_DEFAULT, \
- "CFG_DTIM_PERIOD")
- #define CFG_LISTEN_INTERVAL CFG_UINT( \
- "cfg_listen_interval", \
- 0, \
- 65535, \
- 1, \
- CFG_VALUE_OR_DEFAULT, \
- "CFG_LISTEN_INTERVAL")
- #define CFG_11G_ONLY_POLICY CFG_UINT( \
- "cfg_11g_only_policy", \
- 0, \
- 1, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "CFG_11G_ONLY_POLICY")
- #define CFG_ASSOC_STA_LIMIT CFG_UINT( \
- "cfg_beacon_interval", \
- 1, \
- 32, \
- 10, \
- CFG_VALUE_OR_DEFAULT, \
- "CFG_ASSOC_STA_LIMIT")
- /*
- * <ini>
- * cfg_enable_lte_coex - enable LTE COEX
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is used to enable LTE COEX
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_ENABLE_LTE_COEX CFG_INI_BOOL( \
- "gEnableLTECoex", \
- 0, \
- "enabled lte coex")
- #define CFG_RMC_ACTION_PERIOD_FREQUENCY CFG_UINT( \
- "cfg_rcm_action_period_frequency", \
- 100, \
- 1000, \
- 300, \
- CFG_VALUE_OR_DEFAULT, \
- "CFG_RMC_ACTION_PERIOD_FREQUENCY")
- /*
- * <ini>
- * cfg_rate_for_tx_mgmt - Set rate for tx mgmt
- * @Min: 0
- * @Max: 0xFF
- * @Default: 0xFF
- *
- * This ini is used to set rate for tx mgmt
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_RATE_FOR_TX_MGMT CFG_INI_UINT( \
- "gRateForTxMgmt", \
- 0, \
- 0xFF, \
- 0xFF, \
- CFG_VALUE_OR_DEFAULT, \
- "set rate for mgmt tx")
- /*
- * <ini>
- * cfg_rate_for_tx_mgmt_2g - Set rate for tx mgmt 2g
- * @Min: 0
- * @Max: 255
- * @Default: 255
- *
- * This ini is used to set rate for tx mgmt 2g
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_RATE_FOR_TX_MGMT_2G CFG_INI_UINT( \
- "gRateForTxMgmt2G", \
- 0, \
- 255, \
- 255, \
- CFG_VALUE_OR_DEFAULT, \
- "set rate for mgmt tx 2g")
- /*
- * <ini>
- * cfg_rate_for_tx_mgmt_5g - Set rate for tx mgmt 5g
- * @Min: 0
- * @Max: 255
- * @Default: 255
- *
- * This ini is used to set rate for tx mgmt 5g
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_RATE_FOR_TX_MGMT_5G CFG_INI_UINT( \
- "gRateForTxMgmt5G", \
- 0, \
- 255, \
- 255, \
- CFG_VALUE_OR_DEFAULT, \
- "set rate for mgmt tx 5g")
- /*
- * <ini>
- * gTelescopicBeaconWakeupEn - Set teles copic beacon wakeup
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is used to set default teles copic beacon wakeup
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_TELE_BCN_WAKEUP_EN CFG_INI_BOOL( \
- "gTelescopicBeaconWakeupEn", \
- 0, \
- "set tescopic beacon wakeup")
- /*
- * <ini>
- * telescopicBeaconMaxListenInterval - Set teles scopic beacon max listen value
- * @Min: 0
- * @Max: 7
- * @Default: 5
- *
- * This ini is used to set teles scopic beacon max listen interval value
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_TELE_BCN_MAX_LI CFG_INI_UINT( \
- "telescopicBeaconMaxListenInterval", \
- 0, \
- 7, \
- 5, \
- CFG_VALUE_OR_DEFAULT, \
- "set telescopic beacon max listen")
- /*
- * <ini>
- * gSapGetPeerInfo - Enable/Disable remote peer info query support
- * @Min: 0 - Disable remote peer info query support
- * @Max: 1 - Enable remote peer info query support
- * @Default: 0
- *
- * This ini is used to enable/disable remote peer info query support
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_SAP_GET_PEER_INFO CFG_INI_BOOL( \
- "gSapGetPeerInfo", \
- 0, \
- "sap get peer info")
- /*
- * <ini>
- * gSapAllowAllChannel - Sap allow all channels
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is used to allow all channels for SAP
- *
- * Related: None
- *
- * Supported Feature: SAP
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM CFG_INI_BOOL( \
- "gSapAllowAllChannel", \
- 0, \
- "sap allow all channel params")
- /*
- * <ini>
- * gSoftApMaxPeers - Set Max peers connected for SAP
- * @Min: 1
- * @Max: 32
- * @Default: 32
- *
- * This ini is used to set Max peers connected for SAP
- *
- * Related: None
- *
- * Supported Feature: SAP
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_SAP_MAX_NO_PEERS CFG_INI_UINT( \
- "gSoftApMaxPeers", \
- 1, \
- 32, \
- 32, \
- CFG_VALUE_OR_DEFAULT, \
- "max no of peers")
- /*
- * <ini>
- * gMaxOffloadPeers - Set max offload peers
- * @Min: 2
- * @Max: 5
- * @Default: 2
- *
- * This ini is used to set default teles copic beacon wakeup
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_SAP_MAX_OFFLOAD_PEERS CFG_INI_UINT( \
- "gMaxOffloadPeers", \
- 2, \
- 5, \
- 2, \
- CFG_VALUE_OR_DEFAULT, \
- "max offload peers")
- /*
- * <ini>
- * gMaxOffloadReorderBuffs - Set max offload reorder buffs
- * @Min: 0
- * @Max: 3
- * @Default: 2
- *
- * This ini is used to set max offload reorder buffs
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS CFG_INI_UINT( \
- "gMaxOffloadReorderBuffs", \
- 0, \
- 3, \
- 2, \
- CFG_VALUE_OR_DEFAULT, \
- "sap max offload reorder buffs")
- /*
- * <ini>
- * g_sap_chanswitch_beacon_cnt - Set channel switch beacon count
- * @Min: 1
- * @Max: 10
- * @Default: 10
- *
- * This ini is used to set channel switch beacon count
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_SAP_CH_SWITCH_BEACON_CNT CFG_INI_UINT( \
- "g_sap_chanswitch_beacon_cnt", \
- 1, \
- 10, \
- 10, \
- CFG_VALUE_OR_DEFAULT, \
- "set channel switch beacon count")
- /*
- * <ini>
- * g_sap_chanswitch_mode - channel switch mode
- * @Min: 0
- * @Max: 1
- * @Default: 1
- *
- * This ini is used to configure channel switch mode
- *
- * Related: none
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_SAP_CH_SWITCH_MODE CFG_INI_BOOL( \
- "g_sap_chanswitch_mode", \
- 1, \
- "sap channel switch mode")
- /*
- * <ini>
- * gEnableSapInternalRestart - Sap internal restart name
- * @Min: 0
- * @Max: 1
- * @Default: 1
- *
- * This ini is used for sap internal restart name
- *
- * Related: None
- *
- * Supported Feature: SAP
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_SAP_INTERNAL_RESTART CFG_INI_BOOL( \
- "gEnableSapInternalRestart", \
- 1, \
- "sap internal restart")
- /*
- * <ini>
- * gChanSwitchHostapdRateEnabled - Enable channale switch hostapd rate
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is used to enable channale switch hostapd rate
- *
- * Related: None
- *
- * Supported Feature: SAP
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_CHAN_SWITCH_HOSTAPD_RATE_ENABLED_NAME CFG_INI_BOOL( \
- "gChanSwitchHostapdRateEnabled", \
- 0, \
- "chan switch hostapd rate enabled")
- /*
- * gReducedBeaconInterval - beacon interval reduced
- * @Min: 0
- * @Max: 100
- * @Default: 0
- *
- * This ini is used to reduce beacon interval before channel
- * switch (when val great than 0, or the feature is disabled).
- * It would reduce the downtime on the STA side which is
- * waiting for beacons from the AP to resume back transmission.
- * Switch back the beacon_interval to its original value after
- * channel switch based on the timeout.
- *
- * Related: none
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_REDUCED_BEACON_INTERVAL CFG_INI_UINT( \
- "gReducedBeaconInterval", \
- 0, \
- 100, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "reduced beacon interval")
- #define CFG_SAP_ALL \
- CFG(CFG_SSID) \
- CFG(CFG_BEACON_INTERVAL) \
- CFG(CFG_DTIM_PERIOD) \
- CFG(CFG_LISTEN_INTERVAL) \
- CFG(CFG_11G_ONLY_POLICY) \
- CFG(CFG_ASSOC_STA_LIMIT) \
- CFG(CFG_ENABLE_LTE_COEX) \
- CFG(CFG_RMC_ACTION_PERIOD_FREQUENCY) \
- CFG(CFG_RATE_FOR_TX_MGMT) \
- CFG(CFG_RATE_FOR_TX_MGMT_2G) \
- CFG(CFG_RATE_FOR_TX_MGMT_5G) \
- CFG(CFG_TELE_BCN_WAKEUP_EN) \
- CFG(CFG_TELE_BCN_MAX_LI) \
- CFG(CFG_SAP_GET_PEER_INFO) \
- CFG(CFG_SAP_ALLOW_ALL_CHANNEL_PARAM) \
- CFG(CFG_SAP_MAX_NO_PEERS) \
- CFG(CFG_SAP_MAX_OFFLOAD_PEERS) \
- CFG(CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS) \
- CFG(CFG_SAP_CH_SWITCH_BEACON_CNT) \
- CFG(CFG_SAP_CH_SWITCH_MODE) \
- CFG(CFG_SAP_INTERNAL_RESTART) \
- CFG(CFG_CHAN_SWITCH_HOSTAPD_RATE_ENABLED_NAME) \
- CFG(CFG_REDUCED_BEACON_INTERVAL)
- #endif /* __CFG_MLME_SAP_H */
|