mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: skip deflink accounting for offchannel links
Do not take into account offchannel links for deflink accounting.
Fixes: a3316d2fc669f ("wifi: mt76: mt7996: set vif default link_id adding/removing vif links")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Tested-by: Ben Greear <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
5f29f4ca68
commit
b01325c2d9
+4
-2
@@ -370,7 +370,8 @@ int mt7996_vif_link_add(struct mt76_phy *mphy, struct ieee80211_vif *vif,
|
||||
|
||||
ieee80211_iter_keys(mphy->hw, vif, mt7996_key_iter, &it);
|
||||
|
||||
if (mvif->mt76.deflink_id == IEEE80211_LINK_UNSPECIFIED)
|
||||
if (!mlink->wcid->offchannel &&
|
||||
mvif->mt76.deflink_id == IEEE80211_LINK_UNSPECIFIED)
|
||||
mvif->mt76.deflink_id = link_conf->link_id;
|
||||
|
||||
return 0;
|
||||
@@ -401,7 +402,8 @@ void mt7996_vif_link_remove(struct mt76_phy *mphy, struct ieee80211_vif *vif,
|
||||
|
||||
rcu_assign_pointer(dev->mt76.wcid[idx], NULL);
|
||||
|
||||
if (mvif->mt76.deflink_id == link_conf->link_id) {
|
||||
if (!mlink->wcid->offchannel &&
|
||||
mvif->mt76.deflink_id == link_conf->link_id) {
|
||||
struct ieee80211_bss_conf *iter;
|
||||
unsigned int link_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user