Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Jeff Johnson | 32d95a3 | 2012-09-10 13:15:23 -0700 | [diff] [blame^] | 2 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 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( WLAN_HDD_HOSTAPD_H ) |
| 23 | #define WLAN_HDD_HOSTAPD_H |
| 24 | |
| 25 | /**=========================================================================== |
| 26 | |
| 27 | \file WLAN_HDD_HOSTAPD_H.h |
| 28 | |
| 29 | \brief Linux HDD HOSTAPD include file |
| 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 <linux/netdevice.h> |
| 41 | #include <linux/skbuff.h> |
| 42 | #include <vos_list.h> |
| 43 | #include <vos_types.h> |
| 44 | |
| 45 | #include <wlan_qct_tl.h> |
| 46 | #include <wlan_hdd_main.h> |
| 47 | |
| 48 | /*--------------------------------------------------------------------------- |
| 49 | Preprocessor definitions and constants |
| 50 | -------------------------------------------------------------------------*/ |
| 51 | |
| 52 | hdd_adapter_t* hdd_wlan_create_ap_dev( hdd_context_t *pHddCtx, tSirMacAddr macAddr, tANI_U8 *name); |
| 53 | |
| 54 | VOS_STATUS hdd_register_hostapd(hdd_adapter_t *pAdapter, tANI_U8 rtnl_held); |
| 55 | |
| 56 | VOS_STATUS hdd_unregister_hostapd(hdd_adapter_t *pAdapter); |
| 57 | |
| 58 | eCsrAuthType |
| 59 | hdd_TranslateRSNToCsrAuthType( u_int8_t auth_suite[4]); |
| 60 | |
| 61 | eCsrEncryptionType |
| 62 | hdd_TranslateRSNToCsrEncryptionType(u_int8_t cipher_suite[4]); |
| 63 | |
| 64 | eCsrEncryptionType |
| 65 | hdd_TranslateRSNToCsrEncryptionType(u_int8_t cipher_suite[4]); |
| 66 | |
| 67 | eCsrAuthType |
| 68 | hdd_TranslateWPAToCsrAuthType(u_int8_t auth_suite[4]); |
| 69 | |
| 70 | eCsrEncryptionType |
| 71 | hdd_TranslateWPAToCsrEncryptionType(u_int8_t cipher_suite[4]); |
| 72 | |
| 73 | void hdd_softap_sta_deauth(hdd_adapter_t*,v_U8_t*); |
| 74 | void hdd_softap_sta_disassoc(hdd_adapter_t*,v_U8_t*); |
| 75 | void hdd_softap_tkip_mic_fail_counter_measure(hdd_adapter_t*,v_BOOL_t); |
| 76 | int hdd_softap_unpackIE( tHalHandle halHandle, |
| 77 | eCsrEncryptionType *pEncryptType, |
| 78 | eCsrEncryptionType *mcEncryptType, |
| 79 | eCsrAuthType *pAuthType, |
| 80 | u_int16_t gen_ie_len, |
| 81 | u_int8_t *gen_ie ); |
| 82 | |
| 83 | #ifdef WLAN_SOFTAP_FEATURE |
| 84 | VOS_STATUS hdd_hostapd_SAPEventCB( tpSap_Event pSapEvent, v_PVOID_t usrDataForCallback); |
| 85 | VOS_STATUS hdd_init_ap_mode( hdd_adapter_t *pAdapter ); |
| 86 | void hdd_set_ap_ops( struct net_device *pWlanHostapdDev ); |
| 87 | #endif |
| 88 | |
| 89 | #endif // end #if !defined( WLAN_HDD_HOSTAPD_H ) |