xref: /linux/net/wireless/wext-compat.h (revision f72aa1b276281b4e4f75261af8425bc99d903f3e)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __WEXT_COMPAT
3 #define __WEXT_COMPAT
4 
5 #include <net/iw_handler.h>
6 #include <linux/wireless.h>
7 
8 int cfg80211_ibss_wext_siwfreq(struct net_device *dev,
9 			       struct iw_request_info *info,
10 			       struct iw_freq *wextfreq, char *extra);
11 int cfg80211_ibss_wext_giwfreq(struct net_device *dev,
12 			       struct iw_request_info *info,
13 			       struct iw_freq *freq, char *extra);
14 int cfg80211_ibss_wext_siwap(struct net_device *dev,
15 			     struct iw_request_info *info,
16 			     struct sockaddr *ap_addr, char *extra);
17 int cfg80211_ibss_wext_giwap(struct net_device *dev,
18 			     struct iw_request_info *info,
19 			     struct sockaddr *ap_addr, char *extra);
20 int cfg80211_ibss_wext_siwessid(struct net_device *dev,
21 				struct iw_request_info *info,
22 				struct iw_point *data, char *ssid);
23 int cfg80211_ibss_wext_giwessid(struct net_device *dev,
24 				struct iw_request_info *info,
25 				struct iw_point *data, char *ssid);
26 
27 int cfg80211_mgd_wext_siwfreq(struct net_device *dev,
28 			      struct iw_request_info *info,
29 			      struct iw_freq *wextfreq, char *extra);
30 int cfg80211_mgd_wext_giwfreq(struct net_device *dev,
31 			      struct iw_request_info *info,
32 			      struct iw_freq *freq, char *extra);
33 int cfg80211_mgd_wext_siwap(struct net_device *dev,
34 			    struct iw_request_info *info,
35 			    struct sockaddr *ap_addr, char *extra);
36 int cfg80211_mgd_wext_giwap(struct net_device *dev,
37 			    struct iw_request_info *info,
38 			    struct sockaddr *ap_addr, char *extra);
39 int cfg80211_mgd_wext_siwessid(struct net_device *dev,
40 			       struct iw_request_info *info,
41 			       struct iw_point *data, char *ssid);
42 int cfg80211_mgd_wext_giwessid(struct net_device *dev,
43 			       struct iw_request_info *info,
44 			       struct iw_point *data, char *ssid);
45 
46 int cfg80211_wext_siwmlme(struct net_device *dev,
47 			  struct iw_request_info *info,
48 			  union iwreq_data *wrqu, char *extra);
49 int cfg80211_wext_siwgenie(struct net_device *dev,
50 			   struct iw_request_info *info,
51 			   union iwreq_data *wrqu, char *extra);
52 
53 
54 int cfg80211_wext_freq(struct iw_freq *freq);
55 
56 
57 extern const struct iw_handler_def cfg80211_wext_handler;
58 #endif /* __WEXT_COMPAT */
59