qcacmn: Add support to RSSI DBm conversion API

Add WMI PSOC rssi Dbm conversion support service id.

Change-Id: I0fe9e7519926b26372a222529d66345e1a3c5655
CRs-Fixed: 3152182
This commit is contained in:
Shreedhar Parande
2022-03-16 13:50:51 +05:30
committed by Madan Koyyalamudi
parent 37d7d4bed0
commit 1758b401e1
3 changed files with 27 additions and 0 deletions

View File

@@ -66,6 +66,24 @@ init_deinit_update_p2p_p2p_conc_support(struct wmi_unified *wmi_handle,
{} {}
#endif #endif
#ifdef QCA_RSSI_DB2DBM
static void
init_deinit_update_rssi_dbm_conv_support(struct wmi_unified *wmi_handle,
struct wlan_objmgr_psoc *psoc)
{
/* Send RSSI_DBM_CONV to DP layer */
if (wmi_service_enabled(wmi_handle,
wmi_service_pdev_rssi_dbm_conv_event_support))
cdp_soc_set_param(wlan_psoc_get_dp_handle(psoc),
DP_SOC_PARAM_RSSI_DBM_CONV_SUPPORT, 1);
}
#else
static inline void
init_deinit_update_rssi_dbm_conv_support(struct wmi_unified *wmi_handle,
struct wlan_objmgr_psoc *psoc)
{}
#endif
static int init_deinit_service_ready_event_handler(ol_scn_t scn_handle, static int init_deinit_service_ready_event_handler(ol_scn_t scn_handle,
uint8_t *event, uint8_t *event,
uint32_t data_len) uint32_t data_len)
@@ -271,6 +289,8 @@ static int init_deinit_service_ready_event_handler(ol_scn_t scn_handle,
cdp_soc_set_param(wlan_psoc_get_dp_handle(psoc), cdp_soc_set_param(wlan_psoc_get_dp_handle(psoc),
DP_SOC_PARAM_MULTI_PEER_GRP_CMD_SUPPORT, 1); DP_SOC_PARAM_MULTI_PEER_GRP_CMD_SUPPORT, 1);
init_deinit_update_rssi_dbm_conv_support(wmi_handle, psoc);
if (wmi_service_enabled(wmi_handle, wmi_service_ext_msg)) { if (wmi_service_enabled(wmi_handle, wmi_service_ext_msg)) {
target_if_debug("Wait for EXT message"); target_if_debug("Wait for EXT message");
} else { } else {

View File

@@ -5579,6 +5579,9 @@ typedef enum {
wmi_service_radar_found_chan_freq_eq_center_freq, wmi_service_radar_found_chan_freq_eq_center_freq,
#endif #endif
wmi_service_pn_replay_check_support, wmi_service_pn_replay_check_support,
#ifdef QCA_RSSI_DB2DBM
wmi_service_pdev_rssi_dbm_conv_event_support,
#endif
wmi_services_max, wmi_services_max,
} wmi_conv_service_ids; } wmi_conv_service_ids;
#define WMI_SERVICE_UNAVAILABLE 0xFFFF #define WMI_SERVICE_UNAVAILABLE 0xFFFF

View File

@@ -18750,6 +18750,10 @@ static void populate_tlv_service(uint32_t *wmi_service)
#endif #endif
wmi_service[wmi_service_pn_replay_check_support] = wmi_service[wmi_service_pn_replay_check_support] =
WMI_SERVICE_PN_REPLAY_CHECK_SUPPORT; WMI_SERVICE_PN_REPLAY_CHECK_SUPPORT;
#ifdef QCA_RSSI_DB2DBM
wmi_service[wmi_service_pdev_rssi_dbm_conv_event_support] =
WMI_SERVICE_PDEV_RSSI_DBM_CONV_EVENT_SUPPORT;
#endif
} }
/** /**