mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
wifi: mt76: mt7925: make WCID cleanup unconditional in sta_remove_links()
Drop the dead pri_link check in mt7925_mac_sta_remove_links() and perform WCID cleanup unconditionally. mlink->pri_link is already cleared before the test, making the branch ineffective. This matches the actual teardown behaviour and simplifies the remove path. No functional change intended. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Link: https://patch.msgid.link/20260306232238.2039675-14-sean.wang@kernel.org Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
9763ead5b9
commit
da14a93497
|
|
@ -1221,10 +1221,8 @@ mt7925_mac_sta_remove_links(struct mt792x_dev *dev, struct ieee80211_vif *vif,
|
|||
mlink->sta = NULL;
|
||||
mlink->pri_link = NULL;
|
||||
|
||||
if (link_sta != mlink->pri_link) {
|
||||
mt76_wcid_cleanup(mdev, wcid);
|
||||
mt76_wcid_mask_clear(mdev->wcid_mask, wcid->idx);
|
||||
}
|
||||
mt76_wcid_cleanup(mdev, wcid);
|
||||
mt76_wcid_mask_clear(mdev->wcid_mask, wcid->idx);
|
||||
|
||||
if (msta->deflink_id == link_id)
|
||||
msta->deflink_id = IEEE80211_LINK_UNSPECIFIED;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user