Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2012, Code Aurora Forum. 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 | #if !defined( __BAPRSN_TXRX_H ) |
| 23 | #define __BAPRSN_TXRX_H |
| 24 | |
| 25 | /**============================================================================= |
| 26 | |
| 27 | bapRsnTxRx.h |
| 28 | |
| 29 | \brief |
| 30 | |
| 31 | Description... |
| 32 | |
| 33 | |
| 34 | Copyright 2008 (c) Qualcomm, Incorporated. |
| 35 | All Rights Reserved. |
| 36 | Qualcomm Confidential and Proprietary. |
| 37 | |
| 38 | ==============================================================================*/ |
| 39 | |
| 40 | #include "vos_types.h" |
| 41 | #include "vos_status.h" |
| 42 | #include "vos_packet.h" |
| 43 | #include "bapRsnAsfPacket.h" |
| 44 | |
| 45 | |
| 46 | typedef int (*pnfTxCompleteHandler)( v_PVOID_t pvosGCtx, vos_pkt_t *pPacket, VOS_STATUS retStatus ); |
| 47 | typedef int (*pnfRxFrameHandler)( v_PVOID_t pvosGCtx, vos_pkt_t *pPacket ); |
| 48 | |
| 49 | /* |
| 50 | \brief bapRsnSendEapolFrame |
| 51 | To push an eapol frame to TL. |
| 52 | |
| 53 | \param pAniPkt - a ready eapol frame that is prepared in tAniPacket format |
| 54 | */ |
| 55 | VOS_STATUS bapRsnSendEapolFrame( v_PVOID_t pvosGCtx, tAniPacket *pAniPkt ); |
| 56 | |
| 57 | |
| 58 | /* |
| 59 | \brief bapRsnRegisterTxRxCallbacks |
| 60 | To register two callbacks for txcomplete and rxFrames . |
| 61 | |
| 62 | \param pfnTxCom - pointer to a function to handle the tx completion. |
| 63 | \param pnfRxFrame - point to a function to handle rx frames |
| 64 | */ |
| 65 | VOS_STATUS bapRsnRegisterTxRxCallbacks( pnfTxCompleteHandler pfnTxCom, pnfRxFrameHandler pnfRxFrame ); |
| 66 | |
| 67 | //To set the callbaks to NULL so it can be change later |
| 68 | void bapRsnClearTxRxCallbacks(void); |
| 69 | |
| 70 | /* |
| 71 | \brief bapRsnRegisterRxCallback |
| 72 | To register the RX frame callbacks to TL to receive EAPOL frames . |
| 73 | |
| 74 | \param pvosGCtx - pointer to global VOSS context. |
| 75 | */ |
| 76 | VOS_STATUS bapRsnRegisterRxCallback( v_PVOID_t pvosGCtx ); |
| 77 | |
| 78 | VOS_STATUS bapRsnRxCallback(v_PVOID_t pv, vos_pkt_t *pPacket); |
| 79 | |
| 80 | #endif //__BAPRSN_TXRX_H |
| 81 | |
| 82 | |
| 83 | |
| 84 | |