blob: b0d56ee1df623b415264d75da3b453bc31872c32 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
Himanshu Agarwal0527e8f2016-08-11 14:58:34 +05302 * Copyright (c) 2011-2014, 2016 The Linux Foundation. All rights reserved.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003 *
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/**
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080036 * @brief ADDBA negotiation status, used both during requests and confirmations
37 */
38enum ol_addba_status {
39 /* status: negotiation started or completed successfully */
40 ol_addba_success,
41
42 /* reject: aggregation is not applicable - don't try again */
43 ol_addba_reject,
44
45 /* busy: ADDBA negotiation couldn't be performed - try again later */
46 ol_addba_busy,
47};
48
49enum ol_sec_type {
50 ol_sec_type_none,
51 ol_sec_type_wep128,
52 ol_sec_type_wep104,
53 ol_sec_type_wep40,
54 ol_sec_type_tkip,
55 ol_sec_type_tkip_nomic,
56 ol_sec_type_aes_ccmp,
57 ol_sec_type_wapi,
58
59 /* keep this last! */
60 ol_sec_type_types
61};
62
Himanshu Agarwalf65bd4c2016-12-05 17:21:12 +053063typedef void (*tp_ol_packetdump_cb)(qdf_nbuf_t netbuf,
64 uint8_t status, uint8_t vdev_id, uint8_t type);
65void ol_register_packetdump_callback(tp_ol_packetdump_cb ol_tx_packetdump_cb,
66 tp_ol_packetdump_cb ol_rx_packetdump_cb);
67void ol_deregister_packetdump_callback(void);
68
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080069#endif /* _OL_TXRX_API__H_ */