diff --git a/wmi_unified_api.h b/wmi_unified_api.h index a2ac7018e5..9eef1d0466 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -614,6 +614,19 @@ QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(void *wmi_hdl, struct roam_offload_scan_params *roam_req); #endif +/** + * wmi_unified_roam_mawc_params_cmd() - configure roaming MAWC parameters + * @wmi_hdl: wmi handle + * @params: Parameters to be configured + * + * Pass the MAWC(Motion Aided wireless connectivity) related roaming + * parameters from the host to the target + * + * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure + */ +QDF_STATUS wmi_unified_roam_mawc_params_cmd(void *wmi_hdl, + struct wmi_mawc_roam_params *params); + QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(void *wmi_hdl, struct roam_offload_scan_rssi_params *roam_req); diff --git a/wmi_unified_param.h b/wmi_unified_param.h index 156776b9a4..eb8030c78c 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -7415,4 +7415,22 @@ struct wmi_limit_off_chan_param { bool skip_dfs_chans; }; +/** + * struct wmi_mawc_roam_params - Motion Aided wireless connectivity params + * @vdev_id: VDEV on which the parameters should be applied + * @enable: MAWC roaming feature enable/disable + * @traffic_load_threshold: Traffic threshold in kBps for MAWC roaming + * @best_ap_rssi_threshold: AP RSSI Threshold for MAWC roaming + * @rssi_stationary_high_adjust: High RSSI adjustment value to suppress scan + * @rssi_stationary_low_adjust: Low RSSI adjustment value to suppress scan + */ +struct wmi_mawc_roam_params { + uint8_t vdev_id; + bool enable; + uint32_t traffic_load_threshold; + uint32_t best_ap_rssi_threshold; + uint8_t rssi_stationary_high_adjust; + uint8_t rssi_stationary_low_adjust; +}; + #endif /* _WMI_UNIFIED_PARAM_H_ */ diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 8b95f74fb2..1c470e8bb4 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -410,6 +410,9 @@ QDF_STATUS (*send_reset_passpoint_network_list_cmd)(wmi_unified_t wmi_handle, QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle, struct roam_offload_scan_rssi_params *roam_req); +QDF_STATUS (*send_roam_mawc_params_cmd)(wmi_unified_t wmi_handle, + struct wmi_mawc_roam_params *params); + QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle, struct roam_scan_filter_params *roam_req);