mt76: fix corrupted software generated tx CCMP PN
authorFelix Fietkau <nbd@nbd.name>
Fri, 25 Jan 2019 16:59:06 +0000 (17:59 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 18 Feb 2019 19:27:52 +0000 (20:27 +0100)
commit906d2d3f874a54183df5a609fda180adf0462428
tree84edb7b3aea4b96e7f75ea7eea0069868a8e5247
parentb231cd7f557d59b7922a3b8dc29ef1f23338f1fc
mt76: fix corrupted software generated tx CCMP PN

Since ccmp_pn is u8 *, the second half needs to start at array index 4
instead of 0. Fixes a connection stall after a certain amount of traffic

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