Skip to content

Commit 0337355

Browse files
Michael-CY Leenbd168
authored andcommitted
wifi: mt76: mt7996: remove unnecessary key->cipher check for BIP frames
The cipher type check is redundant, and there is no need to dereference the key struct here. Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com> Link: https://patch.msgid.link/20250311103646.43346-3-nbd@nbd.name Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent 8d38abd commit 0337355

File tree

1 file changed

+1
-2
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7996

1 file changed

+1
-2
lines changed

drivers/net/wireless/mediatek/mt76/mt7996/mac.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,7 @@ mt7996_mac_write_txwi_80211(struct mt7996_dev *dev, __le32 *txwi,
773773
info->flags & IEEE80211_TX_CTL_USE_MINRATE)
774774
val |= MT_TXD1_FIXED_RATE;
775775

776-
if (key && multicast && ieee80211_is_robust_mgmt_frame(skb) &&
777-
key->cipher == WLAN_CIPHER_SUITE_AES_CMAC) {
776+
if (key && multicast && ieee80211_is_robust_mgmt_frame(skb)) {
778777
val |= MT_TXD1_BIP;
779778
txwi[3] &= ~cpu_to_le32(MT_TXD3_PROTECT_FRAME);
780779
}

0 commit comments

Comments
 (0)