Skip to content

Commit 0e02f6e

Browse files
Ming Yen Hsiehnbd168
authored andcommitted
wifi: mt76: mt7925: Update mt7925_mcu_sta_update for BC in ASSOC state
Update mt7925_mcu_sta_update for broadcast (BC) in the ASSOC state. Fixes: 86c051f ("wifi: mt76: mt7925: enabling MLO when the firmware supports it") Signed-off-by: Ming Yen Hsieh <[email protected]> Signed-off-by: Sean Wang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
1 parent e6803d3 commit 0e02f6e

File tree

1 file changed

+5
-1
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7925

1 file changed

+5
-1
lines changed

drivers/net/wireless/mediatek/mt76/mt7925/mcu.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,11 @@ int mt7925_mcu_sta_update(struct mt792x_dev *dev,
19031903
mlink = mt792x_sta_to_link(msta, link_sta->link_id);
19041904
}
19051905
info.wcid = link_sta ? &mlink->wcid : &mvif->sta.deflink.wcid;
1906-
info.newly = link_sta ? state != MT76_STA_INFO_STATE_ASSOC : true;
1906+
1907+
if (link_sta)
1908+
info.newly = state != MT76_STA_INFO_STATE_ASSOC;
1909+
else
1910+
info.newly = state == MT76_STA_INFO_STATE_ASSOC ? false : true;
19071911

19081912
if (ieee80211_vif_is_mld(vif))
19091913
err = mt7925_mcu_mlo_sta_cmd(&dev->mphy, &info);

0 commit comments

Comments
 (0)