From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Date: Mon, 20 May 2013 16:36:37 +0300 Subject: [ath9k-devel] [PATCH 1/6] ath10k: set vht_nss correctly In-Reply-To: <20130520133551.6961.55701.stgit@localhost6.localdomain6> References: <20130520133551.6961.55701.stgit@localhost6.localdomain6> Message-ID: <20130520133637.6961.23112.stgit@localhost6.localdomain6> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org mac80211 requires that for VHT rate_idx contains just MCS and vht_nss contains NSS. Otherwise this triggers a warning in mac80211: [ 1336.359985] ------------[ cut here ]------------ [ 1336.362103] WARNING: at net/mac80211/rx.c:3279 ieee80211_rx+0x7aa/0x830 [mac80211]() [ 1336.364520] Hardware name: HP ProBook 6540b [ 1336.366943] Rate marked as a VHT rate but data is invalid: MCS: 27, NSS: 0 Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/txrx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/txrx.c b/drivers/net/wireless/ath/ath10k/txrx.c index a32448c..d9f7075 100644 --- a/drivers/net/wireless/ath/ath10k/txrx.c +++ b/drivers/net/wireless/ath/ath10k/txrx.c @@ -211,7 +211,8 @@ static void process_rx_rates(struct ath10k *ar, struct htt_rx_info *info, bw = info1 & 3; sgi = info2 & 1; - status->rate_idx = mcs + (nss * 10); + status->rate_idx = mcs; + status->vht_nss = nss; if (sgi) status->flag |= RX_FLAG_SHORT_GI;