blob: 289d49e323416c4188a3f206beec64c163f8fefb [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
2 * Copyright (c) 2011-2014 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/**
29 * @file ol_txrx_api.h
30 * @brief Definitions used in multiple external interfaces to the txrx SW.
31 */
32#ifndef _OL_TXRX_API__H_
33#define _OL_TXRX_API__H_
34
35/**
36 * @typedef ol_txrx_pdev_handle
37 * @brief opaque handle for txrx physical device object
38 */
39struct ol_txrx_pdev_t;
40typedef struct ol_txrx_pdev_t *ol_txrx_pdev_handle;
41
42/**
43 * @typedef ol_txrx_vdev_handle
44 * @brief opaque handle for txrx virtual device object
45 */
46struct ol_txrx_vdev_t;
47typedef struct ol_txrx_vdev_t *ol_txrx_vdev_handle;
48
49/**
50 * @typedef ol_txrx_peer_handle
51 * @brief opaque handle for txrx peer object
52 */
53struct ol_txrx_peer_t;
54typedef struct ol_txrx_peer_t *ol_txrx_peer_handle;
55
56/**
57 * @brief ADDBA negotiation status, used both during requests and confirmations
58 */
59enum ol_addba_status {
60 /* status: negotiation started or completed successfully */
61 ol_addba_success,
62
63 /* reject: aggregation is not applicable - don't try again */
64 ol_addba_reject,
65
66 /* busy: ADDBA negotiation couldn't be performed - try again later */
67 ol_addba_busy,
68};
69
70enum ol_sec_type {
71 ol_sec_type_none,
72 ol_sec_type_wep128,
73 ol_sec_type_wep104,
74 ol_sec_type_wep40,
75 ol_sec_type_tkip,
76 ol_sec_type_tkip_nomic,
77 ol_sec_type_aes_ccmp,
78 ol_sec_type_wapi,
79
80 /* keep this last! */
81 ol_sec_type_types
82};
83
84/**
85 * @enum ol_tx_spec
86 * @brief indicate what non-standard transmission actions to apply
87 * @details
88 * Indicate one or more of the following:
89 * - The tx frame already has a complete 802.11 header.
90 * Thus, skip 802.3/native-WiFi to 802.11 header encapsulation and
91 * A-MSDU aggregation.
92 * - The tx frame should not be aggregated (A-MPDU or A-MSDU)
93 * - The tx frame is already encrypted - don't attempt encryption.
94 * - The tx frame is a segment of a TCP jumbo frame.
95 * - This tx frame should not be unmapped and freed by the txrx layer
96 * after transmission, but instead given to a registered tx completion
97 * callback.
98 * More than one of these specification can apply, though typically
99 * only a single specification is applied to a tx frame.
100 * A compound specification can be created, as a bit-OR of these
101 * specifications.
102 */
103enum ol_tx_spec {
104 ol_tx_spec_std = 0x0, /* do regular processing */
105 ol_tx_spec_raw = 0x1, /* skip encap + A-MSDU aggr */
106 ol_tx_spec_no_aggr = 0x2, /* skip encap + all aggr */
107 ol_tx_spec_no_encrypt = 0x4, /* skip encap + encrypt */
108 ol_tx_spec_tso = 0x8, /* TCP segmented */
109 ol_tx_spec_nwifi_no_encrypt = 0x10, /* skip encrypt for nwifi */
110 ol_tx_spec_no_free = 0x20, /* give to cb rather than free */
111};
112
113#endif /* _OL_TXRX_API__H_ */