Commit 0c1e7e8e authored by Jeff Garzik's avatar Jeff Garzik

[wireless prism54] remove WIRELESS_EXT ifdefs

parent 8eae4cbf
......@@ -33,9 +33,7 @@
#include "isl_oid.h" /* additional types and defs for isl38xx fw */
#include "oid_mgt.h"
#if WIRELESS_EXT > 12
#include <net/iw_handler.h> /* New driver API */
#endif /* WIRELESS_EXT > 12 */
static int init_mode = CARD_DEFAULT_IW_MODE;
static int init_channel = CARD_DEFAULT_CHANNEL;
......@@ -693,7 +691,6 @@ prism54_translate_bss(struct net_device *ndev, char *current_ev,
current_ev =
iwe_stream_add_event(current_ev, end_buf, &iwe, IW_EV_QUAL_LEN);
#if WIRELESS_EXT > 14
if (priv->wpa) {
u8 wpa_ie[MAX_WPA_IE_LEN];
char *buf, *p;
......@@ -716,7 +713,6 @@ prism54_translate_bss(struct net_device *ndev, char *current_ev,
kfree(buf);
}
}
#endif /* WIRELESS_EXT > 14 */
return current_ev;
}
......@@ -2025,8 +2021,6 @@ prism54_set_oid(struct net_device *ndev, struct iw_request_info *info,
return ret;
}
#if WIRELESS_EXT > 12
static const iw_handler prism54_handler[] = {
(iw_handler) prism54_commit, /* SIOCSIWCOMMIT */
(iw_handler) prism54_get_name, /* SIOCGIWNAME */
......@@ -2044,28 +2038,16 @@ static const iw_handler prism54_handler[] = {
(iw_handler) NULL, /* SIOCGIWPRIV */
(iw_handler) NULL, /* SIOCSIWSTATS */
(iw_handler) NULL, /* SIOCGIWSTATS */
#if WIRELESS_EXT > 15
iw_handler_set_spy, /* SIOCSIWSPY */
iw_handler_get_spy, /* SIOCGIWSPY */
iw_handler_set_thrspy, /* SIOCSIWTHRSPY */
iw_handler_get_thrspy, /* SIOCGIWTHRSPY */
#else /* WIRELESS_EXT > 15 */
(iw_handler) NULL, /* SIOCSIWSPY */
(iw_handler) NULL, /* SIOCGIWSPY */
(iw_handler) NULL, /* -- hole -- */
(iw_handler) NULL, /* -- hole -- */
#endif /* WIRELESS_EXT > 15 */
(iw_handler) prism54_set_wap, /* SIOCSIWAP */
(iw_handler) prism54_get_wap, /* SIOCGIWAP */
(iw_handler) NULL, /* -- hole -- */
(iw_handler) NULL, /* SIOCGIWAPLIST depreciated */
#if WIRELESS_EXT > 13
(iw_handler) prism54_set_scan, /* SIOCSIWSCAN */
(iw_handler) prism54_get_scan, /* SIOCGIWSCAN */
#else /* WIRELESS_EXT > 13 */
(iw_handler) NULL, /* SIOCSIWSCAN */
(iw_handler) NULL, /* SIOCGIWSCAN */
#endif /* WIRELESS_EXT > 13 */
(iw_handler) prism54_set_essid, /* SIOCSIWESSID */
(iw_handler) prism54_get_essid, /* SIOCGIWESSID */
(iw_handler) prism54_set_nick, /* SIOCSIWNICKN */
......@@ -2171,4 +2153,3 @@ const struct iw_handler_def prism54_handler_def = {
.private_args = (struct iw_priv_args *) prism54_private_args,
};
#endif /* WIRELESS_EXT > 12 */
......@@ -25,10 +25,7 @@
#include "islpci_mgt.h"
#include "islpci_dev.h"
#if WIRELESS_EXT > 12
#include <net/iw_handler.h> /* New driver API */
#endif /* WIRELESS_EXT > 12 */
#define SUPPORTED_WIRELESS_EXT 16
......@@ -53,8 +50,6 @@ int prism54_set_mac_address(struct net_device *, void *);
int prism54_ioctl(struct net_device *, struct ifreq *, int);
#if WIRELESS_EXT > 12
extern const struct iw_handler_def prism54_handler_def;
#endif /* WIRELESS_EXT > 12 */
#endif /* _ISL_IOCTL_H */
......@@ -695,10 +695,8 @@ islpci_setup(struct pci_dev *pdev)
ndev->get_stats = &islpci_statistics;
ndev->get_wireless_stats = &prism54_get_wireless_stats;
ndev->do_ioctl = &prism54_ioctl;
#if WIRELESS_EXT > 12
ndev->wireless_handlers =
(struct iw_handler_def *) &prism54_handler_def;
#endif /* WIRELESS_EXT > 12 */
ndev->hard_start_xmit = &islpci_eth_transmit;
/* ndev->set_multicast_list = &islpci_set_multicast_list; */
......
......@@ -32,9 +32,7 @@
#include "isl_oid.h" /* additional types and defs for isl38xx fw */
#include "isl_ioctl.h"
#if WIRELESS_EXT > 12
#include <net/iw_handler.h>
#endif
/******************************************************************************
Global variable definition section
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment