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.
12 ** $Log: gl_cfg80211.h $
14 ** 09 12 2012 wcpadmin
15 ** [ALPS00276400] Remove MTK copyright and legal header on GPL/LGPL related packages
18 ** 08 30 2012 chinglan.wang
19 ** [ALPS00349664] [6577JB][WIFI] Phone can not connect to AP secured with AES via WPS in 802.11n Only
24 #ifndef _GL_CFG80211_H
25 #define _GL_CFG80211_H
27 /*******************************************************************************
28 * C O M P I L E R F L A G S
29 ********************************************************************************
32 /*******************************************************************************
33 * E X T E R N A L R E F E R E N C E S
34 ********************************************************************************
36 #include <linux/kernel.h>
37 #include <linux/netdevice.h>
38 #include <linux/wireless.h>
39 #include <linux/ieee80211.h>
40 #include <net/cfg80211.h>
44 /*******************************************************************************
46 ********************************************************************************
49 /*******************************************************************************
51 ********************************************************************************
54 /*******************************************************************************
56 ********************************************************************************
59 /*******************************************************************************
60 * P R I V A T E D A T A
61 ********************************************************************************
64 /*******************************************************************************
66 ********************************************************************************
69 /*******************************************************************************
70 * F U N C T I O N D E C L A R A T I O N S
71 ********************************************************************************
75 mtk_cfg80211_change_iface (
77 struct net_device *ndev,
78 enum nl80211_iftype type,
80 struct vif_params *params
85 mtk_cfg80211_add_key (
87 struct net_device *ndev,
91 struct key_params *params
96 mtk_cfg80211_get_key (
98 struct net_device *ndev,
103 void (*callback)(void *cookie, struct key_params*)
108 mtk_cfg80211_del_key (
110 struct net_device *ndev,
118 mtk_cfg80211_set_default_key (
120 struct net_device *ndev,
128 mtk_cfg80211_get_station (
130 struct net_device *ndev,
132 struct station_info *sinfo
139 struct net_device *ndev,
140 struct cfg80211_scan_request *request
145 mtk_cfg80211_connect (
147 struct net_device *ndev,
148 struct cfg80211_connect_params *sme
153 mtk_cfg80211_disconnect (
155 struct net_device *ndev,
161 mtk_cfg80211_join_ibss (
163 struct net_device *ndev,
164 struct cfg80211_ibss_params *params
169 mtk_cfg80211_leave_ibss (
171 struct net_device *ndev
176 mtk_cfg80211_set_power_mgmt (
178 struct net_device *ndev,
185 mtk_cfg80211_set_pmksa (
187 struct net_device *ndev,
188 struct cfg80211_pmksa *pmksa
193 mtk_cfg80211_del_pmksa (
195 struct net_device *ndev,
196 struct cfg80211_pmksa *pmksa
201 mtk_cfg80211_flush_pmksa (
203 struct net_device *ndev
208 mtk_cfg80211_remain_on_channel (
210 struct net_device *ndev,
211 struct ieee80211_channel *chan,
212 enum nl80211_channel_type channel_type,
213 unsigned int duration,
219 mtk_cfg80211_cancel_remain_on_channel (
221 struct net_device *ndev,
227 mtk_cfg80211_mgmt_tx (
229 struct net_device *ndev,
230 struct ieee80211_channel *channel,
232 enum nl80211_channel_type channel_type,
233 bool channel_type_valid,
238 bool dont_wait_for_ack,
244 mtk_cfg80211_mgmt_tx_cancel_wait (
246 struct net_device *ndev,
250 #if CONFIG_NL80211_TESTMODE
252 mtk_cfg80211_testmode_cmd(
253 IN struct wiphy *wiphy,
259 mtk_cfg80211_testmode_sw_cmd(
260 IN struct wiphy *wiphy,
266 mtk_cfg80211_testmode_set_key_ext(
267 IN struct wiphy *wiphy,
273 #error "Please ENABLE kernel config (CONFIG_NL80211_TESTMODE) to support Wi-Fi Direct"
277 /*******************************************************************************
279 ********************************************************************************
282 #endif /* _GL_CFG80211_H */