qcacmn: update for new wmi cmd and evt

Support WMI command/events to dynamically enable/disable calibration in FW
command: set_halphy_cal
command usage: cfg80211tool set_halphy_cal <<value>> <<channel>>
value: bitmap value to be passed ( 0 - 1023)
channel: 0 (home), 1 (scan), 2 (both)

Change-Id: I1d3ab39cf24d0880bf5feac5749b5a93e6d03761
This commit is contained in:
Naveen S
2021-08-05 19:40:19 +05:30
committed by Madan Koyyalamudi
parent c9c8ccb8cb
commit d73851c8e5
5 changed files with 193 additions and 0 deletions

View File

@@ -4683,6 +4683,7 @@ typedef enum {
wmi_vdev_smart_monitor_event_id,
#endif
wmi_pdev_get_halphy_cal_status_event_id,
wmi_pdev_set_halphy_cal_event_id,
wmi_pdev_aoa_phasedelta_event_id,
wmi_events_max,
} wmi_conv_event_id;
@@ -5273,6 +5274,7 @@ typedef enum {
#endif
wmi_service_sae_eapol_offload_support,
wmi_service_ampdu_tx_buf_size_256_support,
wmi_service_halphy_cal_enable_disable_support,
wmi_service_halphy_cal_status,
wmi_service_rtt_ap_initiator_staggered_mode_supported,
wmi_service_rtt_ap_initiator_bursted_mode_supported,
@@ -8078,6 +8080,32 @@ struct wmi_host_pdev_get_halphy_cal_status_event {
uint32_t halphy_cal_status;
};
/**
* enum wmi_host_set_halphy_cal_chan_sel - channel select values for
* set halphy cal
* @WMI_HOST_SET_HALPHY_CAL_HOME_CHANNEL: Home channel
* @WMI_HOST_SET_HALPHY_CAL_SCAN_CHANNEL: Scan channel
* @WMI_HOST_SET_HALPHY_CAL_BOTH_CHANNELS: Both (Home + Scan) channels
*/
enum wmi_host_set_halphy_cal_chan_sel {
WMI_HOST_SET_HALPHY_CAL_HOME_CHANNEL = 0,
WMI_HOST_SET_HALPHY_CAL_SCAN_CHANNEL = 1,
WMI_HOST_SET_HALPHY_CAL_BOTH_CHANNELS = 2,
};
/**
* struct wmi_host_send_set_halphy_cal_info
* @pdev_id: pdev id
* @value: bmap value
* @chan_Sel: channel for calibration - HOME/SCAN/BOTH
*/
struct wmi_host_send_set_halphy_cal_info {
uint8_t pdev_id;
uint32_t value;
enum wmi_host_set_halphy_cal_chan_sel chan_sel;
};
/**
* struct wmi_install_key_comp_event - params of install key complete event
* @vdev_id: unique id identifying the VDEV, generated by the caller
@@ -8094,4 +8122,25 @@ struct wmi_install_key_comp_event {
uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
};
/**
* wmi_host_set_halphy_cal_status - status values from
* WMI_PDEV_SET_HALPHY_CAL_BMAP_EVENTID
* @WMI_HOST_SET_HALPHY_CAL_STATUS_SUCCESS: set halphy cal success
* @WMI_HOST_SET_HALPHY_CAL_STATUS_FAIL: set halphy cal failure
*/
enum wmi_host_set_halphy_cal_status {
WMI_HOST_SET_HALPHY_CAL_STATUS_SUCCESS = 0,
WMI_HOST_SET_HALPHY_CAL_STATUS_FAIL = 1,
};
/**
* struct wmi_host_send_set_halphy_cal_event
* @pdev_id: pdev id
* @status: PASS/FAIL
*/
struct wmi_host_pdev_set_halphy_cal_event {
uint32_t pdev_id;
enum wmi_host_set_halphy_cal_status status;
};
#endif /* _WMI_UNIFIED_PARAM_H_ */