qcacld-3.0: Add INI for TPE preference

When the TPE IE comes to driver, there could be information for both
local and regulatory. Add an INI for preference in the case that both
sets are present.

Change-Id: I4b37123569f422863fc805063974c65878a9baea
CRs-fixed: 2854774
This commit is contained in:
Lincoln Tran
2021-01-13 15:18:39 -08:00
کامیت شده توسط snandini
والد c6fcb33313
کامیت e0db05e0fd
5فایلهای تغییر یافته به همراه49 افزوده شده و 2 حذف شده

مشاهده پرونده

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2021 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
@@ -146,6 +146,27 @@
CFG_VALUE_OR_DEFAULT, \
"local power constraint")
/*
* <ini>
* use_local_tpe - use local or regulatory TPE
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to set the preference of local or regulatory TPE. If the
* preferred choice is not available, it will fall back on the other choice.
*
* Related: None
*
* Supported Feature: 6GHz channel transmit power
*
* Usage: External
*
* </ini>
*/
#define CFG_USE_LOCAL_TPE CFG_INI_BOOL("use_local_tpe", false, \
"use local or regulatory TPE")
#define CFG_MLME_POWER_ALL \
CFG(CFG_MAX_TX_POWER_2_4) \
CFG(CFG_MAX_TX_POWER_5) \
@@ -153,6 +174,7 @@
CFG(CFG_SET_TXPOWER_LIMIT2G) \
CFG(CFG_SET_TXPOWER_LIMIT5G) \
CFG(CFG_CURRENT_TX_POWER_LEVEL) \
CFG(CFG_LOCAL_POWER_CONSTRAINT)
CFG(CFG_LOCAL_POWER_CONSTRAINT) \
CFG(CFG_USE_LOCAL_TPE)
#endif /* __CFG_MLME_POWER_H */