mt76: fix resetting software IV flag on key delete

It needs to be unset instead of set

Fixes: 2340523646 ("mt76: fix transmission of encrypted management frames")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2019-01-25 18:00:11 +01:00
parent 906d2d3f87
commit f2f6a47b50
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ int mt76x02_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
} else {
if (idx == wcid->hw_key_idx) {
wcid->hw_key_idx = -1;
wcid->sw_iv = true;
wcid->sw_iv = false;
}
key = NULL;