qcacmn: Add core\utils directory and files to qcacmn

As a part of UMAC convergence, move the core\utils logging to qcacmn.

CRs-Fixed: 1109855
Change-Id: I499a392f74f3e52e99df4d03e4a27bce6cf5be7c
Tento commit je obsažen v:
Srinivas Girigowda
2017-02-16 16:04:29 -08:00
odevzdal qcabuildsw
rodič 6195152790
revize 60644c29e6
30 změnil soubory, kde provedl 15592 přidání a 0 odebrání

Zobrazit soubor

@@ -0,0 +1,453 @@
/*
* Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/*
* This file was originally distributed by Qualcomm Atheros, Inc.
* under proprietary terms before Copyright ownership was assigned
* to the Linux Foundation.
*/
#if !defined(__HOST_DIAG_CORE_EVENT_H)
#define __HOST_DIAG_CORE_EVENT_H
/**=========================================================================
\file host_diag_core_event.h
\brief WLAN UTIL host DIAG Events
Definitions for DIAG Events
========================================================================*/
/* $Header$ */
/*--------------------------------------------------------------------------
Include Files
------------------------------------------------------------------------*/
#include "qdf_types.h"
#include "i_host_diag_core_event.h"
/*--------------------------------------------------------------------------
Preprocessor definitions and constants
------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define WAKE_LOCK_NAME_LEN 80
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_SECURITY
------------------------------------------------------------------------*/
typedef struct {
uint8_t eventId;
uint8_t authMode;
uint8_t encryptionModeUnicast;
uint8_t encryptionModeMulticast;
uint8_t pmkIDMatch;
uint8_t bssid[6];
uint8_t keyId;
uint8_t status;
} host_event_wlan_security_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_STATUS_V2
------------------------------------------------------------------------*/
typedef struct {
uint8_t eventId;
uint8_t ssid[32];
uint8_t bssType;
uint8_t rssi;
uint8_t channel;
uint8_t qosCapability;
uint8_t authType;
uint8_t encryptionType;
uint8_t reason;
uint8_t reasonDisconnect;
} host_event_wlan_status_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_HANDOFF
------------------------------------------------------------------------*/
typedef struct {
uint8_t eventId;
uint8_t currentApBssid[6];
uint8_t currentApRssi;
uint8_t candidateApBssid[6];
uint8_t candidateApRssi;
} host_event_wlan_handoff_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_VCC
------------------------------------------------------------------------*/
typedef struct {
uint8_t eventId;
uint8_t rssi;
uint8_t txPer;
uint8_t rxPer;
int linkQuality;
} host_event_wlan_vcc_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_QOS
------------------------------------------------------------------------*/
typedef struct {
uint8_t eventId;
uint8_t reasonCode;
} host_event_wlan_qos_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_PE
------------------------------------------------------------------------*/
typedef struct {
char bssid[6];
uint16_t event_type;
uint16_t sme_state;
uint16_t mlm_state;
uint16_t status;
uint16_t reason_code;
} host_event_wlan_pe_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_ADD_BLOCK_ACK_SUCCESS
------------------------------------------------------------------------*/
typedef struct {
char ucBaPeerMac[6];
uint8_t ucBaTid;
uint8_t ucBaBufferSize;
uint16_t usBaSSN;
uint8_t fInitiator;
} host_event_wlan_add_block_ack_success_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_ADD_BLOCK_ACK_FAILED
------------------------------------------------------------------------*/
typedef struct {
char ucBaPeerMac[6];
uint8_t ucBaTid;
uint8_t ucReasonCode;
uint8_t fInitiator;
} host_event_wlan_add_block_ack_failed_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_DELETE_BLOCK_ACK_SUCCESS
------------------------------------------------------------------------*/
typedef struct {
char ucBaPeerMac[6];
uint8_t ucBaTid;
uint8_t ucDeleteReasonCode;
} host_event_wlan_add_block_ack_deleted_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_DELETE_BLOCK_ACK_FAILED
------------------------------------------------------------------------*/
typedef struct {
char ucBaPeerMac[6];
uint8_t ucBaTid;
uint8_t ucDeleteReasonCode;
uint8_t ucFailReasonCode;
} host_event_wlan_add_block_ack_delete_failed_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_BSS_PROTECTION
------------------------------------------------------------------------*/
typedef struct {
uint8_t event_type;
uint8_t prot_type;
} host_event_wlan_bss_prot_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_BRINGUP_STATUS
------------------------------------------------------------------------*/
typedef struct {
uint16_t wlanStatus;
char driverVersion[10];
} host_event_wlan_bringup_status_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_POWERSAVE_WOW
------------------------------------------------------------------------*/
typedef struct {
uint8_t event_subtype;
uint8_t wow_type;
uint8_t wow_magic_pattern[6];
uint8_t wow_del_ptrn_id;
uint8_t wow_wakeup_cause;
uint8_t wow_wakeup_cause_pbm_ptrn_id;
} host_event_wlan_powersave_wow_payload_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_BTC
------------------------------------------------------------------------*/
typedef struct {
uint8_t eventId;
uint8_t btAddr[6];
uint16_t connHandle;
uint8_t connStatus;
uint8_t linkType;
uint8_t scoInterval;
uint8_t scoWindow;
uint8_t retransWindow;
uint8_t mode;
} host_event_wlan_btc_type;
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_EAPOL
------------------------------------------------------------------------*/
/**
* struct host_event_wlan_eapol - Structure holding the eapol information
* @event_sub_type: 0-Transmitted, 1-Received
* @eapol_packet_type: 0 - EAP Start, 1 - EAPOL Start, 2 - EAPOL Logoff
3 - EAPOL Key, 4 - EAPOL Encapsulated Alert
* @eapol_key_info: This field from the driver is in big endian format.
* So, the masks .0x8013. can be used to extract the
* message type. After masking, the values corresponding
* to messages 1/2/3/4 are given below:
* Msg. 1 0x8000
* Msg. 2 0x0001
* Msg. 3 0x8013
* Msg. 4 0x0003
* @eapol_rate: Rate at which the frame is received
* @dest_addr: Destination address
* @src_addr: Source address
*
* This structure contains the EAPOL information related to logging
*/
struct host_event_wlan_eapol {
uint8_t event_sub_type;
uint8_t eapol_packet_type;
uint16_t eapol_key_info;
uint16_t eapol_rate;
uint8_t dest_addr[6];
uint8_t src_addr[6];
};
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_LOW_RESOURCE_FAILURE
------------------------------------------------------------------------*/
/**
* struct host_event_wlan_low_resource_failure - Structure holding the
* low resource failure information
* @event_sub_type: Gives further information about reason for
* low resource condition
*
* This structure will hold the low resource failure information
*/
struct host_event_wlan_low_resource_failure {
uint8_t event_sub_type;
};
/**
* enum resource_failure_type - Reason for low resource failure condition
* @WIFI_EVENT_MEMORY_FAILURE: Memory failure
*
* This enum has the reason codes why the low resource situation is observed
*/
enum resource_failure_type {
WIFI_EVENT_MEMORY_FAILURE,
};
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_WAKE_LOCK
------------------------------------------------------------------------*/
/**
* struct host_event_wlan_wake_lock - Structure holding the wakelock information
* @status: Whether the wakelock is taken/released
* @reason: Reason for taking this wakelock
* @timeout: Timeout value in case of timed wakelocks
* @name_len: Length of the name of the wakelock that will follow
* @name: Name of the wakelock
*
* This structure will hold the wakelock information
*/
struct host_event_wlan_wake_lock {
uint32_t status;
uint32_t reason;
uint32_t timeout;
uint32_t name_len;
char name[WAKE_LOCK_NAME_LEN];
};
/*-------------------------------------------------------------------------
Event ID: EVENT_WLAN_LOG_COMPLETE
------------------------------------------------------------------------*/
/**
* struct host_event_wlan_log_complete - Holds log completion details
* @is_fatal: Indicates if the event is fatal or not
* @indicator: Source of the bug report - Framework/Host/Firmware
* @reason_code: Reason for triggering bug report
* @reserved: Reserved field
*
* This structure holds the log completion related information
*/
struct host_event_wlan_log_complete {
uint32_t is_fatal;
uint32_t indicator;
uint32_t reason_code;
uint32_t reserved;
};
/**
* struct host_event_tdls_teardown - tdls teardown diag event
* @reason: reason for tear down
* @peer_mac: peer mac
*
* This structure contains tdls teardown diag event info
*/
struct host_event_tdls_teardown {
uint32_t reason;
uint8_t peer_mac[QDF_MAC_ADDR_SIZE];
};
/**
* struct host_event_tdls_enable_link - tdls enable link event
* @peer_mac: peer mac
* @is_off_chan_supported: if off channel supported
* @is_off_chan_configured: if off channel configured
* @is_off_chan_established: if off channel established
*
* This structure contain tdls enable link diag event info
*/
struct host_event_tdls_enable_link {
uint8_t peer_mac[QDF_MAC_ADDR_SIZE];
uint8_t is_off_chan_supported;
uint8_t is_off_chan_configured;
uint8_t is_off_chan_established;
};
/**
* struct host_event_suspend - suspend/resume state
* @state: suspend/resume state
*
* This structure contains suspend resume diag event info
*/
struct host_event_suspend {
uint8_t state;
};
/**
* struct host_event_offload_req - offload state
* @offload_type: offload type
* @state: enabled or disabled state
*
* This structure contains offload diag event info
*/
struct host_event_offload_req {
uint8_t offload_type;
uint8_t state;
};
/**
* struct host_event_tdls_scan_rejected - scan
* rejected due to tdls
* @status: rejected status
*
* This structure contains scan rejected due to
* tdls event info
*/
struct host_event_tdls_scan_rejected {
uint8_t status;
};
/**
* struct host_event_tdls_tx_rx_mgmt - for TX RX management frame
* @event_id: event ID
* @tx_rx: tx or rx
* @type: type of frame
* @action_sub_type: action frame type
* @peer_mac: peer mac
*
* This structure contains tdls TX RX management frame info
*/
struct host_event_tdls_tx_rx_mgmt {
uint8_t event_id;
uint8_t tx_rx;
uint8_t type;
uint8_t action_sub_type;
uint8_t peer_mac[QDF_MAC_ADDR_SIZE];
};
/*-------------------------------------------------------------------------
Function declarations and documenation
------------------------------------------------------------------------*/
/**
* enum wifi_connectivity_events - Enum containing EAPOL sub type
* @WIFI_EVENT_DRIVER_EAPOL_FRAME_TRANSMIT_REQUESTED: EAPOL transmitted
* @WIFI_EVENT_DRIVER_EAPOL_FRAME_RECEIVED: EAPOL received
*
* This enum contains the EAPOL subtype
*/
enum wifi_connectivity_events {
WIFI_EVENT_DRIVER_EAPOL_FRAME_TRANSMIT_REQUESTED,
WIFI_EVENT_DRIVER_EAPOL_FRAME_RECEIVED,
};
/**
* enum wake_lock_reason - Reason for taking/releasing wakelock
* @WIFI_POWER_EVENT_WAKELOCK_DRIVER_INIT: Driver initialization
* @WIFI_POWER_EVENT_WAKELOCK_DRIVER_REINIT: Driver re-initialization
* @WIFI_POWER_EVENT_WAKELOCK_DRIVER_EXIT: Driver shutdown
* @WIFI_POWER_EVENT_WAKELOCK_SCAN: Scan request/response handling
* @WIFI_POWER_EVENT_WAKELOCK_EXT_SCAN: Extended scan request/response handling
* @WIFI_POWER_EVENT_WAKELOCK_RESUME_WLAN: Driver resume
* @WIFI_POWER_EVENT_WAKELOCK_ROC: Remain on channel request/response handling
* @WIFI_POWER_EVENT_WAKELOCK_AUTO_SUSPEND: Auto suspend related handling
* @WIFI_POWER_EVENT_WAKELOCK_IPA: IPA related handling
* @WIFI_POWER_EVENT_WAKELOCK_ADD_STA: Addition of STA
* @WIFI_POWER_EVENT_WAKELOCK_HOLD_RX: Wakelocks taken for receive
* @WIFI_POWER_EVENT_WAKELOCK_SAP: SoftAP related wakelocks
* @WIFI_POWER_EVENT_WAKELOCK_WOW: WoW feature related
* @WIFI_POWER_EVENT_WAKELOCK_PNO: PNO feature related
* @WIFI_POWER_EVENT_WAKELOCK_DEL_STA: Deletion of a station
* @WIFI_POWER_EVENT_WAKELOCK_DFS: DFS related wakelocks
* @WIFI_POWER_EVENT_WAKELOCK_WMI_CMD_RSP: Firmware response
* @WIFI_POWER_EVENT_WAKELOCK_MISC: Miscellaneous wakelocks
* @WIFI_POWER_EVENT_WAKELOCK_DHCP: DHCP negotiation under way
*
* Indicates the reason for which the wakelock was taken/released
*/
enum wake_lock_reason {
WIFI_POWER_EVENT_WAKELOCK_DRIVER_INIT,
WIFI_POWER_EVENT_WAKELOCK_DRIVER_REINIT,
WIFI_POWER_EVENT_WAKELOCK_DRIVER_EXIT,
WIFI_POWER_EVENT_WAKELOCK_SCAN,
WIFI_POWER_EVENT_WAKELOCK_EXT_SCAN,
WIFI_POWER_EVENT_WAKELOCK_RESUME_WLAN,
WIFI_POWER_EVENT_WAKELOCK_ROC,
WIFI_POWER_EVENT_WAKELOCK_AUTO_SUSPEND,
WIFI_POWER_EVENT_WAKELOCK_IPA,
WIFI_POWER_EVENT_WAKELOCK_ADD_STA,
WIFI_POWER_EVENT_WAKELOCK_HOLD_RX,
WIFI_POWER_EVENT_WAKELOCK_SAP,
WIFI_POWER_EVENT_WAKELOCK_WOW,
WIFI_POWER_EVENT_WAKELOCK_PNO,
WIFI_POWER_EVENT_WAKELOCK_DEL_STA,
WIFI_POWER_EVENT_WAKELOCK_DFS,
WIFI_POWER_EVENT_WAKELOCK_WMI_CMD_RSP,
WIFI_POWER_EVENT_WAKELOCK_MISC,
WIFI_POWER_EVENT_WAKELOCK_DHCP,
};
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __HOST_DIAG_CORE_EVENT_H */

Zobrazit soubor

@@ -0,0 +1,278 @@
/*
* Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/*
* This file was originally distributed by Qualcomm Atheros, Inc.
* under proprietary terms before Copyright ownership was assigned
* to the Linux Foundation.
*/
#if !defined(__HOST_DIAG_CORE_LOG_H)
#define __HOST_DIAG_CORE_LOG_H
/**=========================================================================
\file host_diag_core_log.h
\brief WLAN UTIL host DIAG logs
Definitions for WLAN UTIL host diag events
========================================================================*/
/* $Header$ */
/*--------------------------------------------------------------------------
Include Files
------------------------------------------------------------------------*/
#include "qdf_types.h"
#include "i_host_diag_core_log.h"
/*--------------------------------------------------------------------------
Preprocessor definitions and constants
------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*--------------------------------------------------------------------------
Preprocessor definitions and constants
------------------------------------------------------------------------*/
#define HOST_LOG_MAX_NUM_SSID (21)
#define HOST_LOG_MAX_NUM_BSSID (21)
#define HOST_LOG_MAX_SSID_SIZE (32)
#define HOST_LOG_MAX_BSSID_SIZE (6)
#define HOST_LOG_MAX_NUM_CHANNEL (64)
#define HOST_LOG_MAX_NUM_HO_CANDIDATE_APS (20)
#define HOST_LOG_MAX_WOW_PTRN_SIZE (128)
#define HOST_LOG_MAX_WOW_PTRN_MASK_SIZE (16)
#define VOS_LOG_PKT_LOG_SIZE (2048)
#define HOST_LOG_PKT_LOG_THRESHOLD 40960
/* Version to be updated whenever format of vos_log_pktlog_info changes */
#define VERSION_LOG_WLAN_PKT_LOG_INFO_C 1
/*---------------------------------------------------------------------------
This packet contains the scan results of the recent scan operation
LOG_WLAN_SCAN_C 0x1496
---------------------------------------------------------------------------*/
typedef struct {
log_hdr_type hdr;
uint8_t eventId;
uint8_t numSsid;
uint8_t ssid[HOST_LOG_MAX_NUM_SSID][HOST_LOG_MAX_SSID_SIZE];
uint8_t bssid[HOST_LOG_MAX_NUM_BSSID][HOST_LOG_MAX_BSSID_SIZE];
uint8_t totalSsid;
uint8_t minChnTime;
uint8_t maxChnTime;
uint16_t timeBetweenBgScan;
uint8_t BSSMode;
uint8_t numChannel;
uint8_t channels[HOST_LOG_MAX_NUM_CHANNEL];
uint16_t status;
} host_log_scan_pkt_type;
/*---------------------------------------------------------------------------
This packet contains the information related to IBSS connection setup
LOG_WLAN_IBSS_C 0x1497
---------------------------------------------------------------------------*/
typedef struct {
log_hdr_type hdr;
uint8_t eventId;
uint8_t channelSetting;
struct qdf_mac_addr bssid;
struct qdf_mac_addr peer_macaddr;
uint8_t ssid[HOST_LOG_MAX_SSID_SIZE];
uint8_t operatingChannel;
uint8_t beaconInterval;
uint8_t status;
} host_log_ibss_pkt_type;
/*---------------------------------------------------------------------------
This packet contains the information related to 802.11D
LOG_WLAN_80211D_C 0x1498
---------------------------------------------------------------------------*/
typedef struct {
log_hdr_type hdr;
uint8_t eventId;
uint8_t numChannel;
uint8_t Channels[HOST_LOG_MAX_NUM_CHANNEL];
uint8_t TxPwr[HOST_LOG_MAX_NUM_CHANNEL];
uint8_t countryCode[3];
uint8_t supportMultipleDomain;
} host_log_802_11d_pkt_type;
/*---------------------------------------------------------------------------
This is a log packet which contains below handoff information:
- Current AP + RSSI (if already associated)
- Candidate AP + RSSI (before association and when the list is updated)
- For each BSSID in candidate list, provide RSSI, QoS and security compatibility
LOG_WLAN_HANDOFF_C 0x1499
---------------------------------------------------------------------------*/
typedef struct {
uint8_t ssid[9];
uint8_t bssid[HOST_LOG_MAX_BSSID_SIZE];
uint8_t channel_id;
uint32_t qos_score;
uint32_t sec_score;
uint32_t rssi_score;
uint32_t overall_score;
uint32_t tx_per; /* represented as a % */
uint32_t rx_per; /* represented as a % */
} host_log_ho_ap_info;
typedef struct {
log_hdr_type hdr;
uint32_t num_aps;
host_log_ho_ap_info current_ap_info;
host_log_ho_ap_info
candidate_ap_info[HOST_LOG_MAX_NUM_HO_CANDIDATE_APS];
} host_log_ho_pkt_type;
/*---------------------------------------------------------------------------
This packet contains the information related to the EDCA parameters
advertised by the AP
LOG_WLAN_QOS_EDCA_C 0x149A
---------------------------------------------------------------------------*/
typedef struct {
log_hdr_type hdr;
uint8_t aci_be;
uint8_t cw_be;
uint16_t txoplimit_be;
uint8_t aci_bk;
uint8_t cw_bk;
uint16_t txoplimit_bk;
uint8_t aci_vi;
uint8_t cw_vi;
uint16_t txoplimit_vi;
uint8_t aci_vo;
uint8_t cw_vo;
uint16_t txoplimit_vo;
} host_log_qos_edca_pkt_type;
/*---------------------------------------------------------------------------
This packet contains the total number of beacon received value
LOG_WLAN_BEACON_UPDATE_C 0x149B
---------------------------------------------------------------------------*/
typedef struct {
log_hdr_type hdr;
uint32_t bcn_rx_cnt;
} host_log_beacon_update_pkt_type;
/*---------------------------------------------------------------------------
This packet contains the information related to a WoW patern value when set
LOG_WLAN_POWERSAVE_WOW_ADD_PTRN_C 0x149C
---------------------------------------------------------------------------*/
typedef struct {
log_hdr_type hdr;
uint8_t pattern_id;
uint8_t pattern_byte_offset;
uint8_t pattern_size;
uint8_t pattern[HOST_LOG_MAX_WOW_PTRN_SIZE];
uint8_t pattern_mask_size;
uint8_t pattern_mask[HOST_LOG_MAX_WOW_PTRN_MASK_SIZE];
} host_log_powersave_wow_add_ptrn_pkt_type;
/*---------------------------------------------------------------------------
This packet contains the Tspec info negotiated with the AP for the
specific AC
LOG_WLAN_QOS_TSPEC_C 0x14A2
---------------------------------------------------------------------------*/
typedef struct {
log_hdr_type hdr;
uint8_t tsinfo[3];
uint16_t nominal_msdu_size;
uint16_t maximum_msdu_size;
uint32_t min_service_interval;
uint32_t max_service_interval;
uint32_t inactivity_interval;
uint32_t suspension_interval;
uint32_t svc_start_time;
uint32_t min_data_rate;
uint32_t mean_data_rate;
uint32_t peak_data_rate;
uint32_t max_burst_size;
uint32_t delay_bound;
uint32_t min_phy_rate;
uint16_t surplus_bw_allowance;
uint16_t medium_time;
} host_log_qos_tspec_pkt_type;
/*---------------------------------------------------------------------------
This packet contains data information when stall detected
LOG_TRSP_DATA_STALL_C 0x1801
---------------------------------------------------------------------------*/
typedef struct {
char channelName[4];
uint32_t numDesc;
uint32_t numFreeDesc;
uint32_t numRsvdDesc;
uint32_t headDescOrder;
uint32_t tailDescOrder;
uint32_t ctrlRegVal;
uint32_t statRegVal;
uint32_t numValDesc;
uint32_t numInvalDesc;
} host_log_data_stall_channel_type;
typedef struct {
log_hdr_type hdr;
uint32_t PowerState;
uint32_t numFreeBd;
host_log_data_stall_channel_type dxeChannelInfo[4];
} host_log_data_stall_type;
/*---------------------------------------------------------------------------
This packet contains the rssi value from BSS descriptor
LOG_WLAN_RSSI_UPDATE_C 0x1354
---------------------------------------------------------------------------*/
typedef struct {
log_hdr_type hdr;
int8_t rssi;
} host_log_rssi_pkt_type;
/**
* struct host_log_pktlog_info - Packet log info
* @log_hdr: Log header
* @buf_len: Length of the buffer that follows
* @buf: Buffer containing the packet log info
*
* Structure containing the packet log information
* LOG_WLAN_PKT_LOG_INFO_C 0x18E0
*/
struct host_log_pktlog_info {
log_hdr_type log_hdr;
uint32_t version;
uint32_t seq_no;
uint32_t buf_len;
uint8_t buf[];
};
/*-------------------------------------------------------------------------
Function declarations and documenation
------------------------------------------------------------------------*/
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __HOST_DIAG_CORE_LOG_H */

Zobrazit soubor

@@ -0,0 +1,129 @@
/*
* Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/*
* This file was originally distributed by Qualcomm Atheros, Inc.
* under proprietary terms before Copyright ownership was assigned
* to the Linux Foundation.
*/
#ifndef EVENT_DEFS_H
#define EVENT_DEFS_H
typedef enum {
EVENT_DROP_ID = 0,
/* Events between 0x1 to 0x674 are not used */
EVENT_WLAN_SECURITY = 0x675, /* 13 byte payload */
EVENT_WLAN_STATUS, /* 15 byte payload */
/* Events 0x677 and 0x678 are not used */
EVENT_WLAN_QOS = 0x679, /* 2 byte payload */
EVENT_WLAN_PE, /* 16 byte payload */
/* Events between 0x67b to 0x67f are not used */
EVENT_WLAN_BRINGUP_STATUS = 0x680, /* 12 byte payload */
EVENT_WLAN_POWERSAVE_GENERIC, /* 16 byte payload */
EVENT_WLAN_POWERSAVE_WOW, /* 11 byte payload */
/* Events between 0x683 to 0x690 are not used */
EVENT_WLAN_BTC = 0x691, /* 15 byte payload */
EVENT_WLAN_EAPOL = 0xA8D,/* 18 bytes payload */
EVENT_WLAN_WAKE_LOCK = 0xAA2, /* 96 bytes payload */
EVENT_WLAN_BEACON_RECEIVED = 0xAA6, /* FW event: 2726 */
EVENT_WLAN_LOG_COMPLETE = 0xAA7, /* 16 bytes payload */
EVENT_WLAN_STATUS_V2 = 0xAB3,
/*
* <diag_event>
* EVENT_WLAN_TDLS_TEARDOWN
* @ reason: reason for tear down.
* @peer_mac: Peer mac address
*
*
* This event is sent when TDLS tear down happens.
*
* Supported Feature: TDLS
*
* </diag_event>
*/
EVENT_WLAN_TDLS_TEARDOWN = 0xAB5,
/*
* <diag_event>
* EVENT_WLAN_TDLS_ENABLE_LINK
* @peer_mac: peer mac
* @is_off_chan_supported: If peer supports off channel
* @is_off_chan_configured: If off channel is configured
* @is_off_chan_established: If off channel is established
*
*
* This event is sent when TDLS enable link happens.
*
* Supported Feature: TDLS
*
* </diag_event>
*/
EVENT_WLAN_TDLS_ENABLE_LINK = 0XAB6,
EVENT_WLAN_SUSPEND_RESUME = 0xAB7,
EVENT_WLAN_OFFLOAD_REQ = 0xAB8,
/*
* <diag_event>
* EVENT_TDLS_SCAN_BLOCK
* @status: rejected status
*
*
* This event is sent when scan is rejected due to TDLS.
*
* Supported Feature: TDLS
*
* </diag_event>
*/
EVENT_TDLS_SCAN_BLOCK = 0xAB9,
/*
* <diag_event>
* EVENT_WLAN_TDLS_TX_RX_MGMT
* @event_id: event id
* @tx_rx: tx or rx
* @type: type of frame
* @action_sub_type: action frame type
* @peer_mac: peer mac
*
*
* This event is sent when TDLS mgmt rx tx happens.
*
* Supported Feature: TDLS
*
* </diag_event>
*/
EVENT_WLAN_TDLS_TX_RX_MGMT = 0xABA,
EVENT_WLAN_LOW_RESOURCE_FAILURE = 0xABB,
EVENT_MAX_ID = 0x0FFF
} event_id_enum_type;
#endif /* EVENT_DEFS_H */

2075
utils/host_diag_log/inc/log_codes.h Normální soubor

Rozdílový obsah nebyl zobrazen, protože je příliš veliký Načíst rozdílové porovnání