aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-12-20 04:59:29 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:58:41 -0500
commit2bdb35c7ffb61f4b9d963dd447a2c54add5f02c5 (patch)
tree5e281ca7c4af4072957623c8cae1210058cbef21 /drivers/net/wireless/rt2x00
parent076f9582a6b82e54339ee815130315744b730787 (diff)
rt2x00: Allow drivers to pass the noise value during rxdone
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c1
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00queue.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index 8c0dae530ae..c7bd212656d 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -407,6 +407,7 @@ void rt2x00lib_rxdone(struct rt2x00_dev *rt2x00dev,
407 rx_status->rate_idx = idx; 407 rx_status->rate_idx = idx;
408 rx_status->qual = rt2x00link_calculate_signal(rt2x00dev, rxdesc.rssi); 408 rx_status->qual = rt2x00link_calculate_signal(rt2x00dev, rxdesc.rssi);
409 rx_status->signal = rxdesc.rssi; 409 rx_status->signal = rxdesc.rssi;
410 rx_status->noise = rxdesc.noise;
410 rx_status->flag = rxdesc.flags; 411 rx_status->flag = rxdesc.flags;
411 rx_status->antenna = rt2x00dev->link.ant.active.rx; 412 rx_status->antenna = rt2x00dev->link.ant.active.rx;
412 413
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h
index 5a9d2c3d1bb..1bd1a952e42 100644
--- a/drivers/net/wireless/rt2x00/rt2x00queue.h
+++ b/drivers/net/wireless/rt2x00/rt2x00queue.h
@@ -165,6 +165,7 @@ enum rxdone_entry_desc_flags {
165 * @timestamp: RX Timestamp 165 * @timestamp: RX Timestamp
166 * @signal: Signal of the received frame. 166 * @signal: Signal of the received frame.
167 * @rssi: RSSI of the received frame. 167 * @rssi: RSSI of the received frame.
168 * @noise: Measured noise during frame reception.
168 * @size: Data size of the received frame. 169 * @size: Data size of the received frame.
169 * @flags: MAC80211 receive flags (See &enum mac80211_rx_flags). 170 * @flags: MAC80211 receive flags (See &enum mac80211_rx_flags).
170 * @dev_flags: Ralink receive flags (See &enum rxdone_entry_desc_flags). 171 * @dev_flags: Ralink receive flags (See &enum rxdone_entry_desc_flags).
@@ -177,6 +178,7 @@ struct rxdone_entry_desc {
177 u64 timestamp; 178 u64 timestamp;
178 int signal; 179 int signal;
179 int rssi; 180 int rssi;
181 int noise;
180 int size; 182 int size;
181 int flags; 183 int flags;
182 int dev_flags; 184 int dev_flags;