diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-11-05 11:53:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-11 17:09:11 -0500 |
commit | 165864d08774823e3b88d5fcf4dad302700612e3 (patch) | |
tree | c3d4073035ff72282680bd3a8666188cea3bf0a6 /drivers/net/wireless/ath/ath9k/common.c | |
parent | db86f07ec6cdea9670a0928bd1289109d2a989dc (diff) |
ath9k_common: remove ath9k_compute_qual()
This is now deprecated and unused within mac80211, so time
to remove it as otherwise we'd be doing some unecessary
computations for nothing.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/common.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common.c b/drivers/net/wireless/ath/ath9k/common.c index 5fb164e294de..80edf7a302ca 100644 --- a/drivers/net/wireless/ath/ath9k/common.c +++ b/drivers/net/wireless/ath/ath9k/common.c | |||
@@ -142,47 +142,6 @@ static u8 ath9k_process_rate(struct ath_common *common, | |||
142 | return 0; | 142 | return 0; |
143 | } | 143 | } |
144 | 144 | ||
145 | /* | ||
146 | * Theory for reporting quality: | ||
147 | * | ||
148 | * At a hardware RSSI of 45 you will be able to use MCS 7 reliably. | ||
149 | * At a hardware RSSI of 45 you will be able to use MCS 15 reliably. | ||
150 | * At a hardware RSSI of 35 you should be able use 54 Mbps reliably. | ||
151 | * | ||
152 | * MCS 7 is the highets MCS index usable by a 1-stream device. | ||
153 | * MCS 15 is the highest MCS index usable by a 2-stream device. | ||
154 | * | ||
155 | * All ath9k devices are either 1-stream or 2-stream. | ||
156 | * | ||
157 | * How many bars you see is derived from the qual reporting. | ||
158 | * | ||
159 | * A more elaborate scheme can be used here but it requires tables | ||
160 | * of SNR/throughput for each possible mode used. For the MCS table | ||
161 | * you can refer to the wireless wiki: | ||
162 | * | ||
163 | * http://wireless.kernel.org/en/developers/Documentation/ieee80211/802.11n | ||
164 | * | ||
165 | */ | ||
166 | static int ath9k_compute_qual(struct ieee80211_hw *hw, | ||
167 | struct ath_rx_status *rx_stats) | ||
168 | { | ||
169 | int qual; | ||
170 | |||
171 | if (conf_is_ht(&hw->conf)) | ||
172 | qual = rx_stats->rs_rssi * 100 / 45; | ||
173 | else | ||
174 | qual = rx_stats->rs_rssi * 100 / 35; | ||
175 | |||
176 | /* | ||
177 | * rssi can be more than 45 though, anything above that | ||
178 | * should be considered at 100% | ||
179 | */ | ||
180 | if (qual > 100) | ||
181 | qual = 100; | ||
182 | |||
183 | return qual; | ||
184 | } | ||
185 | |||
186 | static void ath9k_process_rssi(struct ath_common *common, | 145 | static void ath9k_process_rssi(struct ath_common *common, |
187 | struct ieee80211_hw *hw, | 146 | struct ieee80211_hw *hw, |
188 | struct sk_buff *skb, | 147 | struct sk_buff *skb, |
@@ -256,7 +215,6 @@ int ath9k_cmn_rx_skb_preprocess(struct ath_common *common, | |||
256 | rx_status->noise = common->ani.noise_floor; | 215 | rx_status->noise = common->ani.noise_floor; |
257 | rx_status->signal = ATH_DEFAULT_NOISE_FLOOR + rx_stats->rs_rssi; | 216 | rx_status->signal = ATH_DEFAULT_NOISE_FLOOR + rx_stats->rs_rssi; |
258 | rx_status->antenna = rx_stats->rs_antenna; | 217 | rx_status->antenna = rx_stats->rs_antenna; |
259 | rx_status->qual = ath9k_compute_qual(hw, rx_stats); | ||
260 | rx_status->flag |= RX_FLAG_TSFT; | 218 | rx_status->flag |= RX_FLAG_TSFT; |
261 | 219 | ||
262 | return 0; | 220 | return 0; |