mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacmn: Add debug trace for extender AP
Add commonly used header in Extender ap to qdf Change-Id: Ifdf97973cc30c193e5ca81b2aec06fc350115ce6 CRs-Fixed: 2148247
This commit is contained in:
parent
dbc7ec1702
commit
d5fdfacb1b
3 changed files with 56 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
|
|
@ -59,6 +59,7 @@ typedef __in6_addr_t in6_addr_t;
|
|||
#define QDF_NET_IF_NAME_SIZE 64
|
||||
#define QDF_NET_ETH_LEN QDF_NET_MAC_ADDR_MAX_LEN
|
||||
#define QDF_NET_MAX_MCAST_ADDR 64
|
||||
#define QDF_NET_IPV4_LEN 4
|
||||
|
||||
/* Extended Traffic ID passed to target if the TID is unknown */
|
||||
#define QDF_NBUF_TX_EXT_TID_INVALID 0x1f
|
||||
|
|
@ -71,10 +72,48 @@ typedef __in6_addr_t in6_addr_t;
|
|||
#define QDF_IEEE80211_FC1_TODS 0x01
|
||||
#define QDF_IEEE80211_FC1_FROMDS 0x02
|
||||
|
||||
#define QDF_NET_IS_MAC_MULTICAST(_a) (*(_a) & 0x01)
|
||||
|
||||
typedef struct qdf_net_ethaddr {
|
||||
uint8_t addr[QDF_NET_ETH_LEN];
|
||||
} qdf_net_ethaddr_t;
|
||||
|
||||
/**
|
||||
* typedef qdf_net_arphdr_t - ARP header info
|
||||
* @ar_hrd: hardware type
|
||||
* @ar_pro: protocol type
|
||||
* @ar_hln: hardware address length
|
||||
* @ar_pln: protocol length
|
||||
* @ar_op: arp operation code
|
||||
* @ar_sha: sender hardware address
|
||||
* @ar_sip: sender IP address
|
||||
* @ar_tha: target hardware address
|
||||
* @ar_tip: target IP address
|
||||
*/
|
||||
typedef struct qdf_net_arphdr {
|
||||
uint16_t ar_hrd;
|
||||
uint16_t ar_pro;
|
||||
uint8_t ar_hln;
|
||||
uint8_t ar_pln;
|
||||
uint16_t ar_op;
|
||||
uint8_t ar_sha[QDF_NET_ETH_LEN];
|
||||
uint8_t ar_sip[QDF_NET_IPV4_LEN];
|
||||
uint8_t ar_tha[QDF_NET_ETH_LEN];
|
||||
uint8_t ar_tip[QDF_NET_IPV4_LEN];
|
||||
} qdf_net_arphdr_t;
|
||||
|
||||
/**
|
||||
* typedef qdf_net_icmp6_11addr_t - ICMP6 header info
|
||||
* @type: hardware type
|
||||
* @len: hardware address length
|
||||
* @addr: hardware address
|
||||
*/
|
||||
typedef struct qdf_net_icmp6_11addr {
|
||||
uint8_t type;
|
||||
uint8_t len;
|
||||
uint8_t addr[QDF_NET_ETH_LEN];
|
||||
} qdf_net_icmp6_11addr_t;
|
||||
|
||||
#define QDF_TCPHDR_FIN __QDF_TCPHDR_FIN
|
||||
#define QDF_TCPHDR_SYN __QDF_TCPHDR_SYN
|
||||
#define QDF_TCPHDR_RST __QDF_TCPHDR_RST
|
||||
|
|
@ -488,6 +527,18 @@ typedef struct {
|
|||
uint16_t ether_type;
|
||||
} qdf_ethervlan_header_t;
|
||||
|
||||
/**
|
||||
* typedef qdf_ether_header_t - ethernet header info
|
||||
* @ether_dhost: destination hardware address
|
||||
* @ether_shost: source hardware address
|
||||
* @ether_type: ethernet type
|
||||
*/
|
||||
typedef struct {
|
||||
uint8_t ether_dhost[QDF_NET_ETH_LEN];
|
||||
uint8_t ether_shost[QDF_NET_ETH_LEN];
|
||||
uint16_t ether_type;
|
||||
} qdf_ether_header_t;
|
||||
|
||||
typedef struct {
|
||||
uint8_t llc_dsap;
|
||||
uint8_t llc_ssap;
|
||||
|
|
|
|||
|
|
@ -326,6 +326,7 @@ typedef void (*qdf_timer_func_t)(void *);
|
|||
* @QDF_MODULE_ID_DISA: DISA (encryption test) module ID
|
||||
* @QDF_MODULE_ID_GREEN_AP: Green AP related logging
|
||||
* @QDF_MODULE_ID_FTM: FTM module ID
|
||||
* @QDF_MODULE_ID_EXTAP: Extender AP module ID
|
||||
* @QDF_MODULE_ID_ANY: anything
|
||||
* @QDF_MODULE_ID_MAX: Max place holder module ID
|
||||
*/
|
||||
|
|
@ -424,6 +425,7 @@ typedef enum {
|
|||
QDF_MODULE_ID_DISA,
|
||||
QDF_MODULE_ID_GREEN_AP,
|
||||
QDF_MODULE_ID_FTM,
|
||||
QDF_MODULE_ID_EXTAP,
|
||||
QDF_MODULE_ID_ANY,
|
||||
QDF_MODULE_ID_MAX,
|
||||
} QDF_MODULE_ID;
|
||||
|
|
|
|||
|
|
@ -2119,6 +2119,7 @@ struct category_name_info g_qdf_category_name[MAX_SUPPORTED_CATEGORY] = {
|
|||
[QDF_MODULE_ID_DIRECT_BUF_RX] = {"DIRECT_BUF_RX"},
|
||||
[QDF_MODULE_ID_DISA] = {"disa"},
|
||||
[QDF_MODULE_ID_GREEN_AP] = {"GREEN_AP"},
|
||||
[QDF_MODULE_ID_EXTAP] = {"EXTAP"},
|
||||
[QDF_MODULE_ID_ANY] = {"ANY"},
|
||||
};
|
||||
EXPORT_SYMBOL(g_qdf_category_name);
|
||||
|
|
@ -2588,6 +2589,7 @@ static void set_default_trace_levels(struct category_info *cinfo)
|
|||
[QDF_MODULE_ID_ROAM_DEBUG] = QDF_TRACE_LEVEL_ERROR,
|
||||
[QDF_MODULE_ID_DIRECT_BUF_RX] = QDF_TRACE_LEVEL_ERROR,
|
||||
[QDF_MODULE_ID_GREEN_AP] = QDF_TRACE_LEVEL_ERROR,
|
||||
[QDF_MODULE_ID_EXTAP] = QDF_TRACE_LEVEL_NONE,
|
||||
[QDF_MODULE_ID_ANY] = QDF_TRACE_LEVEL_NONE,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue