Thomas Gleixner | 457c899 | 2019-05-19 13:08:55 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Johannes Berg | 0e82ffe | 2009-07-27 12:01:50 +0200 | [diff] [blame] | 2 | #ifndef __WEXT_COMPAT |
| 3 | #define __WEXT_COMPAT |
| 4 | |
Johannes Berg | a9a1162 | 2009-07-27 12:01:53 +0200 | [diff] [blame] | 5 | #include <net/iw_handler.h> |
| 6 | #include <linux/wireless.h> |
| 7 | |
Johannes Berg | 2afe38d | 2015-01-06 14:00:53 +0100 | [diff] [blame] | 8 | #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 Berg | 0e82ffe | 2009-07-27 12:01:50 +0200 | [diff] [blame] | 14 | int cfg80211_ibss_wext_siwfreq(struct net_device *dev, |
| 15 | struct iw_request_info *info, |
| 16 | struct iw_freq *freq, char *extra); |
| 17 | int cfg80211_ibss_wext_giwfreq(struct net_device *dev, |
| 18 | struct iw_request_info *info, |
| 19 | struct iw_freq *freq, char *extra); |
Johannes Berg | 562e482 | 2009-07-27 12:01:51 +0200 | [diff] [blame] | 20 | int cfg80211_ibss_wext_siwap(struct net_device *dev, |
| 21 | struct iw_request_info *info, |
| 22 | struct sockaddr *ap_addr, char *extra); |
| 23 | int cfg80211_ibss_wext_giwap(struct net_device *dev, |
| 24 | struct iw_request_info *info, |
| 25 | struct sockaddr *ap_addr, char *extra); |
Johannes Berg | 1f9298f | 2009-07-27 12:01:52 +0200 | [diff] [blame] | 26 | int cfg80211_ibss_wext_siwessid(struct net_device *dev, |
| 27 | struct iw_request_info *info, |
| 28 | struct iw_point *data, char *ssid); |
| 29 | int cfg80211_ibss_wext_giwessid(struct net_device *dev, |
| 30 | struct iw_request_info *info, |
| 31 | struct iw_point *data, char *ssid); |
Johannes Berg | 0e82ffe | 2009-07-27 12:01:50 +0200 | [diff] [blame] | 32 | |
| 33 | int cfg80211_mgd_wext_siwfreq(struct net_device *dev, |
| 34 | struct iw_request_info *info, |
| 35 | struct iw_freq *freq, char *extra); |
| 36 | int cfg80211_mgd_wext_giwfreq(struct net_device *dev, |
| 37 | struct iw_request_info *info, |
| 38 | struct iw_freq *freq, char *extra); |
Johannes Berg | 562e482 | 2009-07-27 12:01:51 +0200 | [diff] [blame] | 39 | int cfg80211_mgd_wext_siwap(struct net_device *dev, |
| 40 | struct iw_request_info *info, |
| 41 | struct sockaddr *ap_addr, char *extra); |
| 42 | int cfg80211_mgd_wext_giwap(struct net_device *dev, |
| 43 | struct iw_request_info *info, |
| 44 | struct sockaddr *ap_addr, char *extra); |
Johannes Berg | 1f9298f | 2009-07-27 12:01:52 +0200 | [diff] [blame] | 45 | int cfg80211_mgd_wext_siwessid(struct net_device *dev, |
| 46 | struct iw_request_info *info, |
| 47 | struct iw_point *data, char *ssid); |
| 48 | int cfg80211_mgd_wext_giwessid(struct net_device *dev, |
| 49 | struct iw_request_info *info, |
| 50 | struct iw_point *data, char *ssid); |
Johannes Berg | 0e82ffe | 2009-07-27 12:01:50 +0200 | [diff] [blame] | 51 | |
Johannes Berg | 04b0c5c | 2011-07-15 13:01:38 +0200 | [diff] [blame] | 52 | int cfg80211_wext_siwmlme(struct net_device *dev, |
| 53 | struct iw_request_info *info, |
| 54 | struct iw_point *data, char *extra); |
| 55 | int cfg80211_wext_siwgenie(struct net_device *dev, |
| 56 | struct iw_request_info *info, |
| 57 | struct iw_point *data, char *extra); |
| 58 | |
| 59 | |
Zhao, Gang | 96998e3 | 2014-04-09 09:28:06 +0800 | [diff] [blame] | 60 | int cfg80211_wext_freq(struct iw_freq *freq); |
Johannes Berg | 0e82ffe | 2009-07-27 12:01:50 +0200 | [diff] [blame] | 61 | |
Johannes Berg | a9a1162 | 2009-07-27 12:01:53 +0200 | [diff] [blame] | 62 | |
| 63 | extern const struct iw_handler_def cfg80211_wext_handler; |
Johannes Berg | 0e82ffe | 2009-07-27 12:01:50 +0200 | [diff] [blame] | 64 | #endif /* __WEXT_COMPAT */ |