iwlagn: do not send key clear commands when rfkill enabled
authorReinette Chatre <reinette.chatre@intel.com>
Mon, 3 Aug 2009 19:10:16 +0000 (12:10 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 Aug 2009 20:31:23 +0000 (16:31 -0400)
commit99f1b01562b7dcae75b043114f76163fbf84fcab
treef0c389a8bb8d127b5803d3f9f8aca9c9d0da6673
parentb929c633b4067be18a335d278a66fd5deef3cabe
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