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