Skip to content

wifi: mt76: fix RCPI chain 3 mask in sta_poll RSSI extraction

Joshua Klinesmith linux-wireless lkml stable 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4wifi: mt76: mt7915: fix RCPI chain 3 mask in sta_poll RSSI extractiondrivers/net/wireless/mediatek/mt76/mt7915/mac.c+1 -10 replies
2/4wifi: mt76: mt7996: fix RCPI chain 3 mask in sta_poll RSSI extractiondrivers/net/wireless/mediatek/mt76/mt7996/mac.c+1 -10 replies
3/4wifi: mt76: mt7921: fix RCPI chain 3 mask in sta_poll RSSI extractiondrivers/net/wireless/mediatek/mt76/mt7921/mac.c+1 -10 replies
4/4wifi: mt76: mt7925: fix RCPI chain 3 mask in sta_poll RSSI extractiondrivers/net/wireless/mediatek/mt76/mt7925/mac.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH wireless v2 0/4] wifi: mt76: fix RCPI chain 3 mask in sta_poll RSSI extraction

The fourth receive chain RCPI extraction in sta_poll uses GENMASK(31, 14), an 18-bit mask spanning bits 14-31. It should be GENMASK(31, 24), an 8-bit mask for the fourth byte, consistent with the other three chains and with the RCPI3 definitions used elsewhere in the driver.

On devices with fewer than 4 antenna chains the corrupted value is masked out by antenna_mask. On 4-chain devices this produces incorrect ACK signal strength readings.
---
v1 -> v2: Rebased on wireless.git (was mt76-fixes)

Joshua Klinesmith (4):
wifi: mt76: mt7915: fix RCPI chain 3 mask in sta_poll RSSI extraction
wifi: mt76: mt7996: fix RCPI chain 3 mask in sta_poll RSSI extraction
wifi: mt76: mt7921: fix RCPI chain 3 mask in sta_poll RSSI extraction
wifi: mt76: mt7925: fix RCPI chain 3 mask in sta_poll RSSI extraction

 drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 2 +-
 drivers/net/wireless/mediatek/mt76/mt7921/mac.c | 2 +-
 drivers/net/wireless/mediatek/mt76/mt7925/mac.c | 2 +-
 drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

base-commit: ce5cc2702bb63ecd1f2066acb7d6e7d19081618d

Signature · 1 line
2.43.0