Forráskód Böngészése

qcacmn: Add wmi command to set limit off chan parameters

Add WMI command for setting limit off channel command
parameters to firmware.

CRs-Fixed: 2068307
Change-Id: Ia99f1b4d4fe33082a561c9307af9d76ae16d8be4
Ganesh Kondabattini 8 éve
szülő
commit
20b086b6cd
3 módosított fájl, 21 hozzáadás és 0 törlés
  1. 3 0
      wmi_unified_api.h
  2. 16 0
      wmi_unified_param.h
  3. 2 0
      wmi_unified_priv.h

+ 3 - 0
wmi_unified_api.h

@@ -1508,4 +1508,7 @@ void wmi_print_mgmt_event_log(wmi_unified_t wmi, uint32_t count,
 
 QDF_STATUS wmi_unified_send_dbs_scan_sel_params_cmd(void *wmi_hdl,
 				struct wmi_dbs_scan_sel_params *wmi_param);
+
+QDF_STATUS wmi_unified_send_limit_off_chan_cmd(void *wmi_hdl,
+		struct wmi_limit_off_chan_param *wmi_param);
 #endif /* _WMI_UNIFIED_API_H_ */

+ 16 - 0
wmi_unified_param.h

@@ -7382,4 +7382,20 @@ struct wmi_dbs_scan_sel_params {
 	uint32_t num_non_dbs_scans[WMI_SCAN_CLIENT_MAX];
 };
 
+/**
+ * struct wmi_limit_off_chan_param - limit off channel parameters
+ * @vdev_id: vdev id
+ * @status: status of the command (enable/disable)
+ * @max_offchan_time: max off channel time
+ * @rest_time: home channel time
+ * @skip_dfs_chans: skip dfs channels during scan
+ */
+struct wmi_limit_off_chan_param {
+	uint32_t vdev_id;
+	bool status;
+	uint32_t max_offchan_time;
+	uint32_t rest_time;
+	bool skip_dfs_chans;
+};
+
 #endif /* _WMI_UNIFIED_PARAM_H_ */

+ 2 - 0
wmi_unified_priv.h

@@ -1354,6 +1354,8 @@ uint32_t (*convert_pdev_id_target_to_host)(uint32_t pdev_id);
 
 QDF_STATUS (*send_user_country_code_cmd)(wmi_unified_t wmi_handle,
 		uint8_t pdev_id, struct cc_regdmn_s *rd);
+QDF_STATUS (*send_limit_off_chan_cmd)(wmi_unified_t wmi_handle,
+		struct wmi_limit_off_chan_param *limit_off_chan_param);
 };
 
 struct target_abi_version {