qcacmn: Add support to handle wmi smart monitor event
Add functions to parse and extract wmi smart monitor event received from target. Change-Id: Ic18e3134b684c5f8e12839e997d628909a7e27c9 CRs-Fixed: 2969247
此提交包含在:
@@ -14716,6 +14716,36 @@ extract_vdev_mgmt_offload_event_tlv(void *handle, void *evt_buf,
|
||||
}
|
||||
#endif /* WLAN_FEATURE_PKT_CAPTURE */
|
||||
|
||||
#ifdef WLAN_FEATURE_PKT_CAPTURE_V2
|
||||
static QDF_STATUS
|
||||
extract_smart_monitor_event_tlv(void *handle, void *evt_buf,
|
||||
struct smu_event_params *params)
|
||||
{
|
||||
WMI_VDEV_SMART_MONITOR_EVENTID_param_tlvs *param_buf = NULL;
|
||||
wmi_vdev_smart_monitor_event_fixed_param *smu_event = NULL;
|
||||
|
||||
param_buf = (WMI_VDEV_SMART_MONITOR_EVENTID_param_tlvs *)evt_buf;
|
||||
if (!param_buf) {
|
||||
wmi_err("Invalid smart monitor event");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
smu_event = param_buf->fixed_param;
|
||||
if (!smu_event) {
|
||||
wmi_err("smart monitor event fixed param is NULL");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
params->vdev_id = smu_event->vdev_id;
|
||||
if (params->vdev_id >= WLAN_UMAC_PDEV_MAX_VDEVS)
|
||||
return QDF_STATUS_E_INVAL;
|
||||
|
||||
params->rx_avg_rssi = smu_event->avg_rssi_data_dbm;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif /* WLAN_FEATURE_PKT_CAPTURE_V2 */
|
||||
|
||||
#ifdef FEATURE_WLAN_TIME_SYNC_FTM
|
||||
/**
|
||||
* send_wlan_ts_ftm_trigger_cmd_tlv(): send wlan time sync cmd to FW
|
||||
@@ -15448,6 +15478,9 @@ struct wmi_ops tlv_ops = {
|
||||
#ifdef WLAN_FEATURE_PKT_CAPTURE
|
||||
.extract_vdev_mgmt_offload_event = extract_vdev_mgmt_offload_event_tlv,
|
||||
#endif
|
||||
#ifdef WLAN_FEATURE_PKT_CAPTURE_V2
|
||||
.extract_smart_monitor_event = extract_smart_monitor_event_tlv,
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_WLAN_TIME_SYNC_FTM
|
||||
.send_wlan_time_sync_ftm_trigger_cmd = send_wlan_ts_ftm_trigger_cmd_tlv,
|
||||
@@ -15878,6 +15911,10 @@ event_ids[wmi_roam_scan_chan_list_id] =
|
||||
WMI_VDEV_SEND_BIG_DATA_P2_EVENTID;
|
||||
event_ids[wmi_pdev_get_dpd_status_event_id] =
|
||||
WMI_PDEV_GET_DPD_STATUS_EVENTID;
|
||||
#ifdef WLAN_FEATURE_PKT_CAPTURE_V2
|
||||
event_ids[wmi_vdev_smart_monitor_event_id] =
|
||||
WMI_VDEV_SMART_MONITOR_EVENTID;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
|
||||
|
新增問題並參考
封鎖使用者