]> git.baikalelectronics.ru Git - kernel.git/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)
commit32ea4e39d7805cf69e1b5721e79462207bb2ddad
treefc682372cc4bd6292d0d8a36353c2fa24a71cd3f
parent09429507db943c26e504985648629271f598d33b
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