Commit 06d9b6ac authored by Stanislav Yakovlev's avatar Stanislav Yakovlev Committed by John W. Linville

net/wireless: ipw2x00: Use IW_HANDLER macro from linux/wireless.h

Use IW_HANDLER macro in ipw2100.c to declare wireless handlers.

Note: ipw2200.c already uses it.
Signed-off-by: default avatarStanislav Yakovlev <stas.yakovlev@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9d88c7f6
...@@ -8108,61 +8108,41 @@ static int ipw2100_wx_get_crc_check(struct net_device *dev, ...@@ -8108,61 +8108,41 @@ static int ipw2100_wx_get_crc_check(struct net_device *dev,
#endif /* CONFIG_IPW2100_MONITOR */ #endif /* CONFIG_IPW2100_MONITOR */
static iw_handler ipw2100_wx_handlers[] = { static iw_handler ipw2100_wx_handlers[] = {
NULL, /* SIOCSIWCOMMIT */ IW_HANDLER(SIOCGIWNAME, ipw2100_wx_get_name),
ipw2100_wx_get_name, /* SIOCGIWNAME */ IW_HANDLER(SIOCSIWFREQ, ipw2100_wx_set_freq),
NULL, /* SIOCSIWNWID */ IW_HANDLER(SIOCGIWFREQ, ipw2100_wx_get_freq),
NULL, /* SIOCGIWNWID */ IW_HANDLER(SIOCSIWMODE, ipw2100_wx_set_mode),
ipw2100_wx_set_freq, /* SIOCSIWFREQ */ IW_HANDLER(SIOCGIWMODE, ipw2100_wx_get_mode),
ipw2100_wx_get_freq, /* SIOCGIWFREQ */ IW_HANDLER(SIOCGIWRANGE, ipw2100_wx_get_range),
ipw2100_wx_set_mode, /* SIOCSIWMODE */ IW_HANDLER(SIOCSIWAP, ipw2100_wx_set_wap),
ipw2100_wx_get_mode, /* SIOCGIWMODE */ IW_HANDLER(SIOCGIWAP, ipw2100_wx_get_wap),
NULL, /* SIOCSIWSENS */ IW_HANDLER(SIOCSIWMLME, ipw2100_wx_set_mlme),
NULL, /* SIOCGIWSENS */ IW_HANDLER(SIOCSIWSCAN, ipw2100_wx_set_scan),
NULL, /* SIOCSIWRANGE */ IW_HANDLER(SIOCGIWSCAN, ipw2100_wx_get_scan),
ipw2100_wx_get_range, /* SIOCGIWRANGE */ IW_HANDLER(SIOCSIWESSID, ipw2100_wx_set_essid),
NULL, /* SIOCSIWPRIV */ IW_HANDLER(SIOCGIWESSID, ipw2100_wx_get_essid),
NULL, /* SIOCGIWPRIV */ IW_HANDLER(SIOCSIWNICKN, ipw2100_wx_set_nick),
NULL, /* SIOCSIWSTATS */ IW_HANDLER(SIOCGIWNICKN, ipw2100_wx_get_nick),
NULL, /* SIOCGIWSTATS */ IW_HANDLER(SIOCSIWRATE, ipw2100_wx_set_rate),
NULL, /* SIOCSIWSPY */ IW_HANDLER(SIOCGIWRATE, ipw2100_wx_get_rate),
NULL, /* SIOCGIWSPY */ IW_HANDLER(SIOCSIWRTS, ipw2100_wx_set_rts),
NULL, /* SIOCGIWTHRSPY */ IW_HANDLER(SIOCGIWRTS, ipw2100_wx_get_rts),
NULL, /* SIOCWIWTHRSPY */ IW_HANDLER(SIOCSIWFRAG, ipw2100_wx_set_frag),
ipw2100_wx_set_wap, /* SIOCSIWAP */ IW_HANDLER(SIOCGIWFRAG, ipw2100_wx_get_frag),
ipw2100_wx_get_wap, /* SIOCGIWAP */ IW_HANDLER(SIOCSIWTXPOW, ipw2100_wx_set_txpow),
ipw2100_wx_set_mlme, /* SIOCSIWMLME */ IW_HANDLER(SIOCGIWTXPOW, ipw2100_wx_get_txpow),
NULL, /* SIOCGIWAPLIST -- deprecated */ IW_HANDLER(SIOCSIWRETRY, ipw2100_wx_set_retry),
ipw2100_wx_set_scan, /* SIOCSIWSCAN */ IW_HANDLER(SIOCGIWRETRY, ipw2100_wx_get_retry),
ipw2100_wx_get_scan, /* SIOCGIWSCAN */ IW_HANDLER(SIOCSIWENCODE, ipw2100_wx_set_encode),
ipw2100_wx_set_essid, /* SIOCSIWESSID */ IW_HANDLER(SIOCGIWENCODE, ipw2100_wx_get_encode),
ipw2100_wx_get_essid, /* SIOCGIWESSID */ IW_HANDLER(SIOCSIWPOWER, ipw2100_wx_set_power),
ipw2100_wx_set_nick, /* SIOCSIWNICKN */ IW_HANDLER(SIOCGIWPOWER, ipw2100_wx_get_power),
ipw2100_wx_get_nick, /* SIOCGIWNICKN */ IW_HANDLER(SIOCSIWGENIE, ipw2100_wx_set_genie),
NULL, /* -- hole -- */ IW_HANDLER(SIOCGIWGENIE, ipw2100_wx_get_genie),
NULL, /* -- hole -- */ IW_HANDLER(SIOCSIWAUTH, ipw2100_wx_set_auth),
ipw2100_wx_set_rate, /* SIOCSIWRATE */ IW_HANDLER(SIOCGIWAUTH, ipw2100_wx_get_auth),
ipw2100_wx_get_rate, /* SIOCGIWRATE */ IW_HANDLER(SIOCSIWENCODEEXT, ipw2100_wx_set_encodeext),
ipw2100_wx_set_rts, /* SIOCSIWRTS */ IW_HANDLER(SIOCGIWENCODEEXT, ipw2100_wx_get_encodeext),
ipw2100_wx_get_rts, /* SIOCGIWRTS */
ipw2100_wx_set_frag, /* SIOCSIWFRAG */
ipw2100_wx_get_frag, /* SIOCGIWFRAG */
ipw2100_wx_set_txpow, /* SIOCSIWTXPOW */
ipw2100_wx_get_txpow, /* SIOCGIWTXPOW */
ipw2100_wx_set_retry, /* SIOCSIWRETRY */
ipw2100_wx_get_retry, /* SIOCGIWRETRY */
ipw2100_wx_set_encode, /* SIOCSIWENCODE */
ipw2100_wx_get_encode, /* SIOCGIWENCODE */
ipw2100_wx_set_power, /* SIOCSIWPOWER */
ipw2100_wx_get_power, /* SIOCGIWPOWER */
NULL, /* -- hole -- */
NULL, /* -- hole -- */
ipw2100_wx_set_genie, /* SIOCSIWGENIE */
ipw2100_wx_get_genie, /* SIOCGIWGENIE */
ipw2100_wx_set_auth, /* SIOCSIWAUTH */
ipw2100_wx_get_auth, /* SIOCGIWAUTH */
ipw2100_wx_set_encodeext, /* SIOCSIWENCODEEXT */
ipw2100_wx_get_encodeext, /* SIOCGIWENCODEEXT */
NULL, /* SIOCSIWPMKSA */
}; };
#define IPW2100_PRIV_SET_MONITOR SIOCIWFIRSTPRIV #define IPW2100_PRIV_SET_MONITOR SIOCIWFIRSTPRIV
......
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