Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Kiet Lam | 842dad0 | 2014-02-18 18:44:02 -0800 | [diff] [blame^] | 2 | * Copyright (c) 2013-2014 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 Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 20 | */ |
Kiet Lam | 842dad0 | 2014-02-18 18:44:02 -0800 | [diff] [blame^] | 21 | |
| 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 Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 28 | #if !defined( WLAN_HDD_HOSTAPD_H ) |
| 29 | #define WLAN_HDD_HOSTAPD_H |
| 30 | |
| 31 | /**=========================================================================== |
Jeff Johnson | 7dda777 | 2013-02-27 08:36:13 -0800 | [diff] [blame] | 32 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 33 | \file WLAN_HDD_HOSTAPD_H.h |
Jeff Johnson | 7dda777 | 2013-02-27 08:36:13 -0800 | [diff] [blame] | 34 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 35 | \brief Linux HDD HOSTAPD include file |
Madan Mohan Koyyalamudi | cd78499 | 2013-01-11 15:30:36 -0800 | [diff] [blame] | 36 | Copyright 2008-2013 (c) Qualcomm, Incorporated. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 37 | All Rights Reserved. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 38 | ==========================================================================*/ |
Jeff Johnson | 7dda777 | 2013-02-27 08:36:13 -0800 | [diff] [blame] | 39 | |
| 40 | /*--------------------------------------------------------------------------- |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 41 | Include files |
Jeff Johnson | 7dda777 | 2013-02-27 08:36:13 -0800 | [diff] [blame] | 42 | -------------------------------------------------------------------------*/ |
| 43 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 44 | #include <linux/netdevice.h> |
| 45 | #include <linux/skbuff.h> |
| 46 | #include <vos_list.h> |
| 47 | #include <vos_types.h> |
| 48 | |
| 49 | #include <wlan_qct_tl.h> |
| 50 | #include <wlan_hdd_main.h> |
| 51 | |
Jeff Johnson | 7dda777 | 2013-02-27 08:36:13 -0800 | [diff] [blame] | 52 | /*--------------------------------------------------------------------------- |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 53 | Preprocessor definitions and constants |
Jeff Johnson | 7dda777 | 2013-02-27 08:36:13 -0800 | [diff] [blame] | 54 | -------------------------------------------------------------------------*/ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 55 | |
Rajesh Chauhan | a0516c6 | 2014-01-30 16:11:18 -0800 | [diff] [blame] | 56 | /* max length of command string in hostapd ioctl */ |
| 57 | #define HOSTAPD_IOCTL_COMMAND_STRLEN_MAX 2048 |
| 58 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 59 | hdd_adapter_t* hdd_wlan_create_ap_dev( hdd_context_t *pHddCtx, tSirMacAddr macAddr, tANI_U8 *name); |
| 60 | |
| 61 | VOS_STATUS hdd_register_hostapd(hdd_adapter_t *pAdapter, tANI_U8 rtnl_held); |
| 62 | |
| 63 | VOS_STATUS hdd_unregister_hostapd(hdd_adapter_t *pAdapter); |
| 64 | |
| 65 | eCsrAuthType |
| 66 | hdd_TranslateRSNToCsrAuthType( u_int8_t auth_suite[4]); |
| 67 | |
| 68 | eCsrEncryptionType |
| 69 | hdd_TranslateRSNToCsrEncryptionType(u_int8_t cipher_suite[4]); |
| 70 | |
| 71 | eCsrEncryptionType |
| 72 | hdd_TranslateRSNToCsrEncryptionType(u_int8_t cipher_suite[4]); |
| 73 | |
| 74 | eCsrAuthType |
| 75 | hdd_TranslateWPAToCsrAuthType(u_int8_t auth_suite[4]); |
| 76 | |
| 77 | eCsrEncryptionType |
| 78 | hdd_TranslateWPAToCsrEncryptionType(u_int8_t cipher_suite[4]); |
| 79 | |
Madan Mohan Koyyalamudi | cd78499 | 2013-01-11 15:30:36 -0800 | [diff] [blame] | 80 | VOS_STATUS hdd_softap_sta_deauth(hdd_adapter_t*,v_U8_t*); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 81 | void hdd_softap_sta_disassoc(hdd_adapter_t*,v_U8_t*); |
| 82 | void hdd_softap_tkip_mic_fail_counter_measure(hdd_adapter_t*,v_BOOL_t); |
| 83 | int hdd_softap_unpackIE( tHalHandle halHandle, |
| 84 | eCsrEncryptionType *pEncryptType, |
| 85 | eCsrEncryptionType *mcEncryptType, |
| 86 | eCsrAuthType *pAuthType, |
| 87 | u_int16_t gen_ie_len, |
| 88 | u_int8_t *gen_ie ); |
| 89 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 90 | VOS_STATUS hdd_hostapd_SAPEventCB( tpSap_Event pSapEvent, v_PVOID_t usrDataForCallback); |
| 91 | VOS_STATUS hdd_init_ap_mode( hdd_adapter_t *pAdapter ); |
| 92 | void hdd_set_ap_ops( struct net_device *pWlanHostapdDev ); |
Arun Kumar Khandavalli | a3bd800 | 2014-01-17 16:21:19 +0530 | [diff] [blame] | 93 | int hdd_hostapd_stop (struct net_device *dev); |
Leo Chang | 0b0e45a | 2013-12-15 15:18:55 -0800 | [diff] [blame] | 94 | #ifdef FEATURE_WLAN_CH_AVOID |
| 95 | void hdd_hostapd_ch_avoid_cb(void *pAdapter, void *indParam); |
| 96 | #endif /* FEATURE_WLAN_CH_AVOID */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 97 | #endif // end #if !defined( WLAN_HDD_HOSTAPD_H ) |