aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-10 22:56:01 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-05-11 14:54:54 -0400
commit43631e15c1cd056a76272047c6ebe9edbaa06f25 (patch)
tree69a00911466feb17fed02e9c2dc166c89571f4bc /drivers
parent9408c297f6cee8e91ab2c51ec8d56e8c23c19a53 (diff)
[PATCH] libertas: remove setwpaie private ioctl
Obsoleted by SIOCSIWGENIE. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/libertas/ioctl.c58
-rw-r--r--drivers/net/wireless/libertas/wext.c5
2 files changed, 0 insertions, 63 deletions
diff --git a/drivers/net/wireless/libertas/ioctl.c b/drivers/net/wireless/libertas/ioctl.c
index e2a18aba9eab..054c6578d6f7 100644
--- a/drivers/net/wireless/libertas/ioctl.c
+++ b/drivers/net/wireless/libertas/ioctl.c
@@ -478,61 +478,6 @@ static int wlan_get_adhoc_status_ioctl(wlan_private * priv, struct iwreq *wrq)
478} 478}
479 479
480/** 480/**
481 * @brief Set/Get WPA IE
482 * @param priv A pointer to wlan_private structure
483 * @param req A pointer to ifreq structure
484 * @return 0 --success, otherwise fail
485 */
486static int wlan_setwpaie_ioctl(wlan_private * priv, struct ifreq *req)
487{
488 struct iwreq *wrq = (struct iwreq *)req;
489 wlan_adapter *adapter = priv->adapter;
490 int ret = 0;
491
492 ENTER();
493
494 if (wrq->u.data.length) {
495 if (wrq->u.data.length > sizeof(adapter->wpa_ie)) {
496 lbs_pr_debug(1, "failed to copy WPA IE, too big \n");
497 return -EFAULT;
498 }
499 if (copy_from_user(adapter->wpa_ie, wrq->u.data.pointer,
500 wrq->u.data.length)) {
501 lbs_pr_debug(1, "failed to copy WPA IE \n");
502 return -EFAULT;
503 }
504 adapter->wpa_ie_len = wrq->u.data.length;
505 lbs_pr_debug(1, "Set wpa_ie_len=%d IE=%#x\n", adapter->wpa_ie_len,
506 adapter->wpa_ie[0]);
507 lbs_dbg_hex("wpa_ie", adapter->wpa_ie, adapter->wpa_ie_len);
508 if (adapter->wpa_ie[0] == WPA_IE)
509 adapter->secinfo.WPAenabled = 1;
510 else if (adapter->wpa_ie[0] == WPA2_IE)
511 adapter->secinfo.WPA2enabled = 1;
512 else {
513 adapter->secinfo.WPAenabled = 0;
514 adapter->secinfo.WPA2enabled = 0;
515 }
516 } else {
517 memset(adapter->wpa_ie, 0, sizeof(adapter->wpa_ie));
518 adapter->wpa_ie_len = wrq->u.data.length;
519 lbs_pr_debug(1, "Reset wpa_ie_len=%d IE=%#x\n",
520 adapter->wpa_ie_len, adapter->wpa_ie[0]);
521 adapter->secinfo.WPAenabled = 0;
522 adapter->secinfo.WPA2enabled = 0;
523 }
524
525 // enable/disable RSN in firmware if WPA is enabled/disabled
526 // depending on variable adapter->secinfo.WPAenabled is set or not
527 ret = libertas_prepare_and_send_command(priv, cmd_802_11_enable_rsn,
528 cmd_act_set, cmd_option_waitforrsp,
529 0, NULL);
530
531 LEAVE();
532 return ret;
533}
534
535/**
536 * @brief Set Auto prescan 481 * @brief Set Auto prescan
537 * @param priv A pointer to wlan_private structure 482 * @param priv A pointer to wlan_private structure
538 * @param wrq A pointer to iwreq structure 483 * @param wrq A pointer to iwreq structure
@@ -1846,9 +1791,6 @@ int libertas_do_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
1846 } /* End of switch */ 1791 } /* End of switch */
1847 break; 1792 break;
1848 1793
1849 case WLANSETWPAIE:
1850 ret = wlan_setwpaie_ioctl(priv, req);
1851 break;
1852 case WLAN_SETINT_GETINT: 1794 case WLAN_SETINT_GETINT:
1853 /* The first 4 bytes of req->ifr_data is sub-ioctl number 1795 /* The first 4 bytes of req->ifr_data is sub-ioctl number
1854 * after 4 bytes sits the payload. 1796 * after 4 bytes sits the payload.
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index d1617878f4b9..cfce23d50524 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -1330,11 +1330,6 @@ static const struct iw_priv_args wlan_private_args[] = {
1330 IW_PRIV_TYPE_CHAR | 128, 1330 IW_PRIV_TYPE_CHAR | 128,
1331 ""}, 1331 ""},
1332 { 1332 {
1333 WLANSETWPAIE,
1334 IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_FIXED | 24,
1335 IW_PRIV_TYPE_NONE,
1336 "setwpaie"},
1337 {
1338 WLANGETLOG, 1333 WLANGETLOG,
1339 IW_PRIV_TYPE_NONE, 1334 IW_PRIV_TYPE_NONE,
1340 IW_PRIV_TYPE_CHAR | GETLOG_BUFSIZE, 1335 IW_PRIV_TYPE_CHAR | GETLOG_BUFSIZE,