mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
wifi: mt76: connac: fix txd multicast rate setting
The vif->bss_conf.mcast_rate should be applied to multicast data frame
only.
Fixes: 182071cdd5 ("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>
This commit is contained in:
@@ -558,7 +558,8 @@ void mt76_connac2_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
|
|||||||
if (txwi[2] & cpu_to_le32(MT_TXD2_FIX_RATE)) {
|
if (txwi[2] & cpu_to_le32(MT_TXD2_FIX_RATE)) {
|
||||||
/* Fixed rata is available just for 802.11 txd */
|
/* Fixed rata is available just for 802.11 txd */
|
||||||
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
|
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
|
||||||
bool multicast = is_multicast_ether_addr(hdr->addr1);
|
bool multicast = ieee80211_is_data(hdr->frame_control) &&
|
||||||
|
is_multicast_ether_addr(hdr->addr1);
|
||||||
u16 rate = mt76_connac2_mac_tx_rate_val(mphy, vif, beacon,
|
u16 rate = mt76_connac2_mac_tx_rate_val(mphy, vif, beacon,
|
||||||
multicast);
|
multicast);
|
||||||
u32 val = MT_TXD6_FIXED_BW;
|
u32 val = MT_TXD6_FIXED_BW;
|
||||||
|
|||||||
Reference in New Issue
Block a user