diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-08-28 17:01:53 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:48:45 -0400 |
commit | b2446b36800948586f1d1b8ef05803bba5f7489e (patch) | |
tree | 49687896b02ae79999cd57abb629d12c8ab14fec | |
parent | 3017b80bf0c4d6a44ccf0d35db9dadf01092b54e (diff) |
[MAC80211]: remove unused ioctls (1)
The ioctls
* PRISM2_PARAM_ANTENNA_MODE
* PRISM2_PARAM_STAT_TIME
are not used by hostapd or wpa_supplicant.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/mac80211.h | 3 | ||||
-rw-r--r-- | net/mac80211/hostapd_ioctl.h | 2 | ||||
-rw-r--r-- | net/mac80211/ieee80211.c | 42 | ||||
-rw-r--r-- | net/mac80211/ieee80211_i.h | 2 | ||||
-rw-r--r-- | net/mac80211/ieee80211_ioctl.c | 22 |
5 files changed, 0 insertions, 71 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 6a2a0c3e7255..ff6a9c35e6d6 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -302,9 +302,6 @@ struct ieee80211_conf { | |||
302 | u8 antenna_sel_tx; | 302 | u8 antenna_sel_tx; |
303 | u8 antenna_sel_rx; | 303 | u8 antenna_sel_rx; |
304 | 304 | ||
305 | int antenna_def; | ||
306 | int antenna_mode; | ||
307 | |||
308 | /* Following five fields are used for IEEE 802.11H */ | 305 | /* Following five fields are used for IEEE 802.11H */ |
309 | unsigned int radar_detect; | 306 | unsigned int radar_detect; |
310 | unsigned int spect_mgmt; | 307 | unsigned int spect_mgmt; |
diff --git a/net/mac80211/hostapd_ioctl.h b/net/mac80211/hostapd_ioctl.h index 77a5c8813aee..f0f8051502da 100644 --- a/net/mac80211/hostapd_ioctl.h +++ b/net/mac80211/hostapd_ioctl.h | |||
@@ -32,8 +32,6 @@ enum { | |||
32 | PRISM2_PARAM_PREAMBLE = 1003, | 32 | PRISM2_PARAM_PREAMBLE = 1003, |
33 | PRISM2_PARAM_SHORT_SLOT_TIME = 1006, | 33 | PRISM2_PARAM_SHORT_SLOT_TIME = 1006, |
34 | PRISM2_PARAM_NEXT_MODE = 1008, | 34 | PRISM2_PARAM_NEXT_MODE = 1008, |
35 | PRISM2_PARAM_ANTENNA_MODE = 1013, | ||
36 | PRISM2_PARAM_STAT_TIME = 1016, | ||
37 | PRISM2_PARAM_STA_ANTENNA_SEL = 1017, | 35 | PRISM2_PARAM_STA_ANTENNA_SEL = 1017, |
38 | PRISM2_PARAM_TX_POWER_REDUCTION = 1022, | 36 | PRISM2_PARAM_TX_POWER_REDUCTION = 1022, |
39 | PRISM2_PARAM_KEY_TX_RX_THRESHOLD = 1024, | 37 | PRISM2_PARAM_KEY_TX_RX_THRESHOLD = 1024, |
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 703f998292c8..8f472379b128 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -786,42 +786,6 @@ struct dev_mc_list *ieee80211_get_mc_list_item(struct ieee80211_hw *hw, | |||
786 | } | 786 | } |
787 | EXPORT_SYMBOL(ieee80211_get_mc_list_item); | 787 | EXPORT_SYMBOL(ieee80211_get_mc_list_item); |
788 | 788 | ||
789 | static void ieee80211_stat_refresh(unsigned long data) | ||
790 | { | ||
791 | struct ieee80211_local *local = (struct ieee80211_local *) data; | ||
792 | struct sta_info *sta; | ||
793 | struct ieee80211_sub_if_data *sdata; | ||
794 | |||
795 | if (!local->stat_time) | ||
796 | return; | ||
797 | |||
798 | /* go through all stations */ | ||
799 | read_lock_bh(&local->sta_lock); | ||
800 | list_for_each_entry(sta, &local->sta_list, list) { | ||
801 | sta->channel_use = (sta->channel_use_raw / local->stat_time) / | ||
802 | CHAN_UTIL_PER_10MS; | ||
803 | sta->channel_use_raw = 0; | ||
804 | } | ||
805 | read_unlock_bh(&local->sta_lock); | ||
806 | |||
807 | /* go through all subinterfaces */ | ||
808 | read_lock(&local->sub_if_lock); | ||
809 | list_for_each_entry(sdata, &local->sub_if_list, list) { | ||
810 | sdata->channel_use = (sdata->channel_use_raw / | ||
811 | local->stat_time) / CHAN_UTIL_PER_10MS; | ||
812 | sdata->channel_use_raw = 0; | ||
813 | } | ||
814 | read_unlock(&local->sub_if_lock); | ||
815 | |||
816 | /* hardware interface */ | ||
817 | local->channel_use = (local->channel_use_raw / | ||
818 | local->stat_time) / CHAN_UTIL_PER_10MS; | ||
819 | local->channel_use_raw = 0; | ||
820 | |||
821 | local->stat_timer.expires = jiffies + HZ * local->stat_time / 100; | ||
822 | add_timer(&local->stat_timer); | ||
823 | } | ||
824 | |||
825 | void ieee80211_tx_status_irqsafe(struct ieee80211_hw *hw, | 789 | void ieee80211_tx_status_irqsafe(struct ieee80211_hw *hw, |
826 | struct sk_buff *skb, | 790 | struct sk_buff *skb, |
827 | struct ieee80211_tx_status *status) | 791 | struct ieee80211_tx_status *status) |
@@ -1260,9 +1224,6 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, | |||
1260 | INIT_LIST_HEAD(&local->sub_if_list); | 1224 | INIT_LIST_HEAD(&local->sub_if_list); |
1261 | 1225 | ||
1262 | INIT_DELAYED_WORK(&local->scan_work, ieee80211_sta_scan_work); | 1226 | INIT_DELAYED_WORK(&local->scan_work, ieee80211_sta_scan_work); |
1263 | init_timer(&local->stat_timer); | ||
1264 | local->stat_timer.function = ieee80211_stat_refresh; | ||
1265 | local->stat_timer.data = (unsigned long) local; | ||
1266 | ieee80211_rx_bss_list_init(mdev); | 1227 | ieee80211_rx_bss_list_init(mdev); |
1267 | 1228 | ||
1268 | sta_info_init(local); | 1229 | sta_info_init(local); |
@@ -1461,9 +1422,6 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw) | |||
1461 | 1422 | ||
1462 | rtnl_unlock(); | 1423 | rtnl_unlock(); |
1463 | 1424 | ||
1464 | if (local->stat_time) | ||
1465 | del_timer_sync(&local->stat_timer); | ||
1466 | |||
1467 | ieee80211_rx_bss_list_deinit(local->mdev); | 1425 | ieee80211_rx_bss_list_deinit(local->mdev); |
1468 | ieee80211_clear_tx_pending(local); | 1426 | ieee80211_clear_tx_pending(local); |
1469 | sta_info_stop(local); | 1427 | sta_info_stop(local); |
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index cc9999cd089c..2caf1a2f31f7 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -509,8 +509,6 @@ struct ieee80211_local { | |||
509 | 509 | ||
510 | u32 channel_use; | 510 | u32 channel_use; |
511 | u32 channel_use_raw; | 511 | u32 channel_use_raw; |
512 | u32 stat_time; | ||
513 | struct timer_list stat_timer; | ||
514 | 512 | ||
515 | #ifdef CONFIG_MAC80211_DEBUGFS | 513 | #ifdef CONFIG_MAC80211_DEBUGFS |
516 | struct work_struct sta_debugfs_add; | 514 | struct work_struct sta_debugfs_add; |
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c index b89fb1f2f241..946aeb51a12b 100644 --- a/net/mac80211/ieee80211_ioctl.c +++ b/net/mac80211/ieee80211_ioctl.c | |||
@@ -1075,15 +1075,6 @@ static int ieee80211_ioctl_prism2_param(struct net_device *dev, | |||
1075 | } | 1075 | } |
1076 | break; | 1076 | break; |
1077 | 1077 | ||
1078 | case PRISM2_PARAM_STAT_TIME: | ||
1079 | if (!local->stat_time && value) { | ||
1080 | local->stat_timer.expires = jiffies + HZ * value / 100; | ||
1081 | add_timer(&local->stat_timer); | ||
1082 | } else if (local->stat_time && !value) { | ||
1083 | del_timer_sync(&local->stat_timer); | ||
1084 | } | ||
1085 | local->stat_time = value; | ||
1086 | break; | ||
1087 | case PRISM2_PARAM_SHORT_SLOT_TIME: | 1078 | case PRISM2_PARAM_SHORT_SLOT_TIME: |
1088 | if (value) | 1079 | if (value) |
1089 | local->hw.conf.flags |= IEEE80211_CONF_SHORT_SLOT_TIME; | 1080 | local->hw.conf.flags |= IEEE80211_CONF_SHORT_SLOT_TIME; |
@@ -1097,12 +1088,6 @@ static int ieee80211_ioctl_prism2_param(struct net_device *dev, | |||
1097 | local->next_mode = value; | 1088 | local->next_mode = value; |
1098 | break; | 1089 | break; |
1099 | 1090 | ||
1100 | case PRISM2_PARAM_ANTENNA_MODE: | ||
1101 | local->hw.conf.antenna_mode = value; | ||
1102 | if (ieee80211_hw_config(local)) | ||
1103 | ret = -EINVAL; | ||
1104 | break; | ||
1105 | |||
1106 | case PRISM2_PARAM_STA_ANTENNA_SEL: | 1091 | case PRISM2_PARAM_STA_ANTENNA_SEL: |
1107 | local->sta_antenna_sel = value; | 1092 | local->sta_antenna_sel = value; |
1108 | break; | 1093 | break; |
@@ -1194,9 +1179,6 @@ static int ieee80211_ioctl_get_prism2_param(struct net_device *dev, | |||
1194 | *param = sdata->short_preamble; | 1179 | *param = sdata->short_preamble; |
1195 | break; | 1180 | break; |
1196 | 1181 | ||
1197 | case PRISM2_PARAM_STAT_TIME: | ||
1198 | *param = local->stat_time; | ||
1199 | break; | ||
1200 | case PRISM2_PARAM_SHORT_SLOT_TIME: | 1182 | case PRISM2_PARAM_SHORT_SLOT_TIME: |
1201 | *param = !!(local->hw.conf.flags & IEEE80211_CONF_SHORT_SLOT_TIME); | 1183 | *param = !!(local->hw.conf.flags & IEEE80211_CONF_SHORT_SLOT_TIME); |
1202 | break; | 1184 | break; |
@@ -1205,10 +1187,6 @@ static int ieee80211_ioctl_get_prism2_param(struct net_device *dev, | |||
1205 | *param = local->next_mode; | 1187 | *param = local->next_mode; |
1206 | break; | 1188 | break; |
1207 | 1189 | ||
1208 | case PRISM2_PARAM_ANTENNA_MODE: | ||
1209 | *param = local->hw.conf.antenna_mode; | ||
1210 | break; | ||
1211 | |||
1212 | case PRISM2_PARAM_STA_ANTENNA_SEL: | 1190 | case PRISM2_PARAM_STA_ANTENNA_SEL: |
1213 | *param = local->sta_antenna_sel; | 1191 | *param = local->sta_antenna_sel; |
1214 | break; | 1192 | break; |