blob: 5b61802b32754aa663aaa5dc5333836b3ca15d1b [file] [log] [blame]
From 84ecaf8d9a4c7d0a1eae5b3b0ed20e171a58b3c7 Mon Sep 17 00:00:00 2001
From: "lian.chen" <lian.chen@mediatek.com>
Date: Thu, 16 Jun 2022 17:41:28 +0800
Subject: [PATCH] mt76: mt7915: 4addr null frame using fixed rate to success WDS
---
mt7915/mac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mt7915/mac.c b/mt7915/mac.c
index 094d10a5..b0933625 100644
--- a/mt7915/mac.c
+++ b/mt7915/mac.c
@@ -1133,7 +1133,7 @@ mt7915_mac_write_txwi_80211(struct mt7915_dev *dev, __le32 *txwi,
txwi[3] &= ~cpu_to_le32(MT_TXD3_PROTECT_FRAME);
}
- if (!ieee80211_is_data(fc) || *mcast ||
+ if (!ieee80211_is_data(fc) || *mcast || ((ieee80211_is_nullfunc(fc) && ieee80211_has_a4(fc))) ||
info->flags & IEEE80211_TX_CTL_USE_MINRATE)
val |= MT_TXD2_FIX_RATE;
--
2.18.0