From 2db869ac93d17bdf9d84cb53aa09dba3bdb1e06d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 31 Jan 2016 23:51:19 +0100 Subject: [PATCH] mt7603: fix fixed-rate check Signed-off-by: Felix Fietkau --- mt7603_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt7603_mac.c b/mt7603_mac.c index a55df5cf..f022d36c 100644 --- a/mt7603_mac.c +++ b/mt7603_mac.c @@ -362,7 +362,7 @@ int mt7603_mac_write_txwi(struct mt76_dev *mdev, void *txwi_ptr, txwi[6] = 0; spin_lock_bh(&dev->mt76.lock); - if (rate->idx >= 0 && !rate->count) { + if (rate->idx >= 0 && rate->count) { u16 rateval = mt7603_mac_tx_rate_val(dev, rate, &nss, &bw); if ((info->flags & IEEE80211_TX_CTL_STBC) && nss == 1)