Skip to content

Commit

Permalink
mt7603: fix endian issue in CCMP PN
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed May 26, 2017
1 parent b8a7d07 commit 219c8dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mt7603_mac.c
Expand Up @@ -715,8 +715,8 @@ mt7603_mac_write_txwi(struct mt7603_dev *dev, __le32 *txwi,
if (key) {
u64 pn = atomic64_inc_return(&key->tx_pn);
txwi[3] |= cpu_to_le32(MT_TXD3_PN_VALID);
txwi[4] = pn & GENMASK(31, 0);
txwi[5] |= FIELD_PREP(MT_TXD5_PN_HIGH, pn >> 32);
txwi[4] = cpu_to_le32(pn & GENMASK(31, 0));
txwi[5] |= cpu_to_le32(FIELD_PREP(MT_TXD5_PN_HIGH, pn >> 32));
}

txwi[7] = 0;
Expand Down

0 comments on commit 219c8dc

Please sign in to comment.