2 ** $Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/os/linux/include/gl_cfg80211.h#1 $
5 /*! \file gl_cfg80211.h
6 \brief This file is for Portable Driver linux cfg80211 support.
9 /*******************************************************************************
10 * Copyright (c) 2007 MediaTek Inc.
12 * All rights reserved. Copying, compilation, modification, distribution
13 * or any other use whatsoever of this material is strictly prohibited
14 * except in accordance with a Software License Agreement with
16 ********************************************************************************
19 /*******************************************************************************
22 * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND
23 * AGREES THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK
24 * SOFTWARE") RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE
25 * PROVIDED TO BUYER ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY
26 * DISCLAIMS ANY AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
27 * LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
28 * PARTICULAR PURPOSE OR NONINFRINGEMENT. NEITHER DOES MEDIATEK PROVIDE
29 * ANY WARRANTY WHATSOEVER WITH RESPECT TO THE SOFTWARE OF ANY THIRD PARTY
30 * WHICH MAY BE USED BY, INCORPORATED IN, OR SUPPLIED WITH THE MEDIATEK
31 * SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH THIRD PARTY FOR ANY
32 * WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE
33 * FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S SPECIFICATION OR TO
34 * CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
36 * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
37 * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL
38 * BE, AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT
39 * ISSUE, OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY
40 * BUYER TO MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
42 * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
43 * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT
44 * OF LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING
45 * THEREOF AND RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN
46 * FRANCISCO, CA, UNDER THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE
48 ********************************************************************************
52 ** $Log: gl_cfg80211.h $
55 ** [WCXRP00001269] [MT6620 Wi-Fi][Driver] cfg80211 porting merge back to DaVinci
60 #ifndef _GL_CFG80211_H
61 #define _GL_CFG80211_H
63 /*******************************************************************************
64 * C O M P I L E R F L A G S
65 ********************************************************************************
68 /*******************************************************************************
69 * E X T E R N A L R E F E R E N C E S
70 ********************************************************************************
72 #include <linux/kernel.h>
73 #include <linux/netdevice.h>
74 #include <linux/wireless.h>
75 #include <linux/ieee80211.h>
76 #include <net/cfg80211.h>
80 /*******************************************************************************
82 ********************************************************************************
85 /*******************************************************************************
87 ********************************************************************************
90 /*******************************************************************************
92 ********************************************************************************
95 /*******************************************************************************
96 * P R I V A T E D A T A
97 ********************************************************************************
100 /*******************************************************************************
102 ********************************************************************************
105 /*******************************************************************************
106 * F U N C T I O N D E C L A R A T I O N S
107 ********************************************************************************
111 mtk_cfg80211_change_iface (
113 struct net_device *ndev,
114 enum nl80211_iftype type,
116 struct vif_params *params
121 mtk_cfg80211_add_key (
123 struct net_device *ndev,
127 struct key_params *params
132 mtk_cfg80211_get_key (
134 struct net_device *ndev,
139 void (*callback)(void *cookie, struct key_params*)
144 mtk_cfg80211_del_key (
146 struct net_device *ndev,
154 mtk_cfg80211_set_default_key (
156 struct net_device *ndev,
164 mtk_cfg80211_get_station (
166 struct net_device *ndev,
168 struct station_info *sinfo
175 struct net_device *ndev,
176 struct cfg80211_scan_request *request
181 mtk_cfg80211_connect (
183 struct net_device *ndev,
184 struct cfg80211_connect_params *sme
189 mtk_cfg80211_disconnect (
191 struct net_device *ndev,
197 mtk_cfg80211_join_ibss (
199 struct net_device *ndev,
200 struct cfg80211_ibss_params *params
205 mtk_cfg80211_leave_ibss (
207 struct net_device *ndev
212 mtk_cfg80211_set_power_mgmt (
214 struct net_device *ndev,
221 mtk_cfg80211_set_pmksa (
223 struct net_device *ndev,
224 struct cfg80211_pmksa *pmksa
229 mtk_cfg80211_del_pmksa (
231 struct net_device *ndev,
232 struct cfg80211_pmksa *pmksa
237 mtk_cfg80211_flush_pmksa (
239 struct net_device *ndev
244 mtk_cfg80211_remain_on_channel (
246 struct net_device *ndev,
247 struct ieee80211_channel *chan,
248 enum nl80211_channel_type channel_type,
249 unsigned int duration,
255 mtk_cfg80211_cancel_remain_on_channel (
257 struct net_device *ndev,
263 mtk_cfg80211_mgmt_tx (
265 struct net_device *ndev,
266 struct ieee80211_channel *channel,
268 enum nl80211_channel_type channel_type,
269 bool channel_type_valid,
274 bool dont_wait_for_ack,
280 mtk_cfg80211_mgmt_tx_cancel_wait (
282 struct net_device *ndev,
286 #if CONFIG_NL80211_TESTMODE
288 mtk_cfg80211_testmode_cmd(
289 IN struct wiphy *wiphy,
295 mtk_cfg80211_testmode_sw_cmd(
296 IN struct wiphy *wiphy,
302 mtk_cfg80211_testmode_set_key_ext(
303 IN struct wiphy *wiphy,
309 #error "Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support Wi-Fi Direct"
313 /*******************************************************************************
315 ********************************************************************************
318 #endif /* _GL_CFG80211_H */