aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-03-18 21:29:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-03-23 16:50:27 -0400
commit270020e85ec88a832d663fff4489523169641c2b (patch)
tree83f7e72af2f53ecc1f3397aa3ca8b91cb14aebdc /drivers
parent76326f1d4c98fe01daf363e3d07f84bafed1feec (diff)
drivers/net/wireless: Use IW_HANDLER macro
Convert direct uses of [ (foo - SIOCIWFIRST) , fn) Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ray_cs.c40
-rw-r--r--drivers/net/wireless/wl3501_cs.c52
2 files changed, 46 insertions, 46 deletions
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 84c530aa52f9..a42ee01e7b14 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -1531,28 +1531,28 @@ static iw_stats *ray_get_wireless_stats(struct net_device *dev)
1531 */ 1531 */
1532 1532
1533static const iw_handler ray_handler[] = { 1533static const iw_handler ray_handler[] = {
1534 [SIOCSIWCOMMIT - SIOCIWFIRST] = (iw_handler) ray_commit, 1534 IW_HANDLER(SIOCSIWCOMMIT, (iw_handler)ray_commit),
1535 [SIOCGIWNAME - SIOCIWFIRST] = (iw_handler) ray_get_name, 1535 IW_HANDLER(SIOCGIWNAME, (iw_handler)ray_get_name),
1536 [SIOCSIWFREQ - SIOCIWFIRST] = (iw_handler) ray_set_freq, 1536 IW_HANDLER(SIOCSIWFREQ, (iw_handler)ray_set_freq),
1537 [SIOCGIWFREQ - SIOCIWFIRST] = (iw_handler) ray_get_freq, 1537 IW_HANDLER(SIOCGIWFREQ, (iw_handler)ray_get_freq),
1538 [SIOCSIWMODE - SIOCIWFIRST] = (iw_handler) ray_set_mode, 1538 IW_HANDLER(SIOCSIWMODE, (iw_handler)ray_set_mode),
1539 [SIOCGIWMODE - SIOCIWFIRST] = (iw_handler) ray_get_mode, 1539 IW_HANDLER(SIOCGIWMODE, (iw_handler)ray_get_mode),
1540 [SIOCGIWRANGE - SIOCIWFIRST] = (iw_handler) ray_get_range, 1540 IW_HANDLER(SIOCGIWRANGE, (iw_handler)ray_get_range),
1541#ifdef WIRELESS_SPY 1541#ifdef WIRELESS_SPY
1542 [SIOCSIWSPY - SIOCIWFIRST] = (iw_handler) iw_handler_set_spy, 1542 IW_HANDLER(SIOCSIWSPY, iw_handler_set_spy),
1543 [SIOCGIWSPY - SIOCIWFIRST] = (iw_handler) iw_handler_get_spy, 1543 IW_HANDLER(SIOCGIWSPY, iw_handler_get_spy),
1544 [SIOCSIWTHRSPY - SIOCIWFIRST] = (iw_handler) iw_handler_set_thrspy, 1544 IW_HANDLER(SIOCSIWTHRSPY, iw_handler_set_thrspy),
1545 [SIOCGIWTHRSPY - SIOCIWFIRST] = (iw_handler) iw_handler_get_thrspy, 1545 IW_HANDLER(SIOCGIWTHRSPY, iw_handler_get_thrspy),
1546#endif /* WIRELESS_SPY */ 1546#endif /* WIRELESS_SPY */
1547 [SIOCGIWAP - SIOCIWFIRST] = (iw_handler) ray_get_wap, 1547 IW_HANDLER(SIOCGIWAP, (iw_handler)ray_get_wap),
1548 [SIOCSIWESSID - SIOCIWFIRST] = (iw_handler) ray_set_essid, 1548 IW_HANDLER(SIOCSIWESSID, (iw_handler)ray_set_essid),
1549 [SIOCGIWESSID - SIOCIWFIRST] = (iw_handler) ray_get_essid, 1549 IW_HANDLER(SIOCGIWESSID, (iw_handler)ray_get_essid),
1550 [SIOCSIWRATE - SIOCIWFIRST] = (iw_handler) ray_set_rate, 1550 IW_HANDLER(SIOCSIWRATE, (iw_handler)ray_set_rate),
1551 [SIOCGIWRATE - SIOCIWFIRST] = (iw_handler) ray_get_rate, 1551 IW_HANDLER(SIOCGIWRATE, (iw_handler)ray_get_rate),
1552 [SIOCSIWRTS - SIOCIWFIRST] = (iw_handler) ray_set_rts, 1552 IW_HANDLER(SIOCSIWRTS, (iw_handler)ray_set_rts),
1553 [SIOCGIWRTS - SIOCIWFIRST] = (iw_handler) ray_get_rts, 1553 IW_HANDLER(SIOCGIWRTS, (iw_handler)ray_get_rts),
1554 [SIOCSIWFRAG - SIOCIWFIRST] = (iw_handler) ray_set_frag, 1554 IW_HANDLER(SIOCSIWFRAG, (iw_handler)ray_set_frag),
1555 [SIOCGIWFRAG - SIOCIWFIRST] = (iw_handler) ray_get_frag, 1555 IW_HANDLER(SIOCGIWFRAG, (iw_handler)ray_get_frag),
1556}; 1556};
1557 1557
1558#define SIOCSIPFRAMING SIOCIWFIRSTPRIV /* Set framing mode */ 1558#define SIOCSIPFRAMING SIOCIWFIRSTPRIV /* Set framing mode */
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c
index 7b9621de239f..65dd502eab0d 100644
--- a/drivers/net/wireless/wl3501_cs.c
+++ b/drivers/net/wireless/wl3501_cs.c
@@ -1834,32 +1834,32 @@ out:
1834} 1834}
1835 1835
1836static const iw_handler wl3501_handler[] = { 1836static const iw_handler wl3501_handler[] = {
1837 [SIOCGIWNAME - SIOCIWFIRST] = wl3501_get_name, 1837 IW_HANDLER(SIOCGIWNAME, wl3501_get_name),
1838 [SIOCSIWFREQ - SIOCIWFIRST] = wl3501_set_freq, 1838 IW_HANDLER(SIOCSIWFREQ, wl3501_set_freq),
1839 [SIOCGIWFREQ - SIOCIWFIRST] = wl3501_get_freq, 1839 IW_HANDLER(SIOCGIWFREQ, wl3501_get_freq),
1840 [SIOCSIWMODE - SIOCIWFIRST] = wl3501_set_mode, 1840 IW_HANDLER(SIOCSIWMODE, wl3501_set_mode),
1841 [SIOCGIWMODE - SIOCIWFIRST] = wl3501_get_mode, 1841 IW_HANDLER(SIOCGIWMODE, wl3501_get_mode),
1842 [SIOCGIWSENS - SIOCIWFIRST] = wl3501_get_sens, 1842 IW_HANDLER(SIOCGIWSENS, wl3501_get_sens),
1843 [SIOCGIWRANGE - SIOCIWFIRST] = wl3501_get_range, 1843 IW_HANDLER(SIOCGIWRANGE, wl3501_get_range),
1844 [SIOCSIWSPY - SIOCIWFIRST] = iw_handler_set_spy, 1844 IW_HANDLER(SIOCSIWSPY, iw_handler_set_spy),
1845 [SIOCGIWSPY - SIOCIWFIRST] = iw_handler_get_spy, 1845 IW_HANDLER(SIOCGIWSPY, iw_handler_get_spy),
1846 [SIOCSIWTHRSPY - SIOCIWFIRST] = iw_handler_set_thrspy, 1846 IW_HANDLER(SIOCSIWTHRSPY, iw_handler_set_thrspy),
1847 [SIOCGIWTHRSPY - SIOCIWFIRST] = iw_handler_get_thrspy, 1847 IW_HANDLER(SIOCGIWTHRSPY, iw_handler_get_thrspy),
1848 [SIOCSIWAP - SIOCIWFIRST] = wl3501_set_wap, 1848 IW_HANDLER(SIOCSIWAP, wl3501_set_wap),
1849 [SIOCGIWAP - SIOCIWFIRST] = wl3501_get_wap, 1849 IW_HANDLER(SIOCGIWAP, wl3501_get_wap),
1850 [SIOCSIWSCAN - SIOCIWFIRST] = wl3501_set_scan, 1850 IW_HANDLER(SIOCSIWSCAN, wl3501_set_scan),
1851 [SIOCGIWSCAN - SIOCIWFIRST] = wl3501_get_scan, 1851 IW_HANDLER(SIOCGIWSCAN, wl3501_get_scan),
1852 [SIOCSIWESSID - SIOCIWFIRST] = wl3501_set_essid, 1852 IW_HANDLER(SIOCSIWESSID, wl3501_set_essid),
1853 [SIOCGIWESSID - SIOCIWFIRST] = wl3501_get_essid, 1853 IW_HANDLER(SIOCGIWESSID, wl3501_get_essid),
1854 [SIOCSIWNICKN - SIOCIWFIRST] = wl3501_set_nick, 1854 IW_HANDLER(SIOCSIWNICKN, wl3501_set_nick),
1855 [SIOCGIWNICKN - SIOCIWFIRST] = wl3501_get_nick, 1855 IW_HANDLER(SIOCGIWNICKN, wl3501_get_nick),
1856 [SIOCGIWRATE - SIOCIWFIRST] = wl3501_get_rate, 1856 IW_HANDLER(SIOCGIWRATE, wl3501_get_rate),
1857 [SIOCGIWRTS - SIOCIWFIRST] = wl3501_get_rts_threshold, 1857 IW_HANDLER(SIOCGIWRTS, wl3501_get_rts_threshold),
1858 [SIOCGIWFRAG - SIOCIWFIRST] = wl3501_get_frag_threshold, 1858 IW_HANDLER(SIOCGIWFRAG, wl3501_get_frag_threshold),
1859 [SIOCGIWTXPOW - SIOCIWFIRST] = wl3501_get_txpow, 1859 IW_HANDLER(SIOCGIWTXPOW, wl3501_get_txpow),
1860 [SIOCGIWRETRY - SIOCIWFIRST] = wl3501_get_retry, 1860 IW_HANDLER(SIOCGIWRETRY, wl3501_get_retry),
1861 [SIOCGIWENCODE - SIOCIWFIRST] = wl3501_get_encode, 1861 IW_HANDLER(SIOCGIWENCODE, wl3501_get_encode),
1862 [SIOCGIWPOWER - SIOCIWFIRST] = wl3501_get_power, 1862 IW_HANDLER(SIOCGIWPOWER, wl3501_get_power),
1863}; 1863};
1864 1864
1865static const struct iw_handler_def wl3501_handler_def = { 1865static const struct iw_handler_def wl3501_handler_def = {