qcacmn: Add the rssi dbm support param in dp soc

Update RSSI dbm support parameter in the dp soc
via CDP interface.

Change-Id: I1197d98eeb417361bb65ad6f3c0c777524c39c3b
CRs-Fixed: 3157372
This commit is contained in:
KARTHIK KUMAR T
2022-03-23 16:27:13 +05:30
committed by Madan Koyyalamudi
parent 4abe857789
commit ec906c0387
3 changed files with 9 additions and 0 deletions

View File

@@ -2754,6 +2754,7 @@ struct cdp_peer_hmwds_ast_add_status {
* Enumeration of cdp soc parameters * Enumeration of cdp soc parameters
* @DP_SOC_PARAM_EAPOL_OVER_CONTROL_PORT: For sending EAPOL's over control port * @DP_SOC_PARAM_EAPOL_OVER_CONTROL_PORT: For sending EAPOL's over control port
* @DP_SOC_PARAM_MULTI_PEER_GRP_CMD_SUPPORT: For sending bulk AST delete * @DP_SOC_PARAM_MULTI_PEER_GRP_CMD_SUPPORT: For sending bulk AST delete
* @DP_SOC_PARAM_RSSI_DBM_CONV_SUPPORT: To set the rssi dbm support bit
*/ */
enum cdp_soc_param_t { enum cdp_soc_param_t {
DP_SOC_PARAM_MSDU_EXCEPTION_DESC, DP_SOC_PARAM_MSDU_EXCEPTION_DESC,
@@ -2761,6 +2762,7 @@ enum cdp_soc_param_t {
DP_SOC_PARAM_MAX_AST_AGEOUT, DP_SOC_PARAM_MAX_AST_AGEOUT,
DP_SOC_PARAM_EAPOL_OVER_CONTROL_PORT, DP_SOC_PARAM_EAPOL_OVER_CONTROL_PORT,
DP_SOC_PARAM_MULTI_PEER_GRP_CMD_SUPPORT, DP_SOC_PARAM_MULTI_PEER_GRP_CMD_SUPPORT,
DP_SOC_PARAM_RSSI_DBM_CONV_SUPPORT,
DP_SOC_PARAM_MAX, DP_SOC_PARAM_MAX,
}; };

View File

@@ -11987,6 +11987,11 @@ static QDF_STATUS dp_soc_set_param(struct cdp_soc_t *soc_hdl,
dp_info("Multi Peer group command support:%d", dp_info("Multi Peer group command support:%d",
soc->multi_peer_grp_cmd_supported); soc->multi_peer_grp_cmd_supported);
break; break;
case DP_SOC_PARAM_RSSI_DBM_CONV_SUPPORT:
soc->features.rssi_dbm_conv_support = value;
dp_info("Rssi dbm converstion support:%u",
soc->features.rssi_dbm_conv_support);
break;
default: default:
dp_info("not handled param %d ", param); dp_info("not handled param %d ", param);
break; break;

View File

@@ -1821,10 +1821,12 @@ struct dp_arch_ops {
* @pn_in_reo_dest: PN provided by hardware in the REO destination ring. * @pn_in_reo_dest: PN provided by hardware in the REO destination ring.
* @dmac_cmn_src_rxbuf_ring_enabled: Flag to indicate DMAC mode common Rx * @dmac_cmn_src_rxbuf_ring_enabled: Flag to indicate DMAC mode common Rx
* buffer source rings * buffer source rings
* @rssi_dbm_conv_support: Rssi dbm converstion support param.
*/ */
struct dp_soc_features { struct dp_soc_features {
uint8_t pn_in_reo_dest:1, uint8_t pn_in_reo_dest:1,
dmac_cmn_src_rxbuf_ring_enabled:1; dmac_cmn_src_rxbuf_ring_enabled:1;
bool rssi_dbm_conv_support;
}; };
enum sysfs_printing_mode { enum sysfs_printing_mode {