mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7925: use link-specific removal for non-MLD STA
Use the default link removal path for non-MLD STA instead of the multi-link flow. Signed-off-by: Sean Wang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+6
-6
@@ -1344,14 +1344,14 @@ void mt7925_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
|
|||||||
struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76);
|
struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76);
|
||||||
struct mt792x_sta *msta = (struct mt792x_sta *)sta->drv_priv;
|
struct mt792x_sta *msta = (struct mt792x_sta *)sta->drv_priv;
|
||||||
struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv;
|
struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv;
|
||||||
unsigned long rem;
|
|
||||||
|
|
||||||
rem = ieee80211_vif_is_mld(vif) ? msta->valid_links : BIT(0);
|
if (ieee80211_vif_is_mld(vif)) {
|
||||||
|
mt7925_mac_sta_remove_links(dev, vif, sta, msta->valid_links);
|
||||||
mt7925_mac_sta_remove_links(dev, vif, sta, rem);
|
|
||||||
|
|
||||||
if (ieee80211_vif_is_mld(vif))
|
|
||||||
mt7925_mcu_del_dev(mdev, vif);
|
mt7925_mcu_del_dev(mdev, vif);
|
||||||
|
} else {
|
||||||
|
mt7925_mac_link_sta_remove(mdev, vif, &sta->deflink,
|
||||||
|
&msta->deflink);
|
||||||
|
}
|
||||||
|
|
||||||
if (vif->type == NL80211_IFTYPE_STATION) {
|
if (vif->type == NL80211_IFTYPE_STATION) {
|
||||||
mvif->wep_sta = NULL;
|
mvif->wep_sta = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user