aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-10-29 03:41:25 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-30 16:50:39 -0400
commitc27f2fded51948edf40007f4f31350e9e0c6ba23 (patch)
treec800cd4fcbc9f675341e95a76e080460eb1eac85 /net
parenteddcbb94f75c3e8944503e9f13c1d29acd0d7052 (diff)
mac80211: deprecate qual value
This value is unused by mac80211, because it was only be used by wireless extensions, and turned out to not be useful there because the quality value needs to be comparable between scan results and the current value which is impossible when the qual value is calculated taking into account noise, for example. Since it is unused anyway, this patch deprecates it in the hope that drivers will remove their sometimes quite expensive calculations of the value. I'm open to actual uses of the value, but the best way of using it seems to be what the Intel drivers do which should probably be generalised if we have noise values from the hardware. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/debugfs_sta.c2
-rw-r--r--net/mac80211/rx.c1
-rw-r--r--net/mac80211/sta_info.h2
3 files changed, 0 insertions, 5 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c
index 8721679773da..4425b613552c 100644
--- a/net/mac80211/debugfs_sta.c
+++ b/net/mac80211/debugfs_sta.c
@@ -57,7 +57,6 @@ STA_FILE(tx_filtered, tx_filtered_count, LU);
57STA_FILE(tx_retry_failed, tx_retry_failed, LU); 57STA_FILE(tx_retry_failed, tx_retry_failed, LU);
58STA_FILE(tx_retry_count, tx_retry_count, LU); 58STA_FILE(tx_retry_count, tx_retry_count, LU);
59STA_FILE(last_signal, last_signal, D); 59STA_FILE(last_signal, last_signal, D);
60STA_FILE(last_qual, last_qual, D);
61STA_FILE(last_noise, last_noise, D); 60STA_FILE(last_noise, last_noise, D);
62STA_FILE(wep_weak_iv_count, wep_weak_iv_count, LU); 61STA_FILE(wep_weak_iv_count, wep_weak_iv_count, LU);
63 62
@@ -205,7 +204,6 @@ void ieee80211_sta_debugfs_add(struct sta_info *sta)
205 DEBUGFS_ADD(tx_retry_failed); 204 DEBUGFS_ADD(tx_retry_failed);
206 DEBUGFS_ADD(tx_retry_count); 205 DEBUGFS_ADD(tx_retry_count);
207 DEBUGFS_ADD(last_signal); 206 DEBUGFS_ADD(last_signal);
208 DEBUGFS_ADD(last_qual);
209 DEBUGFS_ADD(last_noise); 207 DEBUGFS_ADD(last_noise);
210 DEBUGFS_ADD(wep_weak_iv_count); 208 DEBUGFS_ADD(wep_weak_iv_count);
211} 209}
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index c832d408187e..f862399f7ce1 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -859,7 +859,6 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx)
859 sta->rx_fragments++; 859 sta->rx_fragments++;
860 sta->rx_bytes += rx->skb->len; 860 sta->rx_bytes += rx->skb->len;
861 sta->last_signal = rx->status->signal; 861 sta->last_signal = rx->status->signal;
862 sta->last_qual = rx->status->qual;
863 sta->last_noise = rx->status->noise; 862 sta->last_noise = rx->status->noise;
864 863
865 /* 864 /*
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h
index b3686c870b5e..703f5492ee65 100644
--- a/net/mac80211/sta_info.h
+++ b/net/mac80211/sta_info.h
@@ -193,7 +193,6 @@ struct sta_ampdu_mlme {
193 * @rx_fragments: number of received MPDUs 193 * @rx_fragments: number of received MPDUs
194 * @rx_dropped: number of dropped MPDUs from this STA 194 * @rx_dropped: number of dropped MPDUs from this STA
195 * @last_signal: signal of last received frame from this STA 195 * @last_signal: signal of last received frame from this STA
196 * @last_qual: qual of last received frame from this STA
197 * @last_noise: noise of last received frame from this STA 196 * @last_noise: noise of last received frame from this STA
198 * @last_seq_ctrl: last received seq/frag number from this STA (per RX queue) 197 * @last_seq_ctrl: last received seq/frag number from this STA (per RX queue)
199 * @tx_filtered_count: number of frames the hardware filtered for this STA 198 * @tx_filtered_count: number of frames the hardware filtered for this STA
@@ -259,7 +258,6 @@ struct sta_info {
259 unsigned long rx_fragments; 258 unsigned long rx_fragments;
260 unsigned long rx_dropped; 259 unsigned long rx_dropped;
261 int last_signal; 260 int last_signal;
262 int last_qual;
263 int last_noise; 261 int last_noise;
264 __le16 last_seq_ctrl[NUM_RX_DATA_QUEUES]; 262 __le16 last_seq_ctrl[NUM_RX_DATA_QUEUES];
265 263