diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-20 09:17:01 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:57:17 -0400 |
commit | 314bd7503b1e96841931311f28a8925dab66ed83 (patch) | |
tree | e99b078891f07099e024b28b8133a96f854963a9 /drivers/net/wireless/rndis_wlan.c | |
parent | d323655372590c533c275b1d798f9d1221efb5c6 (diff) |
rndis_wlan: remove nickname support
Supporting wireless extension nickname is pointless
and no other modern driver supports this, so remove
it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rndis_wlan.c')
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 43e0ba61df24..109e60343363 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -372,9 +372,6 @@ struct rndis_wext_private { | |||
372 | struct iw_statistics iwstats; | 372 | struct iw_statistics iwstats; |
373 | struct iw_statistics privstats; | 373 | struct iw_statistics privstats; |
374 | 374 | ||
375 | int nick_len; | ||
376 | char nick[32]; | ||
377 | |||
378 | int caps; | 375 | int caps; |
379 | int multicast_size; | 376 | int multicast_size; |
380 | 377 | ||
@@ -1798,39 +1795,6 @@ static int rndis_iw_get_frag(struct net_device *dev, | |||
1798 | } | 1795 | } |
1799 | 1796 | ||
1800 | 1797 | ||
1801 | static int rndis_iw_set_nick(struct net_device *dev, | ||
1802 | struct iw_request_info *info, union iwreq_data *wrqu, char *extra) | ||
1803 | { | ||
1804 | struct usbnet *usbdev = netdev_priv(dev); | ||
1805 | struct rndis_wext_private *priv = get_rndis_wext_priv(usbdev); | ||
1806 | |||
1807 | devdbg(usbdev, "SIOCSIWNICK"); | ||
1808 | |||
1809 | priv->nick_len = wrqu->data.length; | ||
1810 | if (priv->nick_len > 32) | ||
1811 | priv->nick_len = 32; | ||
1812 | |||
1813 | memcpy(priv->nick, extra, priv->nick_len); | ||
1814 | return 0; | ||
1815 | } | ||
1816 | |||
1817 | |||
1818 | static int rndis_iw_get_nick(struct net_device *dev, | ||
1819 | struct iw_request_info *info, union iwreq_data *wrqu, char *extra) | ||
1820 | { | ||
1821 | struct usbnet *usbdev = netdev_priv(dev); | ||
1822 | struct rndis_wext_private *priv = get_rndis_wext_priv(usbdev); | ||
1823 | |||
1824 | wrqu->data.flags = 1; | ||
1825 | wrqu->data.length = priv->nick_len; | ||
1826 | memcpy(extra, priv->nick, priv->nick_len); | ||
1827 | |||
1828 | devdbg(usbdev, "SIOCGIWNICK: '%s'", priv->nick); | ||
1829 | |||
1830 | return 0; | ||
1831 | } | ||
1832 | |||
1833 | |||
1834 | static int rndis_iw_set_freq(struct net_device *dev, | 1798 | static int rndis_iw_set_freq(struct net_device *dev, |
1835 | struct iw_request_info *info, union iwreq_data *wrqu, char *extra) | 1799 | struct iw_request_info *info, union iwreq_data *wrqu, char *extra) |
1836 | { | 1800 | { |
@@ -2039,8 +2003,6 @@ static const iw_handler rndis_iw_handler[] = | |||
2039 | IW_IOCTL(SIOCGIWSCAN) = (iw_handler) cfg80211_wext_giwscan, | 2003 | IW_IOCTL(SIOCGIWSCAN) = (iw_handler) cfg80211_wext_giwscan, |
2040 | IW_IOCTL(SIOCSIWESSID) = rndis_iw_set_essid, | 2004 | IW_IOCTL(SIOCSIWESSID) = rndis_iw_set_essid, |
2041 | IW_IOCTL(SIOCGIWESSID) = rndis_iw_get_essid, | 2005 | IW_IOCTL(SIOCGIWESSID) = rndis_iw_get_essid, |
2042 | IW_IOCTL(SIOCSIWNICKN) = rndis_iw_set_nick, | ||
2043 | IW_IOCTL(SIOCGIWNICKN) = rndis_iw_get_nick, | ||
2044 | IW_IOCTL(SIOCGIWRATE) = rndis_iw_get_rate, | 2006 | IW_IOCTL(SIOCGIWRATE) = rndis_iw_get_rate, |
2045 | IW_IOCTL(SIOCSIWRTS) = rndis_iw_set_rts, | 2007 | IW_IOCTL(SIOCSIWRTS) = rndis_iw_set_rts, |
2046 | IW_IOCTL(SIOCGIWRTS) = rndis_iw_get_rts, | 2008 | IW_IOCTL(SIOCGIWRTS) = rndis_iw_get_rts, |