Procházet zdrojové kódy

qcacmn: Add support for WMI_COEX_CONFIG command

Add support in WMI layer to configure coex config command for
lithium based chipsets

CRs-Fixed: 2037499
Change-Id: Ib83407524bd3b5cdad28f73a6ccc36d4a0271779
Sathish Kumar před 8 roky
rodič
revize
125754ed8d
3 změnil soubory, kde provedl 29 přidání a 0 odebrání
  1. 3 0
      wmi_unified_api.h
  2. 22 0
      wmi_unified_param.h
  3. 4 0
      wmi_unified_priv.h

+ 3 - 0
wmi_unified_api.h

@@ -940,6 +940,9 @@ QDF_STATUS wmi_unified_send_btcoex_duty_cycle_cmd(void *wmi_hdl,
 QDF_STATUS wmi_unified_send_coex_ver_cfg_cmd(void *wmi_hdl,
 QDF_STATUS wmi_unified_send_coex_ver_cfg_cmd(void *wmi_hdl,
 				coex_ver_cfg_t *param);
 				coex_ver_cfg_t *param);
 
 
+QDF_STATUS wmi_unified_send_coex_config_cmd(void *wmi_hdl,
+					    struct coex_config_params *param);
+
 QDF_STATUS wmi_unified_set_atf_cmd_send(void *wmi_hdl,
 QDF_STATUS wmi_unified_set_atf_cmd_send(void *wmi_hdl,
 				struct set_atf_params *param);
 				struct set_atf_params *param);
 
 

+ 22 - 0
wmi_unified_param.h

@@ -7164,4 +7164,26 @@ enum wmi_host_active_bpf_mode {
 	WMI_HOST_ACTIVE_BPF_ADAPTIVE =	(1 << 3)
 	WMI_HOST_ACTIVE_BPF_ADAPTIVE =	(1 << 3)
 };
 };
 
 
+/**
+ * struct coex_config_params - Coex config command params
+ * @vdev_id: Virtual AP device identifier
+ * @config_type: Configuration type - wmi_coex_config_type enum
+ * @config_arg1: Configuration argument based on config type
+ * @config_arg2: Configuration argument based on config type
+ * @config_arg3: Configuration argument based on config type
+ * @config_arg4: Configuration argument based on config type
+ * @config_arg5: Configuration argument based on config type
+ * @config_arg6: Configuration argument based on config type
+ */
+struct coex_config_params {
+	uint32_t vdev_id;
+	uint32_t config_type;
+	uint32_t config_arg1;
+	uint32_t config_arg2;
+	uint32_t config_arg3;
+	uint32_t config_arg4;
+	uint32_t config_arg5;
+	uint32_t config_arg6;
+};
+
 #endif /* _WMI_UNIFIED_PARAM_H_ */
 #endif /* _WMI_UNIFIED_PARAM_H_ */

+ 4 - 0
wmi_unified_priv.h

@@ -1030,6 +1030,10 @@ QDF_STATUS
 QDF_STATUS
 QDF_STATUS
 (*send_coex_ver_cfg_cmd)(wmi_unified_t wmi_handle, coex_ver_cfg_t *param);
 (*send_coex_ver_cfg_cmd)(wmi_unified_t wmi_handle, coex_ver_cfg_t *param);
 
 
+QDF_STATUS
+(*send_coex_config_cmd)(wmi_unified_t wmi_handle,
+			struct coex_config_params *param);
+
 QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle,
 QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle,
 	void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
 	void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);