aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2010-02-17 15:27:26 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-03-09 15:02:53 -0500
commit62bb2ac5cb6c2f813e151617525ec518e2d1c649 (patch)
tree75e6d81f02580de06897fa2972b86aec881fe3c4
parent31f66be44a657a14e0ab3536e4877c66c9ce031e (diff)
mac80211: deprecate RX status noise
The noise value as is won't be used, isn't filled by most drivers and doesn't really make a whole lot of sense on a per packet basis -- proper cfg80211 survey support in mac80211 will need to be different. Mark the struct member as deprecated so it will be removed from drivers. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--include/net/mac80211.h4
-rw-r--r--net/mac80211/debugfs_sta.c2
-rw-r--r--net/mac80211/rx.c9
-rw-r--r--net/mac80211/sta_info.h2
4 files changed, 2 insertions, 15 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 45d7d44d7cb..936bc410d06 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -543,7 +543,7 @@ enum mac80211_rx_flags {
543 * @signal: signal strength when receiving this frame, either in dBm, in dB or 543 * @signal: signal strength when receiving this frame, either in dBm, in dB or
544 * unspecified depending on the hardware capabilities flags 544 * unspecified depending on the hardware capabilities flags
545 * @IEEE80211_HW_SIGNAL_* 545 * @IEEE80211_HW_SIGNAL_*
546 * @noise: noise when receiving this frame, in dBm. 546 * @noise: noise when receiving this frame, in dBm (DEPRECATED).
547 * @antenna: antenna used 547 * @antenna: antenna used
548 * @rate_idx: index of data rate into band's supported rates or MCS index if 548 * @rate_idx: index of data rate into band's supported rates or MCS index if
549 * HT rates are use (RX_FLAG_HT) 549 * HT rates are use (RX_FLAG_HT)
@@ -554,7 +554,7 @@ struct ieee80211_rx_status {
554 enum ieee80211_band band; 554 enum ieee80211_band band;
555 int freq; 555 int freq;
556 int signal; 556 int signal;
557 int noise; 557 int noise __deprecated;
558 int antenna; 558 int antenna;
559 int rate_idx; 559 int rate_idx;
560 int flag; 560 int flag;
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c
index d92800bb2d2..23e72003457 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_noise, last_noise, D);
61STA_FILE(wep_weak_iv_count, wep_weak_iv_count, LU); 60STA_FILE(wep_weak_iv_count, wep_weak_iv_count, LU);
62 61
63static ssize_t sta_flags_read(struct file *file, char __user *userbuf, 62static ssize_t sta_flags_read(struct file *file, char __user *userbuf,
@@ -289,7 +288,6 @@ void ieee80211_sta_debugfs_add(struct sta_info *sta)
289 DEBUGFS_ADD(tx_retry_failed); 288 DEBUGFS_ADD(tx_retry_failed);
290 DEBUGFS_ADD(tx_retry_count); 289 DEBUGFS_ADD(tx_retry_count);
291 DEBUGFS_ADD(last_signal); 290 DEBUGFS_ADD(last_signal);
292 DEBUGFS_ADD(last_noise);
293 DEBUGFS_ADD(wep_weak_iv_count); 291 DEBUGFS_ADD(wep_weak_iv_count);
294 DEBUGFS_ADD(ht_capa); 292 DEBUGFS_ADD(ht_capa);
295} 293}
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index b5c48de81d8..1da57c8e849 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -178,14 +178,6 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,
178 pos++; 178 pos++;
179 } 179 }
180 180
181 /* IEEE80211_RADIOTAP_DBM_ANTNOISE */
182 if (local->hw.flags & IEEE80211_HW_NOISE_DBM) {
183 *pos = status->noise;
184 rthdr->it_present |=
185 cpu_to_le32(1 << IEEE80211_RADIOTAP_DBM_ANTNOISE);
186 pos++;
187 }
188
189 /* IEEE80211_RADIOTAP_LOCK_QUALITY is missing */ 181 /* IEEE80211_RADIOTAP_LOCK_QUALITY is missing */
190 182
191 /* IEEE80211_RADIOTAP_ANTENNA */ 183 /* IEEE80211_RADIOTAP_ANTENNA */
@@ -1077,7 +1069,6 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx)
1077 sta->rx_fragments++; 1069 sta->rx_fragments++;
1078 sta->rx_bytes += rx->skb->len; 1070 sta->rx_bytes += rx->skb->len;
1079 sta->last_signal = status->signal; 1071 sta->last_signal = status->signal;
1080 sta->last_noise = status->noise;
1081 1072
1082 /* 1073 /*
1083 * Change STA power saving mode only at the end of a frame 1074 * Change STA power saving mode only at the end of a frame
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h
index 822d8452293..2b635909de5 100644
--- a/net/mac80211/sta_info.h
+++ b/net/mac80211/sta_info.h
@@ -200,7 +200,6 @@ struct sta_ampdu_mlme {
200 * @rx_fragments: number of received MPDUs 200 * @rx_fragments: number of received MPDUs
201 * @rx_dropped: number of dropped MPDUs from this STA 201 * @rx_dropped: number of dropped MPDUs from this STA
202 * @last_signal: signal of last received frame from this STA 202 * @last_signal: signal of last received frame from this STA
203 * @last_noise: noise of last received frame from this STA
204 * @last_seq_ctrl: last received seq/frag number from this STA (per RX queue) 203 * @last_seq_ctrl: last received seq/frag number from this STA (per RX queue)
205 * @tx_filtered_count: number of frames the hardware filtered for this STA 204 * @tx_filtered_count: number of frames the hardware filtered for this STA
206 * @tx_retry_failed: number of frames that failed retry 205 * @tx_retry_failed: number of frames that failed retry
@@ -267,7 +266,6 @@ struct sta_info {
267 unsigned long rx_fragments; 266 unsigned long rx_fragments;
268 unsigned long rx_dropped; 267 unsigned long rx_dropped;
269 int last_signal; 268 int last_signal;
270 int last_noise;
271 __le16 last_seq_ctrl[NUM_RX_DATA_QUEUES]; 269 __le16 last_seq_ctrl[NUM_RX_DATA_QUEUES];
272 270
273 /* Updated from TX status path only, no locking requirements */ 271 /* Updated from TX status path only, no locking requirements */