Skip to contentSkip to conversation

carl9170: fix signal strength reporting issues

PATCH New Christian Lamparter 1 participant 1 message Dec 2, 2012 CARL9170 Linux community wireless driver

lore
Share & tools
lore

Christian Lamparter

author maintainer
#0 lore raw

PATCH 1/1 carl9170: fix signal strength reporting issues

On A-MPDU frames, the hardware only reports valid signal strength data for the last subframe.

This patch fixes it by flagging everything but the last subframe in an A-MPDU to tell mac80211 to ignore the signal strength entirely. Otherwise the empty value (= 0 dbm) will distort the average quite badly.

---
 drivers/net/wireless/ath/carl9170/rx.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/ath/carl9170/rx.c +2 -0
index 6d22382..876a773 100644
@@ -814,6 +814,8 @@ static void carl9170_rx_untie_data(struct ar9170 *ar, u8 *buf, int len)
 
 	if (phy)
 		carl9170_rx_phy_status(ar, phy, &status);
+	else
+		status.flag |= RX_FLAG_NO_SIGNAL_VAL;
 
 	if (carl9170_handle_mpdu(ar, buf, mpdu_len, &status))
 		goto drop;
Signature · 1 line
1.7.10.4