iwlagn: do not send key clear commands when rfkill enabled
commit6cb7c2af438ae469703159a5ed83ccaf13cf2487
authorReinette Chatre <reinette.chatre@intel.com>
Mon, 3 Aug 2009 19:10:16 +0000 (3 12:10 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:33:39 +0000 (8 20:33 -0700)
treee52bdc5eea8c216c98696d75a9bc12927eaee67b
parent559850bb1cb43fe20be82e068ef232df18e4ea21
iwlagn: do not send key clear commands when rfkill enabled

commit 99f1b01562b7dcae75b043114f76163fbf84fcab upstream.

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