blob: 8d3cc1552e2f03d2b9ac5b9ac529b7f2274fc0c4 [file] [log] [blame]
Thomas Gleixner457c8992019-05-19 13:08:55 +01001/* SPDX-License-Identifier: GPL-2.0-only */
Johannes Berg0e82ffe2009-07-27 12:01:50 +02002#ifndef __WEXT_COMPAT
3#define __WEXT_COMPAT
4
Johannes Berga9a11622009-07-27 12:01:53 +02005#include <net/iw_handler.h>
6#include <linux/wireless.h>
7
Johannes Berg2afe38d2015-01-06 14:00:53 +01008#ifdef CONFIG_CFG80211_WEXT_EXPORT
9#define EXPORT_WEXT_HANDLER(h) EXPORT_SYMBOL_GPL(h)
10#else
11#define EXPORT_WEXT_HANDLER(h)
12#endif /* CONFIG_CFG80211_WEXT_EXPORT */
13
Johannes Berg0e82ffe2009-07-27 12:01:50 +020014int cfg80211_ibss_wext_siwfreq(struct net_device *dev,
15 struct iw_request_info *info,
16 struct iw_freq *freq, char *extra);
17int cfg80211_ibss_wext_giwfreq(struct net_device *dev,
18 struct iw_request_info *info,
19 struct iw_freq *freq, char *extra);
Johannes Berg562e4822009-07-27 12:01:51 +020020int cfg80211_ibss_wext_siwap(struct net_device *dev,
21 struct iw_request_info *info,
22 struct sockaddr *ap_addr, char *extra);
23int cfg80211_ibss_wext_giwap(struct net_device *dev,
24 struct iw_request_info *info,
25 struct sockaddr *ap_addr, char *extra);
Johannes Berg1f9298f2009-07-27 12:01:52 +020026int cfg80211_ibss_wext_siwessid(struct net_device *dev,
27 struct iw_request_info *info,
28 struct iw_point *data, char *ssid);
29int cfg80211_ibss_wext_giwessid(struct net_device *dev,
30 struct iw_request_info *info,
31 struct iw_point *data, char *ssid);
Johannes Berg0e82ffe2009-07-27 12:01:50 +020032
33int cfg80211_mgd_wext_siwfreq(struct net_device *dev,
34 struct iw_request_info *info,
35 struct iw_freq *freq, char *extra);
36int cfg80211_mgd_wext_giwfreq(struct net_device *dev,
37 struct iw_request_info *info,
38 struct iw_freq *freq, char *extra);
Johannes Berg562e4822009-07-27 12:01:51 +020039int cfg80211_mgd_wext_siwap(struct net_device *dev,
40 struct iw_request_info *info,
41 struct sockaddr *ap_addr, char *extra);
42int cfg80211_mgd_wext_giwap(struct net_device *dev,
43 struct iw_request_info *info,
44 struct sockaddr *ap_addr, char *extra);
Johannes Berg1f9298f2009-07-27 12:01:52 +020045int cfg80211_mgd_wext_siwessid(struct net_device *dev,
46 struct iw_request_info *info,
47 struct iw_point *data, char *ssid);
48int cfg80211_mgd_wext_giwessid(struct net_device *dev,
49 struct iw_request_info *info,
50 struct iw_point *data, char *ssid);
Johannes Berg0e82ffe2009-07-27 12:01:50 +020051
Johannes Berg04b0c5c2011-07-15 13:01:38 +020052int cfg80211_wext_siwmlme(struct net_device *dev,
53 struct iw_request_info *info,
54 struct iw_point *data, char *extra);
55int cfg80211_wext_siwgenie(struct net_device *dev,
56 struct iw_request_info *info,
57 struct iw_point *data, char *extra);
58
59
Zhao, Gang96998e32014-04-09 09:28:06 +080060int cfg80211_wext_freq(struct iw_freq *freq);
Johannes Berg0e82ffe2009-07-27 12:01:50 +020061
Johannes Berga9a11622009-07-27 12:01:53 +020062
63extern const struct iw_handler_def cfg80211_wext_handler;
Johannes Berg0e82ffe2009-07-27 12:01:50 +020064#endif /* __WEXT_COMPAT */