iwlwifi: dvm: fix D3 firmware PN programming
authorJohannes Berg <johannes.berg@intel.com>
Tue, 15 Sep 2015 12:36:09 +0000 (14:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Nov 2015 18:12:57 +0000 (10:12 -0800)
commit38bfcab84ac41098348ab3419ffdd31b4849639c
treea12f1cdbe0b9e82c28d3ed8fcd719291d6740354
parente35ae50db7e2cabd943031815ee04a7afc206ebd
iwlwifi: dvm: fix D3 firmware PN programming

commit 5bd166872d8f99f156fac191299d24f828bb2348 upstream.

The code to send the RX PN data (for each TID) to the firmware
has a devastating bug: it overwrites the data for TID 0 with
all the TID data, leaving the remaining TIDs zeroed. This will
allow replays to actually be accepted by the firmware, which
could allow waking up the system.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/dvm/lib.c