mt76: fix resetting software IV flag on key delete
authorFelix Fietkau <nbd@nbd.name>
Fri, 25 Jan 2019 17:00:11 +0000 (18:00 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 18 Feb 2019 19:27:52 +0000 (20:27 +0100)
It needs to be unset instead of set

Fixes: 23405236460b9 ("mt76: fix transmission of encrypted management frames")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_util.c

index 87ed00768bc700785369ada2a7fcbf808469346e..11b5f664f5b1f3bc12eb9c2ec927170ad0de281f 100644 (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;