
Keep the ini "p2p_go_on_5ghz_indoor_chan" disabled by default. Change-Id: If6a4b1a62959299aa5fceb5342571912c5e72c9b CRs-Fixed: 3540166
158 lines
3.6 KiB
C
158 lines
3.6 KiB
C
/*
|
|
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. 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.
|
|
*/
|
|
|
|
#if !defined(CONFIG_P2P_H__)
|
|
#define CONFIG_P2P_H__
|
|
|
|
#include "cfg_define.h"
|
|
#include "cfg_converged.h"
|
|
#include "qdf_types.h"
|
|
|
|
/*
|
|
* <ini>
|
|
* gGoKeepAlivePeriod - P2P GO keep alive period.
|
|
* @Min: 1
|
|
* @Max: 65535
|
|
* @Default: 20
|
|
*
|
|
* This is P2P GO keep alive period.
|
|
*
|
|
* Related: None.
|
|
*
|
|
* Supported Feature: P2P
|
|
*
|
|
* Usage: External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_GO_KEEP_ALIVE_PERIOD CFG_INI_UINT( \
|
|
"gGoKeepAlivePeriod", \
|
|
1, \
|
|
65535, \
|
|
20, \
|
|
CFG_VALUE_OR_DEFAULT, \
|
|
"P2P GO keep alive period")
|
|
|
|
/*
|
|
* <ini>
|
|
* gGoLinkMonitorPeriod - period where link is idle and where
|
|
* we send NULL frame
|
|
* @Min: 3
|
|
* @Max: 50
|
|
* @Default: 10
|
|
*
|
|
* This is period where link is idle and where we send NULL frame for P2P GO.
|
|
*
|
|
* Related: None.
|
|
*
|
|
* Supported Feature: P2P
|
|
*
|
|
* Usage: External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_GO_LINK_MONITOR_PERIOD CFG_INI_UINT( \
|
|
"gGoLinkMonitorPeriod", \
|
|
3, \
|
|
50, \
|
|
10, \
|
|
CFG_VALUE_OR_DEFAULT, \
|
|
"period where link is idle and where we send NULL frame")
|
|
|
|
/*
|
|
* <ini>
|
|
* isP2pDeviceAddrAdministrated - Enables to derive the P2P MAC address from
|
|
* the primary MAC address
|
|
* @Min: 0
|
|
* @Max: 1
|
|
* @Default: 1
|
|
*
|
|
* This ini is used to enable/disable to derive the P2P MAC address from the
|
|
* primary MAC address.
|
|
*
|
|
* Related: None.
|
|
*
|
|
* Supported Feature: P2P
|
|
*
|
|
* Usage: External
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED CFG_INI_BOOL( \
|
|
"isP2pDeviceAddrAdministrated", \
|
|
1, \
|
|
"derive the P2P MAC address from the primary MAC address")
|
|
|
|
/*
|
|
* <ini>
|
|
* action_frame_random_seq_num_enabled - Enables random sequence number
|
|
* generation for action frames
|
|
* @Min: 0
|
|
* @Max: 1
|
|
* @Default: 1
|
|
*
|
|
* This ini is used to enable/disable random sequence number generation for
|
|
* action frames.
|
|
*
|
|
* Related: None.
|
|
*
|
|
* Supported Feature: P2P
|
|
*
|
|
* Usage: external
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_ACTION_FRAME_RANDOM_SEQ_NUM_ENABLED CFG_INI_BOOL( \
|
|
"action_frame_random_seq_num_enabled", \
|
|
1, \
|
|
"Enable random seq nums for action frames")
|
|
|
|
/*
|
|
* <ini>
|
|
* p2p_go_on_5ghz_indoor_chan - Allow P2P GO to operate on 5 GHz indoor channels
|
|
*
|
|
* @Min: 0
|
|
* @Max: 1
|
|
* @Default: 0
|
|
*
|
|
* This ini is used to enable/disable P2P-GO operation on 5 GHz
|
|
* indoor channels.
|
|
*
|
|
* Related: sta_sap_scc_on_indoor_channel, gindoor_channel_support
|
|
*
|
|
* Supported Feature: P2P GO
|
|
*
|
|
* Usage: external
|
|
*
|
|
* </ini>
|
|
*/
|
|
#define CFG_P2P_GO_ON_5GHZ_INDOOR_CHANNEL CFG_INI_BOOL(\
|
|
"p2p_go_on_5ghz_indoor_chan", \
|
|
0, \
|
|
"Allow P2P GO on 5 GHz indoor channels")
|
|
|
|
#define CFG_P2P_ALL \
|
|
CFG(CFG_ACTION_FRAME_RANDOM_SEQ_NUM_ENABLED) \
|
|
CFG(CFG_GO_KEEP_ALIVE_PERIOD) \
|
|
CFG(CFG_GO_LINK_MONITOR_PERIOD) \
|
|
CFG(CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED) \
|
|
CFG(CFG_P2P_GO_ON_5GHZ_INDOOR_CHANNEL)
|
|
|
|
#endif
|