iwlagn: do not send key clear commands when rfkill enabled
authorReinette Chatre <reinette.chatre@intel.com>
Fri, 17 Jul 2009 16:30:18 +0000 (09:30 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 24 Jul 2009 19:05:24 +0000 (15:05 -0400)
commit2d1bb9e58c2b13df13741d1efe1129cf1098405d
tree18e5687b7d5bc88909953cd8b4b21c15bcc9b225
parent5e215169f466e48561e40d1fa142f02e0e44a3d0
iwlagn: do not send key clear commands when rfkill enabled

Do all key clearing except sending sommands to device when rfkill
enabled. When rfkill enabled the interface is brought down and will
be brought back up correctly after rfkill is enabled again.

Same change is not needed for iwl3945 as it ignores return code when
sending key clearing command to device.

This fixes http://bugzilla.kernel.org/show_bug.cgi?id=13742

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Frans Pop <elendil@planet.nl>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-sta.c