PRISM2_PARAM_ADM_STATUS is not used anywhere in kernel nor in userspace.
It just passes a value to the driver, so it's safe to remove it.

Signed-off-by: Jiri Benc <[EMAIL PROTECTED]>

Index: dscape/net/d80211/hostapd_ioctl.h
===================================================================
--- dscape.orig/net/d80211/hostapd_ioctl.h      2006-03-06 14:10:22.000000000 
+0100
+++ dscape/net/d80211/hostapd_ioctl.h   2006-03-06 14:10:28.000000000 +0100
@@ -64,7 +64,6 @@ enum {
        PRISM2_PARAM_TEST_MODE = 1007,
        PRISM2_PARAM_NEXT_MODE = 1008,
        PRISM2_PARAM_CLEAR_KEYS = 1009,
-       PRISM2_PARAM_ADM_STATUS = 1010,
        PRISM2_PARAM_ANTENNA_SEL = 1011,
        PRISM2_PARAM_CALIB_INT = 1012,
         PRISM2_PARAM_ANTENNA_MODE = 1013,
Index: dscape/net/d80211/ieee80211_ioctl.c
===================================================================
--- dscape.orig/net/d80211/ieee80211_ioctl.c    2006-03-06 14:10:22.000000000 
+0100
+++ dscape/net/d80211/ieee80211_ioctl.c 2006-03-06 14:10:28.000000000 +0100
@@ -1165,15 +1165,6 @@ static int ieee80211_ioctl_set_regulator
         return 0;
 }
 
-
-static int ieee80211_ioctl_set_adm_status(struct net_device *dev,
-                                         int val)
-{
-        struct ieee80211_conf *conf = ieee80211_get_hw_conf(dev);
-        conf->adm_status = val;
-        return ieee80211_hw_config(dev);
-}
-
 static int
 ieee80211_ioctl_set_tx_queue_params(struct net_device *dev,
                                    struct prism2_hostapd_param *param)
@@ -1580,7 +1571,6 @@ static int ieee80211_init_client(struct 
        if (ieee80211_regdom == 0x40)
                channel_range = ieee80211_mkk_channels;
        ieee80211_unmask_channels(dev);
-       ieee80211_ioctl_set_adm_status(dev, 1);
        return 0;
 }
 
@@ -2323,10 +2313,6 @@ static int ieee80211_ioctl_prism2_param(
                ret = ieee80211_ioctl_clear_keys(dev);
                break;
 
-       case PRISM2_PARAM_ADM_STATUS:
-                ret = ieee80211_ioctl_set_adm_status(dev, value);
-               break;
-
        case PRISM2_PARAM_ANTENNA_SEL:
                local->conf.antenna_sel = value;
                if (ieee80211_hw_config(dev))
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to