| /* |
| * Copyright (c) 2014-2015 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( __I_CDS_PACKET_H ) |
| #define __I_CDS_PACKET_H |
| |
| /**========================================================================= |
| |
| \file i_cds_packet.h |
| |
| \brief Connectivity driver services network packet APIs |
| |
| Network Protocol packet/buffer internal include file |
| |
| ========================================================================*/ |
| |
| /*-------------------------------------------------------------------------- |
| Include Files |
| ------------------------------------------------------------------------*/ |
| #include "cdf_types.h" |
| /* |
| * Rx Packet Struct |
| */ |
| typedef struct { |
| uint8_t channel; |
| uint8_t snr; |
| uint32_t rssi; |
| uint32_t timestamp; |
| uint8_t *mpdu_hdr_ptr; |
| uint8_t *mpdu_data_ptr; |
| uint32_t mpdu_len; |
| uint32_t mpdu_hdr_len; |
| uint32_t mpdu_data_len; |
| uint8_t offloadScanLearn : 1; |
| uint8_t roamCandidateInd : 1; |
| uint8_t scan : 1; |
| uint8_t scan_src; |
| uint8_t dpuFeedback; |
| uint8_t sessionId; |
| uint32_t tsf_delta; |
| } t_packetmeta, *tp_packetmeta; |
| |
| /* implementation specific cds packet type */ |
| struct cds_pkt_t { |
| /* Packet Meta Information */ |
| t_packetmeta pkt_meta; |
| |
| /* Pointer to Packet */ |
| void *pkt_buf; |
| }; |
| |
| #endif /* !defined( __I_CDS_PACKET_H ) */ |