qcacmn: Configure MAWC roaming parameters to firmware
Get the MAWC based roaming parameters from CSR/WMA and pass them
to firmware
Change-Id: I78a287a39715dbabcceb2cb5c4270726ba265d61
CRs-Fixed: 2064837
diff --git a/wmi_unified_api.h b/wmi_unified_api.h
index a2ac701..9eef1d0 100644
--- a/wmi_unified_api.h
+++ b/wmi_unified_api.h
@@ -614,6 +614,19 @@
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 156776b..eb8030c 100644
--- a/wmi_unified_param.h
+++ b/wmi_unified_param.h
@@ -7415,4 +7415,22 @@
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 8b95f74..1c470e8 100644
--- a/wmi_unified_priv.h
+++ b/wmi_unified_priv.h
@@ -410,6 +410,9 @@
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);