blob: 4a212db360710fcefe66c8d71ba75812d9b9c8fb [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Gopichand Nakkala92f07d82013-01-08 21:16:34 -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.
20 */
21/*
Jeff Johnson32d95a32012-09-10 13:15:23 -070022 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -070023 *
24 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
25 *
26 *
27 * Permission to use, copy, modify, and/or distribute this software for
28 * any purpose with or without fee is hereby granted, provided that the
29 * above copyright notice and this permission notice appear in all
30 * copies.
31 *
32 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
33 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
34 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
35 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
36 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
37 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
38 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39 * PERFORMANCE OF THIS SOFTWARE.
40 */
41
42#if !defined( WLAN_HDD_HOSTAPD_H )
43#define WLAN_HDD_HOSTAPD_H
44
45/**===========================================================================
46
47 \file WLAN_HDD_HOSTAPD_H.h
48
49 \brief Linux HDD HOSTAPD include file
50 Copyright 2008 (c) Qualcomm, Incorporated.
51 All Rights Reserved.
52 Qualcomm Confidential and Proprietary.
53
54 ==========================================================================*/
55
56/*---------------------------------------------------------------------------
57 Include files
58 -------------------------------------------------------------------------*/
59
60#include <linux/netdevice.h>
61#include <linux/skbuff.h>
62#include <vos_list.h>
63#include <vos_types.h>
64
65#include <wlan_qct_tl.h>
66#include <wlan_hdd_main.h>
67
68/*---------------------------------------------------------------------------
69 Preprocessor definitions and constants
70 -------------------------------------------------------------------------*/
71
72hdd_adapter_t* hdd_wlan_create_ap_dev( hdd_context_t *pHddCtx, tSirMacAddr macAddr, tANI_U8 *name);
73
74VOS_STATUS hdd_register_hostapd(hdd_adapter_t *pAdapter, tANI_U8 rtnl_held);
75
76VOS_STATUS hdd_unregister_hostapd(hdd_adapter_t *pAdapter);
77
78eCsrAuthType
79hdd_TranslateRSNToCsrAuthType( u_int8_t auth_suite[4]);
80
81eCsrEncryptionType
82hdd_TranslateRSNToCsrEncryptionType(u_int8_t cipher_suite[4]);
83
84eCsrEncryptionType
85hdd_TranslateRSNToCsrEncryptionType(u_int8_t cipher_suite[4]);
86
87eCsrAuthType
88hdd_TranslateWPAToCsrAuthType(u_int8_t auth_suite[4]);
89
90eCsrEncryptionType
91hdd_TranslateWPAToCsrEncryptionType(u_int8_t cipher_suite[4]);
92
93void hdd_softap_sta_deauth(hdd_adapter_t*,v_U8_t*);
94void hdd_softap_sta_disassoc(hdd_adapter_t*,v_U8_t*);
95void hdd_softap_tkip_mic_fail_counter_measure(hdd_adapter_t*,v_BOOL_t);
96int hdd_softap_unpackIE( tHalHandle halHandle,
97 eCsrEncryptionType *pEncryptType,
98 eCsrEncryptionType *mcEncryptType,
99 eCsrAuthType *pAuthType,
100 u_int16_t gen_ie_len,
101 u_int8_t *gen_ie );
102
103#ifdef WLAN_SOFTAP_FEATURE
104VOS_STATUS hdd_hostapd_SAPEventCB( tpSap_Event pSapEvent, v_PVOID_t usrDataForCallback);
105VOS_STATUS hdd_init_ap_mode( hdd_adapter_t *pAdapter );
106void hdd_set_ap_ops( struct net_device *pWlanHostapdDev );
107#endif
108
109#endif // end #if !defined( WLAN_HDD_HOSTAPD_H )