Commit bc79be9b authored by David Kilroy's avatar David Kilroy Committed by Greg Kroah-Hartman

staging: wlags49_h2: Use IW_HANDLER macro

to declare wireless handlers.
Signed-off-by: default avatarDavid Kilroy <kilroyd@googlemail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e7751b63
...@@ -3904,66 +3904,39 @@ void wl_wext_event_assoc_ie( struct net_device *dev ) ...@@ -3904,66 +3904,39 @@ void wl_wext_event_assoc_ie( struct net_device *dev )
static const iw_handler wl_handler[] = static const iw_handler wl_handler[] =
{ {
(iw_handler) wireless_commit, /* SIOCSIWCOMMIT */ IW_HANDLER(SIOCSIWCOMMIT, (iw_handler) wireless_commit),
(iw_handler) wireless_get_protocol, /* SIOCGIWNAME */ IW_HANDLER(SIOCGIWNAME, (iw_handler) wireless_get_protocol),
(iw_handler) NULL, /* SIOCSIWNWID */ IW_HANDLER(SIOCSIWFREQ, (iw_handler) wireless_set_frequency),
(iw_handler) NULL, /* SIOCGIWNWID */ IW_HANDLER(SIOCGIWFREQ, (iw_handler) wireless_get_frequency),
(iw_handler) wireless_set_frequency, /* SIOCSIWFREQ */ IW_HANDLER(SIOCSIWMODE, (iw_handler) wireless_set_porttype),
(iw_handler) wireless_get_frequency, /* SIOCGIWFREQ */ IW_HANDLER(SIOCGIWMODE, (iw_handler) wireless_get_porttype),
(iw_handler) wireless_set_porttype, /* SIOCSIWMODE */ IW_HANDLER(SIOCSIWSENS, (iw_handler) wireless_set_sensitivity),
(iw_handler) wireless_get_porttype, /* SIOCGIWMODE */ IW_HANDLER(SIOCGIWSENS, (iw_handler) wireless_get_sensitivity),
(iw_handler) wireless_set_sensitivity, /* SIOCSIWSENS */ IW_HANDLER(SIOCGIWRANGE, (iw_handler) wireless_get_range),
(iw_handler) wireless_get_sensitivity, /* SIOCGIWSENS */ IW_HANDLER(SIOCSIWSPY, iw_handler_set_spy),
(iw_handler) NULL , /* SIOCSIWRANGE */ IW_HANDLER(SIOCGIWSPY, iw_handler_get_spy),
(iw_handler) wireless_get_range, /* SIOCGIWRANGE */
(iw_handler) NULL , /* SIOCSIWPRIV */
(iw_handler) NULL /* kernel code */, /* SIOCGIWPRIV */
(iw_handler) NULL , /* SIOCSIWSTATS */
(iw_handler) NULL /* kernel code */, /* SIOCGIWSTATS */
iw_handler_set_spy, /* SIOCSIWSPY */
iw_handler_get_spy, /* SIOCGIWSPY */
NULL, /* SIOCSIWTHRSPY */
NULL, /* SIOCGIWTHRSPY */
(iw_handler) NULL, /* SIOCSIWAP */
#if 1 //;? (HCF_TYPE) & HCF_TYPE_STA #if 1 //;? (HCF_TYPE) & HCF_TYPE_STA
(iw_handler) wireless_get_bssid, /* SIOCGIWAP */ IW_HANDLER(SIOCGIWAP, (iw_handler) wireless_get_bssid),
#else
(iw_handler) NULL, /* SIOCGIWAP */
#endif #endif
(iw_handler) NULL, /* SIOCSIWMLME */ IW_HANDLER(SIOCGIWAPLIST, (iw_handler) wireless_get_ap_list),
(iw_handler) wireless_get_ap_list, /* SIOCGIWAPLIST */ IW_HANDLER(SIOCSIWSCAN, (iw_handler) wireless_set_scan),
(iw_handler) wireless_set_scan, /* SIOCSIWSCAN */ IW_HANDLER(SIOCGIWSCAN, (iw_handler) wireless_get_scan),
(iw_handler) wireless_get_scan, /* SIOCGIWSCAN */ IW_HANDLER(SIOCSIWESSID, (iw_handler) wireless_set_essid),
(iw_handler) wireless_set_essid, /* SIOCSIWESSID */ IW_HANDLER(SIOCGIWESSID, (iw_handler) wireless_get_essid),
(iw_handler) wireless_get_essid, /* SIOCGIWESSID */ IW_HANDLER(SIOCSIWNICKN, (iw_handler) wireless_set_nickname),
(iw_handler) wireless_set_nickname, /* SIOCSIWNICKN */ IW_HANDLER(SIOCGIWNICKN, (iw_handler) wireless_get_nickname),
(iw_handler) wireless_get_nickname, /* SIOCGIWNICKN */ IW_HANDLER(SIOCSIWRATE, (iw_handler) wireless_set_rate),
(iw_handler) NULL, /* -- hole -- */ IW_HANDLER(SIOCGIWRATE, (iw_handler) wireless_get_rate),
(iw_handler) NULL, /* -- hole -- */ IW_HANDLER(SIOCSIWRTS, (iw_handler) wireless_set_rts_threshold),
(iw_handler) wireless_set_rate, /* SIOCSIWRATE */ IW_HANDLER(SIOCGIWRTS, (iw_handler) wireless_get_rts_threshold),
(iw_handler) wireless_get_rate, /* SIOCGIWRATE */ IW_HANDLER(SIOCGIWTXPOW, (iw_handler) wireless_get_tx_power),
(iw_handler) wireless_set_rts_threshold,/* SIOCSIWRTS */ IW_HANDLER(SIOCSIWENCODE, (iw_handler) wireless_set_encode),
(iw_handler) wireless_get_rts_threshold,/* SIOCGIWRTS */ IW_HANDLER(SIOCGIWENCODE, (iw_handler) wireless_get_encode),
(iw_handler) NULL, /* SIOCSIWFRAG */ IW_HANDLER(SIOCSIWPOWER, (iw_handler) wireless_set_power),
(iw_handler) NULL, /* SIOCGIWFRAG */ IW_HANDLER(SIOCGIWPOWER, (iw_handler) wireless_get_power),
(iw_handler) NULL, /* SIOCSIWTXPOW */ IW_HANDLER(SIOCSIWGENIE, (iw_handler) wireless_get_genie),
(iw_handler) wireless_get_tx_power, /* SIOCGIWTXPOW */ IW_HANDLER(SIOCSIWAUTH, (iw_handler) wireless_set_auth),
(iw_handler) NULL, /* SIOCSIWRETRY */ IW_HANDLER(SIOCSIWENCODEEXT, (iw_handler) wireless_set_encodeext),
(iw_handler) NULL, /* SIOCGIWRETRY */
(iw_handler) wireless_set_encode, /* SIOCSIWENCODE */
(iw_handler) wireless_get_encode, /* SIOCGIWENCODE */
(iw_handler) wireless_set_power, /* SIOCSIWPOWER */
(iw_handler) wireless_get_power, /* SIOCGIWPOWER */
(iw_handler) NULL, /* -- hole -- */
(iw_handler) NULL, /* -- hole -- */
(iw_handler) wireless_get_genie, /* SIOCSIWGENIE */
(iw_handler) NULL, /* SIOCGIWGENIE */
(iw_handler) wireless_set_auth, /* SIOCSIWAUTH */
(iw_handler) NULL, /* SIOCGIWAUTH */
(iw_handler) wireless_set_encodeext, /* SIOCSIWENCODEEXT */
(iw_handler) NULL, /* SIOCGIWENCODEEXT */
(iw_handler) NULL, /* SIOCSIWPMKSA */
(iw_handler) NULL, /* -- hole -- */
}; };
static const iw_handler wl_private_handler[] = static const iw_handler wl_private_handler[] =
......
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