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__
28 #include "csr_wifi_hip_unifi.h"
30 typedef struct ta_l4stats
39 * Context structure to preserve state between calls.
42 typedef struct ta_data
44 /* Current packet filter configuration */
47 /* Current packet custom filter configuration */
48 CsrWifiRouterCtrlTrafficFilter custom_filter;
50 /* The timestamp of the last tx packet processed. */
53 /* The timestamp of the last packet processed. */
54 u32 last_indication_time;
57 CsrWifiRouterCtrlTrafficStats stats;
59 /* Current traffic classification */
60 CsrWifiRouterCtrlTrafficType traffic_type;
62 /* Sum of packet rx rates for this interval used to calculate mean */
64 ta_l4stats_t ta_l4stats;
68 void unifi_ta_sampling_init(card_t *card);
75 #endif /* __TA_SAMPLING_H__ */