diff options
-rw-r--r-- | include/net/mac80211.h | 1 | ||||
-rw-r--r-- | net/mac80211/debugfs.c | 5 | ||||
-rw-r--r-- | net/mac80211/hostapd_ioctl.h | 3 | ||||
-rw-r--r-- | net/mac80211/ieee80211_i.h | 11 | ||||
-rw-r--r-- | net/mac80211/ieee80211_ioctl.c | 27 | ||||
-rw-r--r-- | net/mac80211/rc80211_simple.c | 8 | ||||
-rw-r--r-- | net/mac80211/sta_info.h | 4 | ||||
-rw-r--r-- | net/mac80211/tx.c | 3 |
8 files changed, 0 insertions, 62 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index ff6a9c35e6d6..1c59e24544c7 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -296,7 +296,6 @@ struct ieee80211_conf { | |||
296 | u8 power_level; /* transmit power limit for current | 296 | u8 power_level; /* transmit power limit for current |
297 | * regulatory domain; in dBm */ | 297 | * regulatory domain; in dBm */ |
298 | u8 antenna_max; /* maximum antenna gain */ | 298 | u8 antenna_max; /* maximum antenna gain */ |
299 | short tx_power_reduction; /* in 0.1 dBm */ | ||
300 | 299 | ||
301 | /* 0 = default/diversity, 1 = Ant0, 2 = Ant1 */ | 300 | /* 0 = default/diversity, 1 = Ant0, 2 = Ant1 */ |
302 | u8 antenna_sel_tx; | 301 | u8 antenna_sel_tx; |
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 476c8486f789..76c39eb72817 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c | |||
@@ -110,9 +110,6 @@ DEBUGFS_READONLY_FILE(mode, 20, "%s", | |||
110 | ieee80211_mode_str(local->hw.conf.phymode)); | 110 | ieee80211_mode_str(local->hw.conf.phymode)); |
111 | DEBUGFS_READONLY_FILE(wep_iv, 20, "%#06x", | 111 | DEBUGFS_READONLY_FILE(wep_iv, 20, "%#06x", |
112 | local->wep_iv & 0xffffff); | 112 | local->wep_iv & 0xffffff); |
113 | DEBUGFS_READONLY_FILE(tx_power_reduction, 20, "%d.%d dBm", | ||
114 | local->hw.conf.tx_power_reduction / 10, | ||
115 | local->hw.conf.tx_power_reduction % 10); | ||
116 | DEBUGFS_READONLY_FILE(rate_ctrl_alg, 100, "%s", | 113 | DEBUGFS_READONLY_FILE(rate_ctrl_alg, 100, "%s", |
117 | local->rate_ctrl ? local->rate_ctrl->ops->name : "<unset>"); | 114 | local->rate_ctrl ? local->rate_ctrl->ops->name : "<unset>"); |
118 | 115 | ||
@@ -317,7 +314,6 @@ void debugfs_hw_add(struct ieee80211_local *local) | |||
317 | DEBUGFS_ADD(total_ps_buffered); | 314 | DEBUGFS_ADD(total_ps_buffered); |
318 | DEBUGFS_ADD(mode); | 315 | DEBUGFS_ADD(mode); |
319 | DEBUGFS_ADD(wep_iv); | 316 | DEBUGFS_ADD(wep_iv); |
320 | DEBUGFS_ADD(tx_power_reduction); | ||
321 | DEBUGFS_ADD(modes); | 317 | DEBUGFS_ADD(modes); |
322 | 318 | ||
323 | statsd = debugfs_create_dir("statistics", phyd); | 319 | statsd = debugfs_create_dir("statistics", phyd); |
@@ -382,7 +378,6 @@ void debugfs_hw_del(struct ieee80211_local *local) | |||
382 | DEBUGFS_DEL(total_ps_buffered); | 378 | DEBUGFS_DEL(total_ps_buffered); |
383 | DEBUGFS_DEL(mode); | 379 | DEBUGFS_DEL(mode); |
384 | DEBUGFS_DEL(wep_iv); | 380 | DEBUGFS_DEL(wep_iv); |
385 | DEBUGFS_DEL(tx_power_reduction); | ||
386 | DEBUGFS_DEL(modes); | 381 | DEBUGFS_DEL(modes); |
387 | 382 | ||
388 | DEBUGFS_STATS_DEL(transmitted_fragment_count); | 383 | DEBUGFS_STATS_DEL(transmitted_fragment_count); |
diff --git a/net/mac80211/hostapd_ioctl.h b/net/mac80211/hostapd_ioctl.h index f0f8051502da..8d219d67db35 100644 --- a/net/mac80211/hostapd_ioctl.h +++ b/net/mac80211/hostapd_ioctl.h | |||
@@ -32,10 +32,7 @@ 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_STA_ANTENNA_SEL = 1017, | ||
36 | PRISM2_PARAM_TX_POWER_REDUCTION = 1022, | ||
37 | PRISM2_PARAM_KEY_TX_RX_THRESHOLD = 1024, | 35 | PRISM2_PARAM_KEY_TX_RX_THRESHOLD = 1024, |
38 | PRISM2_PARAM_DEFAULT_WEP_ONLY = 1026, | ||
39 | PRISM2_PARAM_WIFI_WME_NOACK_TEST = 1033, | 36 | PRISM2_PARAM_WIFI_WME_NOACK_TEST = 1033, |
40 | PRISM2_PARAM_SCAN_FLAGS = 1035, | 37 | PRISM2_PARAM_SCAN_FLAGS = 1035, |
41 | PRISM2_PARAM_HW_MODES = 1036, | 38 | PRISM2_PARAM_HW_MODES = 1036, |
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 2caf1a2f31f7..2f6fff6317eb 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -514,12 +514,6 @@ struct ieee80211_local { | |||
514 | struct work_struct sta_debugfs_add; | 514 | struct work_struct sta_debugfs_add; |
515 | #endif | 515 | #endif |
516 | 516 | ||
517 | enum { | ||
518 | STA_ANTENNA_SEL_AUTO = 0, | ||
519 | STA_ANTENNA_SEL_SW_CTRL = 1, | ||
520 | STA_ANTENNA_SEL_SW_CTRL_DEBUG = 2 | ||
521 | } sta_antenna_sel; | ||
522 | |||
523 | #ifdef CONFIG_MAC80211_DEBUG_COUNTERS | 517 | #ifdef CONFIG_MAC80211_DEBUG_COUNTERS |
524 | /* TX/RX handler statistics */ | 518 | /* TX/RX handler statistics */ |
525 | unsigned int tx_handlers_drop; | 519 | unsigned int tx_handlers_drop; |
@@ -555,10 +549,6 @@ struct ieee80211_local { | |||
555 | int total_ps_buffered; /* total number of all buffered unicast and | 549 | int total_ps_buffered; /* total number of all buffered unicast and |
556 | * multicast packets for power saving stations | 550 | * multicast packets for power saving stations |
557 | */ | 551 | */ |
558 | int allow_broadcast_always; /* whether to allow TX of broadcast frames | ||
559 | * even when there are no associated STAs | ||
560 | */ | ||
561 | |||
562 | int wifi_wme_noack_test; | 552 | int wifi_wme_noack_test; |
563 | unsigned int wmm_acm; /* bit field of ACM bits (BIT(802.1D tag)) */ | 553 | unsigned int wmm_acm; /* bit field of ACM bits (BIT(802.1D tag)) */ |
564 | 554 | ||
@@ -585,7 +575,6 @@ struct ieee80211_local { | |||
585 | struct dentry *total_ps_buffered; | 575 | struct dentry *total_ps_buffered; |
586 | struct dentry *mode; | 576 | struct dentry *mode; |
587 | struct dentry *wep_iv; | 577 | struct dentry *wep_iv; |
588 | struct dentry *tx_power_reduction; | ||
589 | struct dentry *modes; | 578 | struct dentry *modes; |
590 | struct dentry *statistics; | 579 | struct dentry *statistics; |
591 | struct local_debugfsdentries_statsdentries { | 580 | struct local_debugfsdentries_statsdentries { |
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c index 946aeb51a12b..2e85032808fe 100644 --- a/net/mac80211/ieee80211_ioctl.c +++ b/net/mac80211/ieee80211_ioctl.c | |||
@@ -1088,25 +1088,10 @@ static int ieee80211_ioctl_prism2_param(struct net_device *dev, | |||
1088 | local->next_mode = value; | 1088 | local->next_mode = value; |
1089 | break; | 1089 | break; |
1090 | 1090 | ||
1091 | case PRISM2_PARAM_STA_ANTENNA_SEL: | ||
1092 | local->sta_antenna_sel = value; | ||
1093 | break; | ||
1094 | |||
1095 | case PRISM2_PARAM_TX_POWER_REDUCTION: | ||
1096 | if (value < 0) | ||
1097 | ret = -EINVAL; | ||
1098 | else | ||
1099 | local->hw.conf.tx_power_reduction = value; | ||
1100 | break; | ||
1101 | |||
1102 | case PRISM2_PARAM_KEY_TX_RX_THRESHOLD: | 1091 | case PRISM2_PARAM_KEY_TX_RX_THRESHOLD: |
1103 | local->key_tx_rx_threshold = value; | 1092 | local->key_tx_rx_threshold = value; |
1104 | break; | 1093 | break; |
1105 | 1094 | ||
1106 | case PRISM2_PARAM_DEFAULT_WEP_ONLY: | ||
1107 | ret = ieee80211_ioctl_default_wep_only(local, value); | ||
1108 | break; | ||
1109 | |||
1110 | case PRISM2_PARAM_WIFI_WME_NOACK_TEST: | 1095 | case PRISM2_PARAM_WIFI_WME_NOACK_TEST: |
1111 | local->wifi_wme_noack_test = value; | 1096 | local->wifi_wme_noack_test = value; |
1112 | break; | 1097 | break; |
@@ -1187,22 +1172,10 @@ static int ieee80211_ioctl_get_prism2_param(struct net_device *dev, | |||
1187 | *param = local->next_mode; | 1172 | *param = local->next_mode; |
1188 | break; | 1173 | break; |
1189 | 1174 | ||
1190 | case PRISM2_PARAM_STA_ANTENNA_SEL: | ||
1191 | *param = local->sta_antenna_sel; | ||
1192 | break; | ||
1193 | |||
1194 | case PRISM2_PARAM_TX_POWER_REDUCTION: | ||
1195 | *param = local->hw.conf.tx_power_reduction; | ||
1196 | break; | ||
1197 | |||
1198 | case PRISM2_PARAM_KEY_TX_RX_THRESHOLD: | 1175 | case PRISM2_PARAM_KEY_TX_RX_THRESHOLD: |
1199 | *param = local->key_tx_rx_threshold; | 1176 | *param = local->key_tx_rx_threshold; |
1200 | break; | 1177 | break; |
1201 | 1178 | ||
1202 | case PRISM2_PARAM_DEFAULT_WEP_ONLY: | ||
1203 | *param = local->default_wep_only; | ||
1204 | break; | ||
1205 | |||
1206 | case PRISM2_PARAM_WIFI_WME_NOACK_TEST: | 1179 | case PRISM2_PARAM_WIFI_WME_NOACK_TEST: |
1207 | *param = local->wifi_wme_noack_test; | 1180 | *param = local->wifi_wme_noack_test; |
1208 | break; | 1181 | break; |
diff --git a/net/mac80211/rc80211_simple.c b/net/mac80211/rc80211_simple.c index 17b9f46bbf2b..ef91ce428aca 100644 --- a/net/mac80211/rc80211_simple.c +++ b/net/mac80211/rc80211_simple.c | |||
@@ -147,14 +147,6 @@ static void rate_control_simple_tx_status(void *priv, struct net_device *dev, | |||
147 | srctrl = sta->rate_ctrl_priv; | 147 | srctrl = sta->rate_ctrl_priv; |
148 | srctrl->tx_num_xmit++; | 148 | srctrl->tx_num_xmit++; |
149 | if (status->excessive_retries) { | 149 | if (status->excessive_retries) { |
150 | sta->antenna_sel_tx = sta->antenna_sel_tx == 1 ? 2 : 1; | ||
151 | sta->antenna_sel_rx = sta->antenna_sel_rx == 1 ? 2 : 1; | ||
152 | if (local->sta_antenna_sel == STA_ANTENNA_SEL_SW_CTRL_DEBUG) { | ||
153 | printk(KERN_DEBUG "%s: " MAC_FMT " TX antenna --> %d " | ||
154 | "RX antenna --> %d (@%lu)\n", | ||
155 | dev->name, MAC_ARG(hdr->addr1), | ||
156 | sta->antenna_sel_tx, sta->antenna_sel_rx, jiffies); | ||
157 | } | ||
158 | srctrl->tx_num_failures++; | 150 | srctrl->tx_num_failures++; |
159 | sta->tx_retry_failed++; | 151 | sta->tx_retry_failed++; |
160 | sta->tx_num_consecutive_failures++; | 152 | sta->tx_num_consecutive_failures++; |
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h index b5ef72379add..4afa7df2a180 100644 --- a/net/mac80211/sta_info.h +++ b/net/mac80211/sta_info.h | |||
@@ -90,10 +90,6 @@ struct sta_info { | |||
90 | int channel_use; | 90 | int channel_use; |
91 | int channel_use_raw; | 91 | int channel_use_raw; |
92 | 92 | ||
93 | u8 antenna_sel_tx; | ||
94 | u8 antenna_sel_rx; | ||
95 | |||
96 | |||
97 | int key_idx_compression; /* key table index for compression and TX | 93 | int key_idx_compression; /* key table index for compression and TX |
98 | * filtering; used only if sta->key is not | 94 | * filtering; used only if sta->key is not |
99 | * set */ | 95 | * set */ |
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 4ab29282dd67..c9b909d9498b 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -243,7 +243,6 @@ ieee80211_tx_h_check_assoc(struct ieee80211_txrx_data *tx) | |||
243 | } else { | 243 | } else { |
244 | if (unlikely((tx->fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA && | 244 | if (unlikely((tx->fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA && |
245 | tx->local->num_sta == 0 && | 245 | tx->local->num_sta == 0 && |
246 | !tx->local->allow_broadcast_always && | ||
247 | tx->sdata->type != IEEE80211_IF_TYPE_IBSS)) { | 246 | tx->sdata->type != IEEE80211_IF_TYPE_IBSS)) { |
248 | /* | 247 | /* |
249 | * No associated STAs - no need to send multicast | 248 | * No associated STAs - no need to send multicast |
@@ -959,8 +958,6 @@ __ieee80211_tx_prepare(struct ieee80211_txrx_data *tx, | |||
959 | */ | 958 | */ |
960 | control->power_level = local->hw.conf.power_level; | 959 | control->power_level = local->hw.conf.power_level; |
961 | control->antenna_sel_tx = local->hw.conf.antenna_sel_tx; | 960 | control->antenna_sel_tx = local->hw.conf.antenna_sel_tx; |
962 | if (local->sta_antenna_sel != STA_ANTENNA_SEL_AUTO && tx->sta) | ||
963 | control->antenna_sel_tx = tx->sta->antenna_sel_tx; | ||
964 | 961 | ||
965 | /* process and remove the injection radiotap header */ | 962 | /* process and remove the injection radiotap header */ |
966 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); | 963 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); |