Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55ad5962 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville
Browse files

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: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 73a253ca
Loading
Loading
Loading
Loading
+7 −5
Original line number Original line Diff line number Diff line
@@ -735,11 +735,13 @@ void b43_rx(struct b43_wldev *dev, struct sk_buff *skb, const void *_rxhdr)
	}
	}


	/* Link quality statistics */
	/* Link quality statistics */
	if ((chanstat & B43_RX_CHAN_PHYTYPE) == B43_PHYTYPE_N) {
	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?)
		s8 rssi = max(rxhdr->power0, rxhdr->power1);
		//      and also find out what the maximum possible value is.
		TODO: Find out what the rssi value is (dBm or percentage?)
		//      Fill status.ssi and status.signal fields.
		      and also find out what the maximum possible value is.
		      Fill status.ssi and status.signal fields.
		*/
	} else {
	} else {
		status.signal = b43_rssi_postprocess(dev, rxhdr->jssi,
		status.signal = b43_rssi_postprocess(dev, rxhdr->jssi,
						  (phystat0 & B43_RX_PHYST0_OFDM),
						  (phystat0 & B43_RX_PHYST0_OFDM),