]> 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)
commit71d346adfe30dccb683ba7bca45d049e32e7dc74
treefc682372cc4bd6292d0d8a36353c2fa24a71cd3f
parent682d0bdc3def1bc42f2c834a5b443eb8a07eb8b8
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