Commit c4340c26 authored by Michal Kazior's avatar Michal Kazior Committed by Kalle Valo

ath10k: fix NSS reporting in RX

NSTS values reported in the VHT-SIG-A1 are 0
through 7 but they actually describe number of
streams 1 through 8.

1SS frames were dropped. This patch fixes this.
Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 5c54a7bf
...@@ -183,7 +183,7 @@ static void process_rx_rates(struct ath10k *ar, struct htt_rx_info *info, ...@@ -183,7 +183,7 @@ static void process_rx_rates(struct ath10k *ar, struct htt_rx_info *info,
/* VHT-SIG-A1 in info 1, VHT-SIG-A2 in info2 /* VHT-SIG-A1 in info 1, VHT-SIG-A2 in info2
TODO check this */ TODO check this */
mcs = (info2 >> 4) & 0x0F; mcs = (info2 >> 4) & 0x0F;
nss = (info1 >> 10) & 0x07; nss = ((info1 >> 10) & 0x07) + 1;
bw = info1 & 3; bw = info1 & 3;
sgi = info2 & 1; sgi = info2 & 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment