Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Kiet Lam | aa8e15a | 2014-02-11 23:30:06 -0800 | [diff] [blame^] | 2 | * Copyright (c) 2012-2013 Qualcomm Atheros, Inc. |
| 3 | * All Rights Reserved. |
| 4 | * Qualcomm Atheros Confidential and Proprietary. |
Gopichand Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 5 | */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6 | #if !defined( __BAPRSN_TXRX_H ) |
| 7 | #define __BAPRSN_TXRX_H |
| 8 | |
| 9 | /**============================================================================= |
| 10 | |
| 11 | bapRsnTxRx.h |
| 12 | |
| 13 | \brief |
| 14 | |
| 15 | Description... |
| 16 | |
| 17 | |
| 18 | Copyright 2008 (c) Qualcomm, Incorporated. |
| 19 | All Rights Reserved. |
| 20 | Qualcomm Confidential and Proprietary. |
| 21 | |
| 22 | ==============================================================================*/ |
| 23 | |
| 24 | #include "vos_types.h" |
| 25 | #include "vos_status.h" |
| 26 | #include "vos_packet.h" |
| 27 | #include "bapRsnAsfPacket.h" |
| 28 | |
| 29 | |
| 30 | typedef int (*pnfTxCompleteHandler)( v_PVOID_t pvosGCtx, vos_pkt_t *pPacket, VOS_STATUS retStatus ); |
| 31 | typedef int (*pnfRxFrameHandler)( v_PVOID_t pvosGCtx, vos_pkt_t *pPacket ); |
| 32 | |
| 33 | /* |
| 34 | \brief bapRsnSendEapolFrame |
| 35 | To push an eapol frame to TL. |
| 36 | |
| 37 | \param pAniPkt - a ready eapol frame that is prepared in tAniPacket format |
| 38 | */ |
| 39 | VOS_STATUS bapRsnSendEapolFrame( v_PVOID_t pvosGCtx, tAniPacket *pAniPkt ); |
| 40 | |
| 41 | |
| 42 | /* |
| 43 | \brief bapRsnRegisterTxRxCallbacks |
| 44 | To register two callbacks for txcomplete and rxFrames . |
| 45 | |
| 46 | \param pfnTxCom - pointer to a function to handle the tx completion. |
| 47 | \param pnfRxFrame - point to a function to handle rx frames |
| 48 | */ |
| 49 | VOS_STATUS bapRsnRegisterTxRxCallbacks( pnfTxCompleteHandler pfnTxCom, pnfRxFrameHandler pnfRxFrame ); |
| 50 | |
| 51 | //To set the callbaks to NULL so it can be change later |
| 52 | void bapRsnClearTxRxCallbacks(void); |
| 53 | |
| 54 | /* |
| 55 | \brief bapRsnRegisterRxCallback |
| 56 | To register the RX frame callbacks to TL to receive EAPOL frames . |
| 57 | |
| 58 | \param pvosGCtx - pointer to global VOSS context. |
| 59 | */ |
| 60 | VOS_STATUS bapRsnRegisterRxCallback( v_PVOID_t pvosGCtx ); |
| 61 | |
| 62 | VOS_STATUS bapRsnRxCallback(v_PVOID_t pv, vos_pkt_t *pPacket); |
| 63 | |
| 64 | #endif //__BAPRSN_TXRX_H |
| 65 | |
| 66 | |
| 67 | |
| 68 | |