#include <linux/export.h>
#include <linux/wireless.h>
#include <linux/nl80211.h>
#include <linux/if_arp.h>
#include <linux/etherdevice.h>
#include <net/iw_handler.h>
#include <net/cfg80211.h>
#include <net/cfg80211-wext.h>
int cfg80211_wext_giwname(struct net_device *dev,
struct iw_request_info *info,
strcpy(name, "IEEE 802.11");
EXPORT_WEXT_HANDLER(cfg80211_wext_giwname);
int cfg80211_wext_siwmode(struct net_device *dev, struct iw_request_info *info,
struct wireless_dev *wdev = dev->ieee80211_ptr;
struct cfg80211_registered_device *rdev;
struct vif_params vifparams;
enum nl80211_iftype type;
rdev = wiphy_to_rdev(wdev->wiphy);
type = NL80211_IFTYPE_STATION;
type = NL80211_IFTYPE_ADHOC;
type = NL80211_IFTYPE_WDS;
type = NL80211_IFTYPE_MONITOR;
if (type == wdev->iftype)