Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
csr_wifi_hip_ta_sampling.c File Reference
#include "csr_wifi_hip_card_sdio.h"

Go to the source code of this file.

Macros

#define TA_MAX_INTERVALS_IN_C1   100
 
#define TA_INTERVALS_NUM   10
 
#define TA_INTERVALS_STEP   10
 
#define TA_ETHERNET_TYPE_OFFSET   6
 
#define TA_LLC_HEADER_SIZE   8
 
#define TA_IP_TYPE_OFFSET   17
 
#define TA_UDP_SOURCE_PORT_OFFSET   28
 
#define TA_UDP_DEST_PORT_OFFSET   (TA_UDP_SOURCE_PORT_OFFSET + 2)
 
#define TA_BOOTP_CLIENT_MAC_ADDR_OFFSET   64
 
#define TA_DHCP_MESSAGE_TYPE_OFFSET   278
 
#define TA_DHCP_MESSAGE_TYPE_ACK   0x05
 
#define TA_PROTO_TYPE_IP   0x0800
 
#define TA_PROTO_TYPE_EAP   0x888E
 
#define TA_PROTO_TYPE_WAI   0x8864
 
#define TA_PROTO_TYPE_ARP   0x0806
 
#define TA_IP_TYPE_TCP   0x06
 
#define TA_IP_TYPE_UDP   0x11
 
#define TA_UDP_PORT_BOOTPC   0x0044
 
#define TA_UDP_PORT_BOOTPS   0x0043
 
#define TA_EAPOL_TYPE_OFFSET   9
 
#define TA_EAPOL_TYPE_START   0x01
 
#define snap_802_2   0xAAAA0300
 
#define oui_rfc1042   0x00000000
 
#define oui_8021h   0x0000f800
 

Enumerations

enum  ta_frame_identity { TA_FRAME_UNKNOWN, TA_FRAME_ETHERNET_UNINTERESTING, TA_FRAME_ETHERNET_INTERESTING }
 

Functions

void unifi_ta_sampling_init (card_t *card)
 
void unifi_ta_sample (card_t *card, CsrWifiRouterCtrlProtocolDirection direction, const bulk_data_desc_t *data, const u8 *saddr, const u8 *sta_macaddr, u32 timestamp, u16 rate)
 
CsrResult unifi_ta_configure (card_t *card, CsrWifiRouterCtrlTrafficConfigType config_type, const CsrWifiRouterCtrlTrafficConfig *config)
 
void unifi_ta_classification (card_t *card, CsrWifiRouterCtrlTrafficType traffic_type, u16 period)
 

Macro Definition Documentation

#define oui_8021h   0x0000f800

Definition at line 74 of file csr_wifi_hip_ta_sampling.c.

#define oui_rfc1042   0x00000000

Definition at line 73 of file csr_wifi_hip_ta_sampling.c.

#define snap_802_2   0xAAAA0300

Definition at line 72 of file csr_wifi_hip_ta_sampling.c.

#define TA_BOOTP_CLIENT_MAC_ADDR_OFFSET   64

Definition at line 58 of file csr_wifi_hip_ta_sampling.c.

#define TA_DHCP_MESSAGE_TYPE_ACK   0x05

Definition at line 60 of file csr_wifi_hip_ta_sampling.c.

#define TA_DHCP_MESSAGE_TYPE_OFFSET   278

Definition at line 59 of file csr_wifi_hip_ta_sampling.c.

#define TA_EAPOL_TYPE_OFFSET   9

Definition at line 69 of file csr_wifi_hip_ta_sampling.c.

#define TA_EAPOL_TYPE_START   0x01

Definition at line 70 of file csr_wifi_hip_ta_sampling.c.

#define TA_ETHERNET_TYPE_OFFSET   6

Definition at line 53 of file csr_wifi_hip_ta_sampling.c.

#define TA_INTERVALS_NUM   10

Definition at line 37 of file csr_wifi_hip_ta_sampling.c.

#define TA_INTERVALS_STEP   10

Definition at line 42 of file csr_wifi_hip_ta_sampling.c.

#define TA_IP_TYPE_OFFSET   17

Definition at line 55 of file csr_wifi_hip_ta_sampling.c.

#define TA_IP_TYPE_TCP   0x06

Definition at line 65 of file csr_wifi_hip_ta_sampling.c.

#define TA_IP_TYPE_UDP   0x11

Definition at line 66 of file csr_wifi_hip_ta_sampling.c.

#define TA_LLC_HEADER_SIZE   8

Definition at line 54 of file csr_wifi_hip_ta_sampling.c.

#define TA_MAX_INTERVALS_IN_C1   100

Definition at line 33 of file csr_wifi_hip_ta_sampling.c.

#define TA_PROTO_TYPE_ARP   0x0806

Definition at line 64 of file csr_wifi_hip_ta_sampling.c.

#define TA_PROTO_TYPE_EAP   0x888E

Definition at line 62 of file csr_wifi_hip_ta_sampling.c.

#define TA_PROTO_TYPE_IP   0x0800

Definition at line 61 of file csr_wifi_hip_ta_sampling.c.

#define TA_PROTO_TYPE_WAI   0x8864

Definition at line 63 of file csr_wifi_hip_ta_sampling.c.

#define TA_UDP_DEST_PORT_OFFSET   (TA_UDP_SOURCE_PORT_OFFSET + 2)

Definition at line 57 of file csr_wifi_hip_ta_sampling.c.

#define TA_UDP_PORT_BOOTPC   0x0044

Definition at line 67 of file csr_wifi_hip_ta_sampling.c.

#define TA_UDP_PORT_BOOTPS   0x0043

Definition at line 68 of file csr_wifi_hip_ta_sampling.c.

#define TA_UDP_SOURCE_PORT_OFFSET   28

Definition at line 56 of file csr_wifi_hip_ta_sampling.c.

Enumeration Type Documentation

Enumerator:
TA_FRAME_UNKNOWN 
TA_FRAME_ETHERNET_UNINTERESTING 
TA_FRAME_ETHERNET_INTERESTING 

Definition at line 45 of file csr_wifi_hip_ta_sampling.c.

Function Documentation

void unifi_ta_sampling_init ( card_t card)

Definition at line 314 of file csr_wifi_hip_ta_sampling.c.