blob: 2b986578f0031a73d448c48133c355cc385622ed [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lamaa8e15a2014-02-11 23:30:06 -08002 * Copyright (c) 2012-2013 Qualcomm Atheros, Inc.
3 * All Rights Reserved.
4 * Qualcomm Atheros Confidential and Proprietary.
Gopichand Nakkala92f07d82013-01-08 21:16:34 -08005 */
Jeff Johnson295189b2012-06-20 16:38:30 -07006#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
30typedef int (*pnfTxCompleteHandler)( v_PVOID_t pvosGCtx, vos_pkt_t *pPacket, VOS_STATUS retStatus );
31typedef 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*/
39VOS_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*/
49VOS_STATUS bapRsnRegisterTxRxCallbacks( pnfTxCompleteHandler pfnTxCom, pnfRxFrameHandler pnfRxFrame );
50
51//To set the callbaks to NULL so it can be change later
52void 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*/
60VOS_STATUS bapRsnRegisterRxCallback( v_PVOID_t pvosGCtx );
61
62VOS_STATUS bapRsnRxCallback(v_PVOID_t pv, vos_pkt_t *pPacket);
63
64#endif //__BAPRSN_TXRX_H
65
66
67
68