blob: 23858fedd2bc3d44a4bf2036897e5a0525ce2c9f [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
2 * Copyright (c) 2014-2015 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
28#if !defined( __I_CDS_PACKET_H )
29#define __I_CDS_PACKET_H
30
31/**=========================================================================
32
33 \file i_cds_packet.h
34
35 \brief Connectivity driver services network packet APIs
36
37 Network Protocol packet/buffer internal include file
38
39 ========================================================================*/
40
41/*--------------------------------------------------------------------------
42 Include Files
43 ------------------------------------------------------------------------*/
44#include "cdf_types.h"
45/*
46 * Rx Packet Struct
47 */
48typedef struct {
49 uint8_t channel;
50 uint8_t snr;
51 uint32_t rssi;
52 uint32_t timestamp;
53 uint8_t *mpdu_hdr_ptr;
54 uint8_t *mpdu_data_ptr;
55 uint32_t mpdu_len;
56 uint32_t mpdu_hdr_len;
57 uint32_t mpdu_data_len;
58 uint8_t offloadScanLearn : 1;
59 uint8_t roamCandidateInd : 1;
60 uint8_t scan : 1;
61 uint8_t scan_src;
62 uint8_t dpuFeedback;
63 uint8_t sessionId;
64 uint32_t tsf_delta;
65} t_packetmeta, *tp_packetmeta;
66
67/* implementation specific cds packet type */
68struct cds_pkt_t {
69 /* Packet Meta Information */
70 t_packetmeta pkt_meta;
71
72 /* Pointer to Packet */
73 void *pkt_buf;
74};
75
76#endif /* !defined( __I_CDS_PACKET_H ) */