b43: trivial: do not report any link quality instead of invalid one
authorRafał Miłecki <zajec5@gmail.com>
Fri, 7 Oct 2011 20:39:35 +0000 (22:39 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Oct 2011 20:41:23 +0000 (16:41 -0400)
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>
drivers/net/wireless/b43/xmit.c

index b8de62c22479409a3d57904d41e8871d1ff4a716..5f812d1d6d0e9a829fbfad892bc209f9afd48781 100644 (file)
@@ -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),