qcacld-3.0: Add OFDM Scrambler seed ini support

Add "gEnableUpdateScramSeed" ini support to send
WMI_PDEV_PARAM_EN_UPDATE_SCRAM_SEED command to firmware
to enable OFDM scrambler seed.

Change-Id: Ie5c244a7ea418eec0af1f576e8521804ee85a665
CRs-Fixed: 3106348
这个提交包含在:
VIJAY RAJ
2022-02-01 21:22:21 +05:30
提交者 Madan Koyyalamudi
父节点 73a8b41fd9
当前提交 3d11cb41da
修改 8 个文件,包含 127 行新增1 行删除

查看文件

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -65,6 +66,28 @@
0, \
"Set rts for sifs bursting")
#ifdef WLAN_FEATURE_OFDM_SCRAMBLER_SEED
/*
* <ini>
* gEnableUpdateScramSeed - Enable/Disable OFDM scambler seed
* @Min: 0
* @Max: 1
* @Default: 0
*
* Usage: External
*
* </ini>
*/
#define CFG_ENABLE_OFDM_SCRAMBLER_SEED CFG_INI_BOOL( \
"gEnableUpdateScramSeed", \
false, \
"Enable OFDM Scrambler Seed")
#define ENABLE_OFDM_SCRAMBLER_SEED CFG(CFG_ENABLE_OFDM_SCRAMBLER_SEED)
#else
#define ENABLE_OFDM_SCRAMBLER_SEED
#endif
/*
* <ini>
* sifs_burst_mask - Set sifs burst mask
@@ -897,6 +920,7 @@
CFG(CFG_ENABLE_FW_WOW_MODULE_LOG_LEVEL) \
CFG(CFG_SAP_SHO_CONFIG) \
CFG(CFG_DISABLE_HW_ASSIST) \
CFG(CFG_ENABLE_PCI_GEN)
CFG(CFG_ENABLE_PCI_GEN) \
ENABLE_OFDM_SCRAMBLER_SEED
#endif

查看文件

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -491,6 +492,26 @@ bool ucfg_fwol_get_gcmp_enable(struct wlan_objmgr_psoc *psoc);
QDF_STATUS ucfg_fwol_get_enable_tx_sch_delay(struct wlan_objmgr_psoc *psoc,
uint8_t *enable_tx_sch_delay);
#ifdef WLAN_FEATURE_OFDM_SCRAMBLER_SEED
/**
* ucfg_fwol_get_ofdm_scrambler_seed() - Assigns enable_ofdm_scrambler_seed
* @psoc: pointer to psoc object
* @enable_ofdm_scrambler_seed: Pointer to return enable_ofdm_scrambler_seed
* value
*
* Return: QDF_STATUS_SUCCESS - in case of success
*/
QDF_STATUS ucfg_fwol_get_ofdm_scrambler_seed(struct wlan_objmgr_psoc *psoc,
bool *enable_ofdm_scrambler_seed);
#else
static inline QDF_STATUS ucfg_fwol_get_ofdm_scrambler_seed(
struct wlan_objmgr_psoc *psoc,
bool *enable_ofdm_scrambler_seed)
{
return QDF_STATUS_SUCCESS;
}
#endif
/**
* ucfg_fwol_get_enable_secondary_rate() - Get enable secondary rate
* @psoc: pointer to the psoc object

查看文件

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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
@@ -792,6 +793,26 @@ QDF_STATUS ucfg_fwol_get_enable_tx_sch_delay(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_SUCCESS;
}
#ifdef WLAN_FEATURE_OFDM_SCRAMBLER_SEED
QDF_STATUS ucfg_fwol_get_ofdm_scrambler_seed(struct wlan_objmgr_psoc *psoc,
bool *enable_ofdm_scrambler_seed)
{
struct wlan_fwol_psoc_obj *fwol_obj;
fwol_obj = fwol_get_psoc_obj(psoc);
if (!fwol_obj) {
*enable_ofdm_scrambler_seed =
cfg_default(CFG_ENABLE_OFDM_SCRAMBLER_SEED);
return QDF_STATUS_E_FAILURE;
}
*enable_ofdm_scrambler_seed =
fwol_obj->cfg.enable_ofdm_scrambler_seed;
return QDF_STATUS_SUCCESS;
}
#endif
QDF_STATUS ucfg_fwol_get_enable_secondary_rate(struct wlan_objmgr_psoc *psoc,
uint32_t *enable_secondary_rate)
{