aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2x00/ipw2200.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-03-18 21:29:38 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-03-23 16:50:28 -0400
commit56b632e8cc7a13cece861d890deb2843116f9372 (patch)
tree5dfc2e252f852b40b80feab6d4b164e867ee5b7d /drivers/net/wireless/ipw2x00/ipw2200.c
parent270020e85ec88a832d663fff4489523169641c2b (diff)
drivers/net: Remove local #define IW_IOCTL, use IW_HANDLER
Use #define IW_HANDLER from wireless.h instead Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2x00/ipw2200.c')
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2200.c83
1 files changed, 41 insertions, 42 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c
index d6edc2440128..fcdbe8b00551 100644
--- a/drivers/net/wireless/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/ipw2x00/ipw2200.c
@@ -9980,49 +9980,48 @@ static int ipw_wx_sw_reset(struct net_device *dev,
9980} 9980}
9981 9981
9982/* Rebase the WE IOCTLs to zero for the handler array */ 9982/* Rebase the WE IOCTLs to zero for the handler array */
9983#define IW_IOCTL(x) [(x)-SIOCSIWCOMMIT]
9984static iw_handler ipw_wx_handlers[] = { 9983static iw_handler ipw_wx_handlers[] = {
9985 IW_IOCTL(SIOCGIWNAME) = (iw_handler) cfg80211_wext_giwname, 9984 IW_HANDLER(SIOCGIWNAME, (iw_handler)cfg80211_wext_giwname),
9986 IW_IOCTL(SIOCSIWFREQ) = ipw_wx_set_freq, 9985 IW_HANDLER(SIOCSIWFREQ, ipw_wx_set_freq),
9987 IW_IOCTL(SIOCGIWFREQ) = ipw_wx_get_freq, 9986 IW_HANDLER(SIOCGIWFREQ, ipw_wx_get_freq),
9988 IW_IOCTL(SIOCSIWMODE) = ipw_wx_set_mode, 9987 IW_HANDLER(SIOCSIWMODE, ipw_wx_set_mode),
9989 IW_IOCTL(SIOCGIWMODE) = ipw_wx_get_mode, 9988 IW_HANDLER(SIOCGIWMODE, ipw_wx_get_mode),
9990 IW_IOCTL(SIOCSIWSENS) = ipw_wx_set_sens, 9989 IW_HANDLER(SIOCSIWSENS, ipw_wx_set_sens),
9991 IW_IOCTL(SIOCGIWSENS) = ipw_wx_get_sens, 9990 IW_HANDLER(SIOCGIWSENS, ipw_wx_get_sens),
9992 IW_IOCTL(SIOCGIWRANGE) = ipw_wx_get_range, 9991 IW_HANDLER(SIOCGIWRANGE, ipw_wx_get_range),
9993 IW_IOCTL(SIOCSIWAP) = ipw_wx_set_wap, 9992 IW_HANDLER(SIOCSIWAP, ipw_wx_set_wap),
9994 IW_IOCTL(SIOCGIWAP) = ipw_wx_get_wap, 9993 IW_HANDLER(SIOCGIWAP, ipw_wx_get_wap),
9995 IW_IOCTL(SIOCSIWSCAN) = ipw_wx_set_scan, 9994 IW_HANDLER(SIOCSIWSCAN, ipw_wx_set_scan),
9996 IW_IOCTL(SIOCGIWSCAN) = ipw_wx_get_scan, 9995 IW_HANDLER(SIOCGIWSCAN, ipw_wx_get_scan),
9997 IW_IOCTL(SIOCSIWESSID) = ipw_wx_set_essid, 9996 IW_HANDLER(SIOCSIWESSID, ipw_wx_set_essid),
9998 IW_IOCTL(SIOCGIWESSID) = ipw_wx_get_essid, 9997 IW_HANDLER(SIOCGIWESSID, ipw_wx_get_essid),
9999 IW_IOCTL(SIOCSIWNICKN) = ipw_wx_set_nick, 9998 IW_HANDLER(SIOCSIWNICKN, ipw_wx_set_nick),
10000 IW_IOCTL(SIOCGIWNICKN) = ipw_wx_get_nick, 9999 IW_HANDLER(SIOCGIWNICKN, ipw_wx_get_nick),
10001 IW_IOCTL(SIOCSIWRATE) = ipw_wx_set_rate, 10000 IW_HANDLER(SIOCSIWRATE, ipw_wx_set_rate),
10002 IW_IOCTL(SIOCGIWRATE) = ipw_wx_get_rate, 10001 IW_HANDLER(SIOCGIWRATE, ipw_wx_get_rate),
10003 IW_IOCTL(SIOCSIWRTS) = ipw_wx_set_rts, 10002 IW_HANDLER(SIOCSIWRTS, ipw_wx_set_rts),
10004 IW_IOCTL(SIOCGIWRTS) = ipw_wx_get_rts, 10003 IW_HANDLER(SIOCGIWRTS, ipw_wx_get_rts),
10005 IW_IOCTL(SIOCSIWFRAG) = ipw_wx_set_frag, 10004 IW_HANDLER(SIOCSIWFRAG, ipw_wx_set_frag),
10006 IW_IOCTL(SIOCGIWFRAG) = ipw_wx_get_frag, 10005 IW_HANDLER(SIOCGIWFRAG, ipw_wx_get_frag),
10007 IW_IOCTL(SIOCSIWTXPOW) = ipw_wx_set_txpow, 10006 IW_HANDLER(SIOCSIWTXPOW, ipw_wx_set_txpow),
10008 IW_IOCTL(SIOCGIWTXPOW) = ipw_wx_get_txpow, 10007 IW_HANDLER(SIOCGIWTXPOW, ipw_wx_get_txpow),
10009 IW_IOCTL(SIOCSIWRETRY) = ipw_wx_set_retry, 10008 IW_HANDLER(SIOCSIWRETRY, ipw_wx_set_retry),
10010 IW_IOCTL(SIOCGIWRETRY) = ipw_wx_get_retry, 10009 IW_HANDLER(SIOCGIWRETRY, ipw_wx_get_retry),
10011 IW_IOCTL(SIOCSIWENCODE) = ipw_wx_set_encode, 10010 IW_HANDLER(SIOCSIWENCODE, ipw_wx_set_encode),
10012 IW_IOCTL(SIOCGIWENCODE) = ipw_wx_get_encode, 10011 IW_HANDLER(SIOCGIWENCODE, ipw_wx_get_encode),
10013 IW_IOCTL(SIOCSIWPOWER) = ipw_wx_set_power, 10012 IW_HANDLER(SIOCSIWPOWER, ipw_wx_set_power),
10014 IW_IOCTL(SIOCGIWPOWER) = ipw_wx_get_power, 10013 IW_HANDLER(SIOCGIWPOWER, ipw_wx_get_power),
10015 IW_IOCTL(SIOCSIWSPY) = iw_handler_set_spy, 10014 IW_HANDLER(SIOCSIWSPY, iw_handler_set_spy),
10016 IW_IOCTL(SIOCGIWSPY) = iw_handler_get_spy, 10015 IW_HANDLER(SIOCGIWSPY, iw_handler_get_spy),
10017 IW_IOCTL(SIOCSIWTHRSPY) = iw_handler_set_thrspy, 10016 IW_HANDLER(SIOCSIWTHRSPY, iw_handler_set_thrspy),
10018 IW_IOCTL(SIOCGIWTHRSPY) = iw_handler_get_thrspy, 10017 IW_HANDLER(SIOCGIWTHRSPY, iw_handler_get_thrspy),
10019 IW_IOCTL(SIOCSIWGENIE) = ipw_wx_set_genie, 10018 IW_HANDLER(SIOCSIWGENIE, ipw_wx_set_genie),
10020 IW_IOCTL(SIOCGIWGENIE) = ipw_wx_get_genie, 10019 IW_HANDLER(SIOCGIWGENIE, ipw_wx_get_genie),
10021 IW_IOCTL(SIOCSIWMLME) = ipw_wx_set_mlme, 10020 IW_HANDLER(SIOCSIWMLME, ipw_wx_set_mlme),
10022 IW_IOCTL(SIOCSIWAUTH) = ipw_wx_set_auth, 10021 IW_HANDLER(SIOCSIWAUTH, ipw_wx_set_auth),
10023 IW_IOCTL(SIOCGIWAUTH) = ipw_wx_get_auth, 10022 IW_HANDLER(SIOCGIWAUTH, ipw_wx_get_auth),
10024 IW_IOCTL(SIOCSIWENCODEEXT) = ipw_wx_set_encodeext, 10023 IW_HANDLER(SIOCSIWENCODEEXT, ipw_wx_set_encodeext),
10025 IW_IOCTL(SIOCGIWENCODEEXT) = ipw_wx_get_encodeext, 10024 IW_HANDLER(SIOCGIWENCODEEXT, ipw_wx_get_encodeext),
10026}; 10025};
10027 10026
10028enum { 10027enum {