qcacmn: Add support to send/receive ani level command

Currently the driver doesnot support the sending and receiving of the
ani level from the firmware.

Add WMI and driver framework support to fetch the ani level.

Change-Id: Ib8271a2b7f62bafb22429113fbfb405cc81379ed
CRs-Fixed: 2554677
This commit is contained in:
Sourav Mohapatra
2019-10-23 10:01:18 +05:30
committed by nshrivas
parent 337cb1cb88
commit 328db7c79c
5 changed files with 176 additions and 0 deletions

View File

@@ -4543,6 +4543,7 @@ typedef enum {
wmi_get_elna_bypass_event_id,
wmi_motion_det_host_eventid,
wmi_motion_det_base_line_host_eventid,
wmi_get_ani_level_event_id,
wmi_events_max,
} wmi_conv_event_id;
@@ -7846,4 +7847,17 @@ struct wmi_rx_pkt_protocol_routing_info {
uint32_t meta_data;
};
#endif /* WLAN_SUPPORT_RX_PROTOCOL_TYPE_TAG */
#ifdef FEATURE_ANI_LEVEL_REQUEST
/* Maximum number of freqs for which ANI level can be requested */
#define MAX_NUM_FREQS_FOR_ANI_LEVEL 20
/* A valid ANI level lies between 0 to 9 */
#define MAX_ANI_LEVEL 9
struct wmi_host_ani_level_event {
uint32_t chan_freq;
uint32_t ani_level;
};
#endif /* FEATURE_ANI_LEVEL_REQUEST */
#endif /* _WMI_UNIFIED_PARAM_H_ */