qcacmn: Add tlv formation of wmi feature commands in common wmi layer

Move tlv formation of wmi feature commands from umac to
common wmi layer.

Change-Id: I1674606573c9145fa235191bf1ef798bd26a63ce
CRs-Fixed: 983619
diff --git a/wmi_unified_api.h b/wmi_unified_api.h
index a8ffc60..8697c4b 100644
--- a/wmi_unified_api.h
+++ b/wmi_unified_api.h
@@ -487,14 +487,164 @@
 		       struct pe_stats_req  *get_stats_param,
 			   uint8_t addr[IEEE80211_ADDR_LEN]);
 
-int32_t wmi_unified_ocb_set_utc_time_cmd(void *wmi_hdl,
+CDF_STATUS wmi_unified_snr_request_cmd(void *wmi_hdl);
+
+CDF_STATUS wmi_unified_snr_cmd(void *wmi_hdl, uint8_t vdev_id);
+
+CDF_STATUS wmi_unified_link_status_req_cmd(void *wmi_hdl,
+				 struct link_status_params *link_status);
+
+CDF_STATUS wmi_unified_lphb_config_hbenable_cmd(void *wmi_hdl,
+				wmi_hb_set_enable_cmd_fixed_param *params);
+
+CDF_STATUS wmi_unified_lphb_config_tcp_params_cmd(void *wmi_hdl,
+				    wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
+
+CDF_STATUS wmi_unified_lphb_config_tcp_pkt_filter_cmd(void *wmi_hdl,
+					wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
+
+CDF_STATUS wmi_unified_lphb_config_udp_params_cmd(void *wmi_hdl,
+				    wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
+
+CDF_STATUS wmi_unified_lphb_config_udp_pkt_filter_cmd(void *wmi_hdl,
+					wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
+
+CDF_STATUS wmi_unified_process_dhcp_ind(void *wmi_hdl,
+				wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
+
+CDF_STATUS wmi_unified_get_link_speed_cmd(void *wmi_hdl,
+			wmi_mac_addr peer_macaddr);
+
+CDF_STATUS wmi_unified_egap_conf_params_cmd(void *wmi_hdl,
+				     wmi_ap_ps_egap_param_cmd_fixed_param *egap_params);
+
+CDF_STATUS wmi_unified_fw_profiling_data_cmd(void *wmi_hdl,
+			uint32_t cmd, uint32_t value1, uint32_t value2);
+
+CDF_STATUS wmi_unified_wow_sta_ra_filter_cmd(void *wmi_hdl,
+			  uint8_t vdev_id, uint8_t default_pattern,
+			  uint16_t rate_limit_interval);
+
+CDF_STATUS wmi_unified_nat_keepalive_en_cmd(void *wmi_hdl, uint8_t vdev_id);
+
+CDF_STATUS wmi_unified_csa_offload_enable(void *wmi_hdl, uint8_t vdev_id);
+
+CDF_STATUS wmi_unified_start_oem_data_cmd(void *wmi_hdl,
+			  uint8_t data_len,
+			  uint8_t *data);
+
+CDF_STATUS wmi_unified_dfs_phyerr_filter_offload_en_cmd(void *wmi_hdl,
+			bool dfs_phyerr_filter_offload);
+
+CDF_STATUS wmi_unified_pktlog_wmi_send_cmd(void *wmi_hdl,
+				   WMI_PKTLOG_EVENT pktlog_event,
+				   WMI_CMD_ID cmd_id);
+
+CDF_STATUS wmi_unified_add_wow_wakeup_event_cmd(void *wmi_hdl,
+					uint32_t vdev_id,
+					uint32_t bitmap,
+					bool enable);
+
+CDF_STATUS wmi_unified_wow_patterns_to_fw_cmd(void *wmi_hdl,
+				uint8_t vdev_id, uint8_t ptrn_id,
+				const uint8_t *ptrn, uint8_t ptrn_len,
+				uint8_t ptrn_offset, const uint8_t *mask,
+				uint8_t mask_len, bool user,
+				uint8_t default_patterns);
+
+CDF_STATUS wmi_unified_wow_delete_pattern_cmd(void *wmi_hdl, uint8_t ptrn_id,
+					uint8_t vdev_id);
+
+CDF_STATUS wmi_unified_host_wakeup_ind_to_fw_cmd(void *wmi_hdl);
+CDF_STATUS wmi_unified_del_ts_cmd(void *wmi_hdl, uint8_t vdev_id,
+				uint8_t ac);
+
+CDF_STATUS wmi_unified_aggr_qos_cmd(void *wmi_hdl,
+		      struct aggr_add_ts_param *aggr_qos_rsp_msg);
+
+CDF_STATUS wmi_unified_add_ts_cmd(void *wmi_hdl,
+		 struct add_ts_param *msg);
+
+CDF_STATUS wmi_unified_enable_disable_packet_filter_cmd(void *wmi_hdl,
+					uint8_t vdev_id, bool enable);
+
+CDF_STATUS wmi_unified_config_packet_filter_cmd(void *wmi_hdl,
+		uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param,
+		uint8_t filter_id, bool enable);
+
+CDF_STATUS wmi_unified_add_clear_mcbc_filter_cmd(void *wmi_hdl,
+				     uint8_t vdev_id,
+				     struct cdf_mac_addr multicast_addr,
+				     bool clearList);
+
+CDF_STATUS wmi_unified_send_gtk_offload_cmd(void *wmi_hdl, uint8_t vdev_id,
+					   struct gtk_offload_params *params,
+					   bool enable_offload,
+					   uint32_t gtk_offload_opcode);
+
+CDF_STATUS wmi_unified_process_gtk_offload_getinfo_cmd(void *wmi_hdl,
+				uint8_t vdev_id,
+				uint64_t offload_req_opcode);
+
+CDF_STATUS wmi_unified_process_add_periodic_tx_ptrn_cmd(void *wmi_hdl,
+						struct periodic_tx_pattern  *
+						pAddPeriodicTxPtrnParams,
+						uint8_t vdev_id);
+
+CDF_STATUS wmi_unified_process_del_periodic_tx_ptrn_cmd(void *wmi_hdl,
+						uint8_t vdev_id,
+						uint8_t pattern_id);
+
+CDF_STATUS wmi_unified_stats_ext_req_cmd(void *wmi_hdl,
+			struct stats_ext_params *preq);
+
+CDF_STATUS wmi_unified_enable_ext_wow_cmd(void *wmi_hdl,
+			struct ext_wow_params *params);
+
+CDF_STATUS wmi_unified_set_app_type2_params_in_fw_cmd(void *wmi_hdl,
+					  struct app_type2_params *appType2Params);
+
+CDF_STATUS wmi_unified_set_auto_shutdown_timer_cmd(void *wmi_hdl,
+						  uint32_t timer_val);
+
+CDF_STATUS wmi_unified_nan_req_cmd(void *wmi_hdl,
+			struct nan_req_params *nan_req);
+
+CDF_STATUS wmi_unified_process_dhcpserver_offload_cmd(void *wmi_hdl,
+				struct dhcp_offload_info_params *pDhcpSrvOffloadInfo);
+
+CDF_STATUS wmi_unified_process_ch_avoid_update_cmd(void *wmi_hdl);
+
+CDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(void *wmi_hdl,
+				   uint32_t reg_dmn, uint16_t regdmn2G,
+				   uint16_t regdmn5G, int8_t ctl2G,
+				   int8_t ctl5G);
+
+CDF_STATUS wmi_unified_set_tdls_offchan_mode_cmd(void *wmi_hdl,
+			      struct tdls_channel_switch_params *chan_switch_params);
+
+CDF_STATUS wmi_unified_update_fw_tdls_state_cmd(void *wmi_hdl,
+					 void *tdls_param, uint8_t tdls_state);
+
+CDF_STATUS wmi_unified_update_tdls_peer_state_cmd(void *wmi_hdl,
+			       struct tdls_peer_state_params *peerStateParams,
+				   uint32_t *ch_mhz);
+
+CDF_STATUS wmi_unified_process_fw_mem_dump_cmd(void *wmi_hdl,
+					struct fw_dump_req_param *mem_dump_req);
+
+CDF_STATUS wmi_unified_process_set_ie_info_cmd(void *wmi_hdl,
+				   struct vdev_ie_info_param *ie_info);
+
+CDF_STATUS wmi_unified_ocb_set_utc_time_cmd(void *wmi_hdl,
 			  struct ocb_utc_param *utc);
 
-int32_t wmi_unified_dcc_get_stats_cmd(void *wmi_hdl,
+CDF_STATUS wmi_unified_dcc_get_stats_cmd(void *wmi_hdl,
 		     struct dcc_get_stats_param *get_stats_param);
 
-int32_t wmi_unified_dcc_clear_stats(void *wmi_hdl,
+CDF_STATUS wmi_unified_dcc_clear_stats(void *wmi_hdl,
 				uint32_t vdev_id, uint32_t dcc_stats_bitmap);
-int32_t wmi_unified_dcc_update_ndl(void *wmi_hdl,
+
+CDF_STATUS wmi_unified_dcc_update_ndl(void *wmi_hdl,
 		       struct dcc_update_ndl_param *update_ndl_param);
 #endif /* _WMI_UNIFIED_API_H_ */