iwlagn: leave notification waits on firmware errors
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Apr 2011 10:14:49 +0000 (03:14 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 22 Apr 2011 17:03:03 +0000 (10:03 -0700)
commite74fe2330a5a721610b2b69652d2ec2ebbd302e0
tree6278e09720a76776b69f8277057b41e3858ffebb
parenta8674a1efca60d863d4caa47e102cc4d70d5ff9b
iwlagn: leave notification waits on firmware errors

When the firmware encounters an error while the
driver is waiting for a notification, it will
never get that notification. Therefore, instead
of timing out, bail out on errors when waiting
for notifications.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-dev.h