summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/xmit.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-10-07 22:39:35 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-10-11 16:41:23 -0400
commit55ad5962e97430c83d51df36fc18865ee4f78c48 (patch)
treeaf443bdc54aa0bc5f17af6c480c5297540d9140e /drivers/net/wireless/b43/xmit.c
parent73a253ca9865cf743c9bc1c97982cb343f535655 (diff)
b43: trivial: do not report any link quality instead of invalid one
We don't want to report random quality info (new PHYs are affected). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/xmit.c')
-rw-r--r--drivers/net/wireless/b43/xmit.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
index b8de62c2247..5f812d1d6d0 100644
--- a/drivers/net/wireless/b43/xmit.c
+++ b/drivers/net/wireless/b43/xmit.c
@@ -735,11 +735,13 @@ void b43_rx(struct b43_wldev *dev, struct sk_buff *skb, const void *_rxhdr)
}
/* Link quality statistics */
- if ((chanstat & B43_RX_CHAN_PHYTYPE) == B43_PHYTYPE_N) {
-// s8 rssi = max(rxhdr->power0, rxhdr->power1);
- //TODO: Find out what the rssi value is (dBm or percentage?)
- // and also find out what the maximum possible value is.
- // Fill status.ssi and status.signal fields.
+ if ((chanstat & B43_RX_CHAN_PHYTYPE) >= B43_PHYTYPE_N) {
+ /*
+ s8 rssi = max(rxhdr->power0, rxhdr->power1);
+ TODO: Find out what the rssi value is (dBm or percentage?)
+ and also find out what the maximum possible value is.
+ Fill status.ssi and status.signal fields.
+ */
} else {
status.signal = b43_rssi_postprocess(dev, rxhdr->jssi,
(phystat0 & B43_RX_PHYST0_OFDM),