Sfoglia il codice sorgente

qcacmn: wmi changes to send bss load trigger config to firmware

Populate the load bss trigger configuration values based on the
ini values and send them to firmware.

Add wmi changes to send bss load trigger config to firmware.

Change-Id: Ib2e21904bc7b8d87e5f51824d2694b90a3ac53f2
CRs-Fixed: 2367773
Pragaspathi Thilagaraj 6 anni fa
parent
commit
ba0afeda9a
3 ha cambiato i file con 23 aggiunte e 0 eliminazioni
  1. 3 0
      wmi_unified_priv.h
  2. 10 0
      wmi_unified_roam_api.h
  3. 10 0
      wmi_unified_roam_param.h

+ 3 - 0
wmi_unified_priv.h

@@ -574,6 +574,9 @@ QDF_STATUS (*send_offload_11k_cmd)(wmi_unified_t wmi_handle,
 QDF_STATUS (*send_invoke_neighbor_report_cmd)(wmi_unified_t wmi_handle,
 		struct wmi_invoke_neighbor_report_params *params);
 
+QDF_STATUS (*send_roam_bss_load_config)(wmi_unified_t wmi_handle,
+					struct wmi_bss_load_config *params);
+
 QDF_STATUS (*send_btm_config)(wmi_unified_t wmi_handle,
 			      struct wmi_btm_config *params);
 

+ 10 - 0
wmi_unified_roam_api.h

@@ -298,6 +298,16 @@ QDF_STATUS wmi_unified_roam_send_hlp_cmd(void *wmi_hdl,
 QDF_STATUS wmi_unified_send_btm_config(void *wmi_hdl,
 				       struct wmi_btm_config *params);
 
+/**
+ * wmi_unified_send_bss_load_config() - Send bss load trigger params to fw
+ * @wmi_hdl:  wmi handle
+ * @params: pointer to wmi_bss_load_config
+ *
+ * Return: QDF_STATUS
+ */
+QDF_STATUS wmi_unified_send_bss_load_config(void *wmi_hdl,
+					    struct wmi_bss_load_config *params);
+
 /**
  * wmi_unified_offload_11k_cmd() - send 11k offload command
  * @wmi_hdl: wmi handle

+ 10 - 0
wmi_unified_roam_param.h

@@ -524,6 +524,16 @@ struct wmi_btm_config {
 	uint32_t btm_sticky_time;
 };
 
+/**
+ * struct wmi_bss_load_config - BSS load trigger parameters
+ * @vdev_id: VDEV on which the parameters should be applied
+ * @bss_load_threshold: BSS load threshold after which roam scan should trigger
+ */
+struct wmi_bss_load_config {
+	uint32_t vdev_id;
+	uint32_t bss_load_threshold;
+};
+
 /**
  * @time_offset: time offset after 11k offload command to trigger a neighbor
  *	report request (in seconds)