qcacld-3.0: Add CFG/INI items to mlme component

Add following mlme CFG items to mlme component

1.CFG_RTS_THRESHOLD
2.CFG_FRAGMENTATION_THRESHOLD

Change-Id: I07b5dcffe8d3d03fa2cbecc7be563c407dc4d61e
CRs-Fixed: 2313600
Esse commit está contido em:
Harprit Chhabada
2018-09-10 10:21:15 -07:00
commit de nshrivas
commit bec6de418b
23 arquivos alterados com 383 adições e 191 exclusões

Ver arquivo

@@ -39,6 +39,7 @@
#include "cfg_mlme_sap.h"
#include "cfg_mlme_scoring.h"
#include "cfg_mlme_oce.h"
#include "cfg_mlme_threshold.h"
#include "cfg_mlme_feature_flag.h"
#include "cfg_mlme_wep_params.h"
@@ -61,6 +62,8 @@
CFG_SCORING_ALL \
CFG_STA_ALL \
CFG_VHT_CAPS_ALL \
CFG_WEP_PARAMS_ALL
CFG_WEP_PARAMS_ALL \
CFG_THRESHOLD_ALL \
CFG_VHT_CAPS_ALL
#endif /* __CFG_MLME_H */

Ver arquivo

@@ -0,0 +1,86 @@
/*
* 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_THRESHOLD_H
#define __CFG_MLME_THRESHOLD_H
#include "wni_cfg.h"
/*
* <ini>
* RTSThreshold - Will provide RTSThreshold
* @Min: 0
* @Max: 1048576
* @Default: 2347
*
* This ini is used to set default RTSThreshold
* If minimum value 0 is selectd then it will use always RTS
* max is the max frame size
*
* Related: None
*
* Supported Feature: STA
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_RTS_THRESHOLD CFG_INI_UINT( \
"RTSThreshold", \
0, \
1048576, \
2347, \
CFG_VALUE_OR_DEFAULT, \
"Default RTS Threshold")
/*
* <ini>
* gFragmentationThreshold - It will set fragmentation threshold
* @Min: 256
* @Max: 8000
* @Default: 8000
*
* This ini is used to indicate default fragmentation threshold
*
* Related: None
*
* Supported Feature: STA
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_FRAG_THRESHOLD CFG_INI_UINT( \
"gFragmentationThreshold", \
256, \
8000, \
8000, \
CFG_VALUE_OR_DEFAULT, \
"Default Fragmentation Threshold")
#define CFG_THRESHOLD_ALL \
CFG(CFG_RTS_THRESHOLD) \
CFG(CFG_FRAG_THRESHOLD)
#endif /* __CFG_MLME_MAIN_H */

Ver arquivo

@@ -329,6 +329,48 @@ QDF_STATUS wlan_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
QDF_STATUS wlan_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
bool *value);
/**
* wlan_mlme_get_rts_threshold() - Get the RTS threshold config
* @psoc: pointer to psoc object
* @value: pointer to the value which will be filled for the caller
*
* Return: QDF Status
*/
QDF_STATUS wlan_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
uint32_t *value);
/**
* wlan_mlme_set_rts_threshold() - Set the RTS threshold config
* @psoc: pointer to psoc object
* @value: Value that needs to be set from the caller
*
* Return: QDF Status
*/
QDF_STATUS wlan_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
uint32_t value);
/**
* wlan_mlme_get_frag_threshold() - Get the Fragmentation threshold
* config
* @psoc: pointer to psoc object
* @value: pointer to the value which will be filled for the caller
*
* Return: QDF Status
*/
QDF_STATUS wlan_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
uint32_t *value);
/**
* wlan_mlme_set_frag_threshold() - Set the Fragmentation threshold
* config
* @psoc: pointer to psoc object
* @value: Value that needs to be set from the caller
*
* Return: QDF Status
*/
QDF_STATUS wlan_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
uint32_t value);
/**
* wlan_mlme_get_fils_enabled_info() - Get the fils enable info for driver
* @psoc: pointer to psoc object

Ver arquivo

@@ -792,6 +792,15 @@ struct wlan_mlme_scoring_cfg {
uint32_t band_weight_per_index;
};
/* struct wlan_mlme_threshold - Threshold related config items
* @rts_threshold: set rts threshold
* @frag_threshold: set fragmentation threshold
*/
struct wlan_mlme_threshold {
uint32_t rts_threshold;
uint32_t frag_threshold;
};
/**
* struct wlan_mlme_oce - OCE related config items
* @enable_bcast_probe_rsp: enable broadcast probe response
@@ -847,6 +856,7 @@ struct wlan_mlme_wep_cfg {
* @sap_protection_cfg: SAP erp protection related CFG items
* @sta: sta CFG Items
* @scoring: BSS Scoring related CFG Items
* @threshold: threshold related cfg items
* @feature_flags: Feature flag config items
* @wep_params: WEP related config items
*/
@@ -867,6 +877,7 @@ struct wlan_mlme_cfg {
struct wlan_mlme_sta_cfg sta;
struct wlan_mlme_scoring_cfg scoring;
struct wlan_mlme_oce oce;
struct wlan_mlme_threshold threshold;
struct wlan_mlme_feature_flag feature_flags;
struct wlan_mlme_wep_cfg wep_params;
};

Ver arquivo

@@ -613,6 +613,71 @@ QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
}
/**
* ucfg_mlme_get_rts_threshold() - Get the rts threshold config
* @psoc: pointer to psoc object
* @value: pointer to the value which will be filled for the caller
*
* Inline UCFG API to be used by HDD/OSIF callers
*
* Return: QDF Status
*/
static inline
QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
uint32_t *value)
{
return wlan_mlme_get_rts_threshold(psoc, value);
}
/**
* ucfg_mlme_set_rts_threshold() - Set the rts threshold config
* @psoc: pointer to psoc object
* @value: pointer to the value which will be filled for the caller
*
* Inline UCFG API to be used by HDD/OSIF callers
*
* Return: QDF Status
*/
static inline
QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
uint32_t value)
{
return wlan_mlme_set_rts_threshold(psoc, value);
}
/**
* ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
* config
* @psoc: pointer to psoc object
* @value: Value that needs to be set from the caller
*
* Inline UCFG API to be used by HDD/OSIF callers
*
* Return: QDF Status
*/
static inline
QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
uint32_t *value)
{
return wlan_mlme_get_frag_threshold(psoc, value);
}
/**
* ucfg_mlme_set_frag_threshold() - set the frag threshold config
* @psoc: pointer to psoc object
* @value: pointer to the value which will be filled for the caller
*
* Inline UCFG API to be used by HDD/OSIF callers
*
* Return: QDF Status
*/
static inline
QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
uint32_t value)
{
return wlan_mlme_set_frag_threshold(psoc, value);
}
/**
* ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
*