iwlagn: fix HW crypto for TX-only keys
commit5c30a5b33f77264cddcfb1a6659d3a9ac2661103
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Dec 2011 16:19:17 +0000 (2 08:19 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:55:49 +0000 (9 08:55 -0800)
treef29d5697aeb4e1e53fddbdfa88fe4b21f3310b15
parent43c308bd8d0a3e7d98c5abcd41a4a3fada3d198f
iwlagn: fix HW crypto for TX-only keys

commit 274b89ca3b006926cb9b45d78ab5906f4c0fc0aa upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/iwlwifi/iwl-agn-sta.c
drivers/net/wireless/iwlwifi/iwl-agn.c