mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt76x02: do not sync PN for keys with sw_iv set
The hardware PN value is invalid in that case Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -431,7 +431,7 @@ static void mt76x02_key_sync(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
|
||||
wcid = (struct mt76_wcid *) sta->drv_priv;
|
||||
|
||||
if (wcid->hw_key_idx != key->keyidx)
|
||||
if (wcid->hw_key_idx != key->keyidx || wcid->sw_iv)
|
||||
return;
|
||||
|
||||
mt76x02_mac_wcid_sync_pn(dev, wcid->idx, key);
|
||||
|
||||
Reference in New Issue
Block a user