]> git.baikalelectronics.ru Git - kernel.git/commit
iwlagn: fix HW crypto for TX-only keys
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Dec 2011 16:19:17 +0000 (08:19 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 2 Dec 2011 19:53:17 +0000 (14:53 -0500)
commit070b66607bdfc440e268e76e3a2e757403034a94
tree3f697c2402c8fe84d4bc219cf6eebba9842c54dc
parent04568479d5dc9fd4f4b5016f5b202e0622f23b01
iwlagn: fix HW crypto for TX-only keys

Group keys in IBSS or AP mode are not programmed
into the device since we give the key to it with
every TX packet. However, we do need mac80211 to
create the MMIC & PN in all cases. Move the code
around to set the key flags all the time. We set
them even when the key is removed again but that
is obviously harmless.

Cc: stable@vger.kernel.org
Reported-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-sta.c
drivers/net/wireless/iwlwifi/iwl-agn.c