diff --git a/wmi_unified_api.h b/wmi_unified_api.h index cc94f23925..26e5f48c1d 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1536,4 +1536,8 @@ QDF_STATUS wmi_unified_send_dbs_scan_sel_params_cmd(void *wmi_hdl, 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 bc8e9994d9..8d6922de07 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -5150,6 +5150,7 @@ typedef enum { 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 @@ struct wmi_mawc_roam_params { 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 2a5cd02125..372b328716 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -750,6 +750,12 @@ QDF_STATUS (*send_roam_scan_offload_rssi_change_cmd)(wmi_unified_t wmi_handle, 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);