]> Pileus Git - ~andy/linux/commit
iwlwifi: mvm: use only a single GTK in D3
authorJohannes Berg <johannes.berg@intel.com>
Mon, 22 Jul 2013 16:26:56 +0000 (18:26 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 24 Jul 2013 07:28:23 +0000 (09:28 +0200)
commit5312e54d7e8bfe9716a1ffbc50e0093aadde46b8
treefc682372cc4bd6292d0d8a36353c2fa24a71cd3f
parenta1923f1d4723e5757cefdd60f7c7ab30e472007a
iwlwifi: mvm: use only a single GTK in D3

Unfortunately, the firmware only supports replay counters for
a single GTK in D3, so that we should only upload the last
key and use its replay counters. Since mac80211 key iteration
will walk through the keys in order of their addition, simply
use the same HW key index (1) for all GTKs, thus overwriting
previous ones with newer ones. The replay counters for it are
already used.

Reviewed-by: Yaron Vaknin <Yaron.Vaknin@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/d3.c