qcacmn: Add wmi interface command to support debug stats

Add wmi interface command to support set/get NUD debug stats.

Change-Id: I2c5e9e2f6b0bb2e7b7b0a6404e939b33bffa3f18
CRs-Fixed: 2011463
diff --git a/wmi_unified_api.h b/wmi_unified_api.h
index cc94f23..26e5f48 100644
--- a/wmi_unified_api.h
+++ b/wmi_unified_api.h
@@ -1536,4 +1536,8 @@
 
 QDF_STATUS wmi_unified_send_limit_off_chan_cmd(void *wmi_hdl,
 		struct wmi_limit_off_chan_param *wmi_param);
+QDF_STATUS wmi_unified_set_arp_stats_req(void *wmi_hdl,
+					 struct set_arp_stats *req_buf);
+QDF_STATUS wmi_unified_get_arp_stats_req(void *wmi_hdl,
+					 struct get_arp_stats *req_buf);
 #endif /* _WMI_UNIFIED_API_H_ */
diff --git a/wmi_unified_param.h b/wmi_unified_param.h
index bc8e999..8d6922d 100644
--- a/wmi_unified_param.h
+++ b/wmi_unified_param.h
@@ -5150,6 +5150,7 @@
 	wmi_dfs_radar_detection_event_id,
 	wmi_ext_tbttoffset_update_event_id,
 	wmi_11d_new_country_event_id,
+	wmi_get_arp_stats_req_id,
 
 	wmi_events_max,
 } wmi_conv_event_id;
@@ -7563,4 +7564,28 @@
 	uint8_t rssi_stationary_low_adjust;
 };
 
+/**
+ * struct set_arp_stats - set/reset arp stats
+ * @vdev_id: session id
+ * @flag: enable/disable stats
+ * @pkt_type: type of packet(1 - arp)
+ * @ip_addr: subnet ipv4 address in case of encrypted packets
+ */
+struct set_arp_stats {
+	uint32_t vdev_id;
+	uint8_t flag;
+	uint8_t pkt_type;
+	uint32_t ip_addr;
+};
+
+/**
+ * struct get_arp_stats - get arp stats from firmware
+ * @pkt_type: packet type(1 - ARP)
+ * @vdev_id: session id
+ */
+struct get_arp_stats {
+	uint8_t pkt_type;
+	uint32_t vdev_id;
+};
+
 #endif /* _WMI_UNIFIED_PARAM_H_ */
diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h
index 2a5cd02..372b328 100644
--- a/wmi_unified_priv.h
+++ b/wmi_unified_priv.h
@@ -750,6 +750,12 @@
 QDF_STATUS (*send_per_roam_config_cmd)(wmi_unified_t wmi_handle,
 		struct wmi_per_roam_config_req *req_buf);
 
+QDF_STATUS (*send_set_arp_stats_req_cmd)(wmi_unified_t wmi_handle,
+					 struct set_arp_stats *req_buf);
+
+QDF_STATUS (*send_get_arp_stats_req_cmd)(wmi_unified_t wmi_handle,
+					 struct get_arp_stats *req_buf);
+
 QDF_STATUS (*send_get_buf_extscan_hotlist_cmd)(wmi_unified_t wmi_handle,
 				   struct ext_scan_setbssi_hotlist_params *
 				   photlist, int *buf_len);