]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: fix D3 CCMP TX PN assignment
authorJohannes Berg <johannes.berg@intel.com>
Tue, 15 Sep 2015 07:58:53 +0000 (09:58 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 5 Oct 2015 10:48:36 +0000 (13:48 +0300)
commitcb5bf56957d34ab129ce3d305202c86c7b99d087
tree10786bfca5ae0443ab4c7fcd36e27c4270f186a6
parent39efaef03ed03fbc5ee51d794fc98d0ec6a91430
iwlwifi: mvm: fix D3 CCMP TX PN assignment

When going into/coming out of D3, the TX PN must be programmed into
and restored from the firmware respectively. The restore was broken
due to my previous commit to move PN assignment into the driver.
Sending the PN to the firmware still worked since we now use the
counter that's shared with mac80211, but accessing it through the
mac80211 API makes no sense now.

Fix this by reading/writing the counter directly. This actually
simplifies the code since we don't need to round-trip through the
key_seq structure.

Fixes: 13aa3598179e ("iwlwifi: mvm: move TX PN assignment for CCMP to the driver")
Cc: <stable@vger.kernel.org> [4.1+]
Reported-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/iwlwifi/mvm/d3.c