aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/orinoco/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/orinoco/wext.c')
-rw-r--r--drivers/net/wireless/orinoco/wext.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/drivers/net/wireless/orinoco/wext.c b/drivers/net/wireless/orinoco/wext.c
index 21db57815dda..b6ff3dbb7dd6 100644
--- a/drivers/net/wireless/orinoco/wext.c
+++ b/drivers/net/wireless/orinoco/wext.c
@@ -372,47 +372,6 @@ static int orinoco_ioctl_getessid(struct net_device *dev,
372 return 0; 372 return 0;
373} 373}
374 374
375static int orinoco_ioctl_setnick(struct net_device *dev,
376 struct iw_request_info *info,
377 struct iw_point *nrq,
378 char *nickbuf)
379{
380 struct orinoco_private *priv = ndev_priv(dev);
381 unsigned long flags;
382
383 if (nrq->length > IW_ESSID_MAX_SIZE)
384 return -E2BIG;
385
386 if (orinoco_lock(priv, &flags) != 0)
387 return -EBUSY;
388
389 memset(priv->nick, 0, sizeof(priv->nick));
390 memcpy(priv->nick, nickbuf, nrq->length);
391
392 orinoco_unlock(priv, &flags);
393
394 return -EINPROGRESS; /* Call commit handler */
395}
396
397static int orinoco_ioctl_getnick(struct net_device *dev,
398 struct iw_request_info *info,
399 struct iw_point *nrq,
400 char *nickbuf)
401{
402 struct orinoco_private *priv = ndev_priv(dev);
403 unsigned long flags;
404
405 if (orinoco_lock(priv, &flags) != 0)
406 return -EBUSY;
407
408 memcpy(nickbuf, priv->nick, IW_ESSID_MAX_SIZE);
409 orinoco_unlock(priv, &flags);
410
411 nrq->length = strlen(priv->nick);
412
413 return 0;
414}
415
416static int orinoco_ioctl_setfreq(struct net_device *dev, 375static int orinoco_ioctl_setfreq(struct net_device *dev,
417 struct iw_request_info *info, 376 struct iw_request_info *info,
418 struct iw_freq *frq, 377 struct iw_freq *frq,
@@ -1539,8 +1498,6 @@ static const iw_handler orinoco_handler[] = {
1539 STD_IW_HANDLER(SIOCGIWSCAN, cfg80211_wext_giwscan), 1498 STD_IW_HANDLER(SIOCGIWSCAN, cfg80211_wext_giwscan),
1540 STD_IW_HANDLER(SIOCSIWESSID, orinoco_ioctl_setessid), 1499 STD_IW_HANDLER(SIOCSIWESSID, orinoco_ioctl_setessid),
1541 STD_IW_HANDLER(SIOCGIWESSID, orinoco_ioctl_getessid), 1500 STD_IW_HANDLER(SIOCGIWESSID, orinoco_ioctl_getessid),
1542 STD_IW_HANDLER(SIOCSIWNICKN, orinoco_ioctl_setnick),
1543 STD_IW_HANDLER(SIOCGIWNICKN, orinoco_ioctl_getnick),
1544 STD_IW_HANDLER(SIOCSIWRATE, orinoco_ioctl_setrate), 1501 STD_IW_HANDLER(SIOCSIWRATE, orinoco_ioctl_setrate),
1545 STD_IW_HANDLER(SIOCGIWRATE, orinoco_ioctl_getrate), 1502 STD_IW_HANDLER(SIOCGIWRATE, orinoco_ioctl_getrate),
1546 STD_IW_HANDLER(SIOCSIWRTS, orinoco_ioctl_setrts), 1503 STD_IW_HANDLER(SIOCSIWRTS, orinoco_ioctl_setrts),