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:
Felix Fietkau
2019-02-28 17:44:12 +01:00
parent fa8340696f
commit ead881b550
+1 -1
View File
@@ -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);