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)
commit274b89ca3b006926cb9b45d78ab5906f4c0fc0aa
tree3f697c2402c8fe84d4bc219cf6eebba9842c54dc
parent03360c5a405999d605ffc7373a7b90f3388db92e
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