blob: b373760f0b4619b4c229485d134720a0db7b2330 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lam842dad02014-02-18 18:44:02 -08002 * Copyright (c) 2012-2013 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.
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080020 */
Kiet Lam842dad02014-02-18 18:44:02 -080021
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
Jeff Johnson295189b2012-06-20 16:38:30 -070028#if !defined( BAP_HDD_MISC_H )
29#define BAP_HDD_MISC_H
30
31/**===========================================================================
32
33 \file BAP_HDD_MISC.h
34
35 \brief Linux HDD Adapter Type
Jeff Johnson295189b2012-06-20 16:38:30 -070036
37 ==========================================================================*/
38
39/*---------------------------------------------------------------------------
40 Include files
41 -------------------------------------------------------------------------*/
42
43#include <bapApi.h>
44#include <vos_types.h>
45/*---------------------------------------------------------------------------
46 Function declarations and documenation
47 -------------------------------------------------------------------------*/
48
49/**---------------------------------------------------------------------------
50
51 \brief WLANBAP_SetConfig() - To updates some configuration for BAP module in
52 SME
53
54 This should be called after WLANBAP_Start().
55
56 \param - NA
57
58 \return -
59 The result code associated with performing the operation
60
61 VOS_STATUS_E_FAILURE: failed to set the config in SME BAP
62 VOS_STATUS_SUCCESS: Success
63
64
65 --------------------------------------------------------------------------*/
66VOS_STATUS WLANBAP_SetConfig
67(
68 WLANBAP_ConfigType *pConfig
69);
70
71/**---------------------------------------------------------------------------
72
73 \brief WLANBAP_RegisterWithHCI() - To register WLAN PAL with HCI
74
75
76 \param
77 pAdapter : HDD adapter
78
79 \return -
80 The result code associated with performing the operation
81
82 VOS_STATUS_E_FAILURE: failed to register with HCI
83 VOS_STATUS_SUCCESS: Success
84
85
86 --------------------------------------------------------------------------*/
87VOS_STATUS WLANBAP_RegisterWithHCI(hdd_adapter_t *pAdapter);
88
89/**---------------------------------------------------------------------------
90
91 \brief WLANBAP_DeregisterFromHCI() - To deregister WLAN PAL with HCI
92
93
94 \param - NA
95
96 \return -
97 The result code associated with performing the operation
98
99 VOS_STATUS_E_FAILURE: failed to deregister with HCI
100 VOS_STATUS_SUCCESS: Success
101
102
103 --------------------------------------------------------------------------*/
104VOS_STATUS WLANBAP_DeregisterFromHCI(void);
105
106/**---------------------------------------------------------------------------
107
108 \brief WLANBAP_StopAmp() - To stop the current AMP traffic/connection
109
110
111 \param - NA
112
113 \return -
114 The result code associated with performing the operation
115
116 VOS_STATUS_E_FAILURE: failed to stop AMP connection
117 VOS_STATUS_SUCCESS: Success
118
119
120 --------------------------------------------------------------------------*/
121VOS_STATUS WLANBAP_StopAmp(void);
122
123/**---------------------------------------------------------------------------
124
125 \brief WLANBAP_AmpSessionOn() - To check if AMP connection is on currently
126
127
128 \param - NA
129
130 \return -
131 The result code associated with performing the operation
132
133 VOS_TRUE: AMP connection is on
134 VOS_FALSE: AMP connection is not on
135
136
137 --------------------------------------------------------------------------*/
138v_BOOL_t WLANBAP_AmpSessionOn(void);
139#endif // end #if !defined( BAP_HDD_MISC_H )