aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-10 23:11:46 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-05-11 14:54:53 -0400
commit69f88dc5f9816ed6b137c095e8f6f289958d8108 (patch)
tree6c04d7e5d49d88777e647e4665dc12521f14360c /drivers/net
parent1d42b8f293c55226d18d97127419157fa4e47b41 (diff)
[PATCH] libertas: remove setauthalg private ioctl
Obsoleted by SIOCSIWAUTH's IW_AUTH_80211_AUTH_ALG option introduced by WE-18. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/libertas/defs.h7
-rw-r--r--drivers/net/wireless/libertas/ioctl.c45
-rw-r--r--drivers/net/wireless/libertas/wext.c6
3 files changed, 0 insertions, 58 deletions
diff --git a/drivers/net/wireless/libertas/defs.h b/drivers/net/wireless/libertas/defs.h
index 888a007ef767..15fcb2c047f2 100644
--- a/drivers/net/wireless/libertas/defs.h
+++ b/drivers/net/wireless/libertas/defs.h
@@ -223,13 +223,6 @@ enum SNRNF_DATA {
223 MAX_TYPE_AVG 223 MAX_TYPE_AVG
224}; 224};
225 225
226/** WLAN_802_11_AUTH_ALG*/
227enum WLAN_802_11_AUTH_ALG {
228 AUTH_ALG_OPEN_SYSTEM = 1,
229 AUTH_ALG_SHARED_KEY = 2,
230 AUTH_ALG_NETWORK_EAP = 8,
231};
232
233/** WLAN_802_11_ENCRYPTION_MODE */ 226/** WLAN_802_11_ENCRYPTION_MODE */
234enum WLAN_802_11_ENCRYPTION_MODE { 227enum WLAN_802_11_ENCRYPTION_MODE {
235 CIPHER_NONE, 228 CIPHER_NONE,
diff --git a/drivers/net/wireless/libertas/ioctl.c b/drivers/net/wireless/libertas/ioctl.c
index c53c0f9dd964..f70930a7064d 100644
--- a/drivers/net/wireless/libertas/ioctl.c
+++ b/drivers/net/wireless/libertas/ioctl.c
@@ -577,47 +577,6 @@ static int wlan_set_multiple_dtim_ioctl(wlan_private * priv, struct ifreq *req)
577 return ret; 577 return ret;
578} 578}
579 579
580/**
581 * @brief Set authentication mode
582 * @param priv A pointer to wlan_private structure
583 * @param req A pointer to ifreq structure
584 * @return 0 --success, otherwise fail
585 */
586static int wlan_setauthalg_ioctl(wlan_private * priv, struct ifreq *req)
587{
588 int alg;
589 struct iwreq *wrq = (struct iwreq *)req;
590 wlan_adapter *adapter = priv->adapter;
591
592 if (wrq->u.data.flags == 0) {
593 //from iwpriv subcmd
594 alg = SUBCMD_DATA(wrq);
595 } else {
596 //from wpa_supplicant subcmd
597 if (copy_from_user(&alg, wrq->u.data.pointer, sizeof(alg))) {
598 lbs_pr_debug(1, "Copy from user failed\n");
599 return -EFAULT;
600 }
601 }
602
603 lbs_pr_debug(1, "auth alg is %#x\n", alg);
604
605 switch (alg) {
606 case AUTH_ALG_SHARED_KEY:
607 adapter->secinfo.authmode = wlan802_11authmodeshared;
608 break;
609 case AUTH_ALG_NETWORK_EAP:
610 adapter->secinfo.authmode =
611 wlan802_11authmodenetworkEAP;
612 break;
613 case AUTH_ALG_OPEN_SYSTEM:
614 default:
615 adapter->secinfo.authmode = wlan802_11authmodeopen;
616 break;
617 }
618 return 0;
619}
620
621static int wlan_setencryptionmode_ioctl(wlan_private * priv, struct ifreq *req) 580static int wlan_setencryptionmode_ioctl(wlan_private * priv, struct ifreq *req)
622{ 581{
623 int mode; 582 int mode;
@@ -2043,10 +2002,6 @@ int libertas_do_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
2043 ret = wlan_set_multiple_dtim_ioctl(priv, req); 2002 ret = wlan_set_multiple_dtim_ioctl(priv, req);
2044 break; 2003 break;
2045 2004
2046 case WLANSETAUTHALG:
2047 ret = wlan_setauthalg_ioctl(priv, req);
2048 break;
2049
2050 case WLANSETENCRYPTIONMODE: 2005 case WLANSETENCRYPTIONMODE:
2051 ret = wlan_setencryptionmode_ioctl(priv, req); 2006 ret = wlan_setencryptionmode_ioctl(priv, req);
2052 break; 2007 break;
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index 81ee83cb001b..d1617878f4b9 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -1082,12 +1082,6 @@ static const struct iw_priv_args wlan_private_args[] = {
1082 IW_PRIV_TYPE_NONE, 1082 IW_PRIV_TYPE_NONE,
1083 "settxant"}, 1083 "settxant"},
1084 { 1084 {
1085 WLANSETAUTHALG,
1086 IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
1087 IW_PRIV_TYPE_NONE,
1088 "authalgs",
1089 },
1090 {
1091 WLANSETENCRYPTIONMODE, 1085 WLANSETENCRYPTIONMODE,
1092 IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 1086 IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
1093 IW_PRIV_TYPE_NONE, 1087 IW_PRIV_TYPE_NONE,