Skip to content

Commit 3d2892e

Browse files
ryderlee1110nbd168
authored andcommitted
wifi: mt76: connac: fix txd multicast rate setting
The vif->bss_conf.mcast_rate should be applied to multicast data frame only. Fixes: 182071c ("mt76: connac: move connac2_mac_write_txwi in mt76_connac module") Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent 3d78c46 commit 3d2892e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
558558
if (txwi[2] & cpu_to_le32(MT_TXD2_FIX_RATE)) {
559559
/* Fixed rata is available just for 802.11 txd */
560560
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
561-
bool multicast = is_multicast_ether_addr(hdr->addr1);
561+
bool multicast = ieee80211_is_data(hdr->frame_control) &&
562+
is_multicast_ether_addr(hdr->addr1);
562563
u16 rate = mt76_connac2_mac_tx_rate_val(mphy, vif, beacon,
563564
multicast);
564565
u32 val = MT_TXD6_FIXED_BW;

0 commit comments

Comments
 (0)