1 /*****************************************************************************
3 (c) Cambridge Silicon Radio Limited 2011
4 All rights reserved and confidential information of CSR
6 Refer to LICENSE.txt included with this source for details
9 *****************************************************************************/
12 * ---------------------------------------------------------------------------
13 * FILE: csr_wifi_hip_ta_sampling.h
16 * This file contains Traffic Analysis definitions common to the
17 * sampling and analysis modules.
19 * ---------------------------------------------------------------------------
21 #ifndef __TA_SAMPLING_H__
22 #define __TA_SAMPLING_H__
24 #include "csr_wifi_hip_unifi.h"
26 typedef struct ta_l4stats
35 * Context structure to preserve state between calls.
38 typedef struct ta_data
40 /* Current packet filter configuration */
43 /* Current packet custom filter configuration */
44 CsrWifiRouterCtrlTrafficFilter custom_filter;
46 /* The timestamp of the last tx packet processed. */
49 /* The timestamp of the last packet processed. */
50 u32 last_indication_time;
53 CsrWifiRouterCtrlTrafficStats stats;
55 /* Current traffic classification */
56 CsrWifiRouterCtrlTrafficType traffic_type;
58 /* Sum of packet rx rates for this interval used to calculate mean */
60 ta_l4stats_t ta_l4stats;
64 void unifi_ta_sampling_init(card_t *card);
66 #endif /* __TA_SAMPLING_H__ */