qcacld-3.0: Refactor CFG_ENABLE_DFS_MASTER_CAPABILITY cfg
Refactor CFG_ENABLE_DFS_MASTER_CAPABILITY cfg item.
Change-Id: I19b52c6848bd04feca4213aad64138d5c55b9a1f
CRs-Fixed: 2327917
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "cfg_mlme_he_caps.h"
|
||||
#include "cfg_mlme_lfr.h"
|
||||
#include "cfg_mlme_obss_ht40.h"
|
||||
#include "cfg_mlme_dfs.h"
|
||||
#include "cfg_mlme_mbo.h"
|
||||
#include "cfg_mlme_vht_caps.h"
|
||||
#include "cfg_qos.h"
|
||||
@@ -51,6 +52,7 @@
|
||||
#define CFG_MLME_ALL \
|
||||
CFG_ACS_ALL \
|
||||
CFG_CHAINMASK_ALL \
|
||||
CFG_DFS_ALL \
|
||||
CFG_EDCA_PARAMS_ALL \
|
||||
CFG_FEATURE_FLAG_ALL \
|
||||
CFG_GENERIC_ALL \
|
||||
|
52
mlme/dispatcher/inc/cfg_mlme_dfs.h
Normal file
52
mlme/dispatcher/inc/cfg_mlme_dfs.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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_DFS_H
|
||||
#define __CFG_MLME_DFS_H
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gEnableDFSMasterCap - Enable DFS master capability
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 0
|
||||
*
|
||||
* This ini is used to enable/disable the DFS master capability.
|
||||
* Disabling it will cause driver to not advertise the spectrum
|
||||
* management capability
|
||||
* Related: NA.
|
||||
*
|
||||
* upported Feature: DFS
|
||||
*
|
||||
* Usage: Internal/External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_ENABLE_DFS_MASTER_CAPABILITY CFG_INI_BOOL( \
|
||||
"gEnableDFSMasterCap", \
|
||||
0, \
|
||||
"DFS master mode capability")
|
||||
|
||||
#define CFG_DFS_ALL \
|
||||
CFG(CFG_ENABLE_DFS_MASTER_CAPABILITY)
|
||||
|
||||
#endif /* __CFG_MLME_DFS_H */
|
@@ -266,6 +266,14 @@ struct wlan_mlme_cfg_sap {
|
||||
uint8_t reduced_beacon_interval;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wlan_mlme_dfs_cfg - DFS Capabilities related config items
|
||||
* @dfs_master_capable: Is DFS master mode support enabled
|
||||
*/
|
||||
struct wlan_mlme_dfs_cfg {
|
||||
bool dfs_master_capable;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wlan_mlme_mbo - Multiband Operation related ini configs
|
||||
* @mbo_candidate_rssi_thres:
|
||||
@@ -1096,6 +1104,7 @@ struct wlan_mlme_wep_cfg {
|
||||
* @qos_mlme_params: QOS CFG Items
|
||||
* @rates: Rates related cfg items
|
||||
* @product_details: product details related CFG Items
|
||||
* @dfs_cfg: DFS related CFG Items
|
||||
* @sap_protection_cfg: SAP erp protection related CFG items
|
||||
* @sap_cfg: sap CFG items
|
||||
* @sta: sta CFG Items
|
||||
@@ -1121,6 +1130,7 @@ struct wlan_mlme_cfg {
|
||||
struct wlan_mlme_qos qos_mlme_params;
|
||||
struct wlan_mlme_rates rates;
|
||||
struct wlan_mlme_product_details_cfg product_details;
|
||||
struct wlan_mlme_dfs_cfg dfs_cfg;
|
||||
struct wlan_mlme_sap_protection sap_protection_cfg;
|
||||
struct wlan_mlme_cfg_sap sap_cfg;
|
||||
struct wlan_mlme_sta_cfg sta;
|
||||
|
@@ -524,6 +524,17 @@ QDF_STATUS
|
||||
ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
|
||||
uint32_t *val);
|
||||
|
||||
/*
|
||||
* ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability
|
||||
* @psoc: pointer to psoc object
|
||||
* @val: Pointer to the value which will be filled for the caller
|
||||
*
|
||||
* Return: QDF Status
|
||||
*/
|
||||
QDF_STATUS
|
||||
ucfg_mlme_get_dfs_master_capability(struct wlan_objmgr_psoc *psoc,
|
||||
bool *val);
|
||||
|
||||
/**
|
||||
* ucfg_mlme_get_pmkid_modes() - Get PMKID modes
|
||||
* @psoc: pointer to psoc object
|
||||
|
Reference in New Issue
Block a user