iwlwifi: Limit number of firmware reload
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Wed, 9 Feb 2011 17:37:46 +0000 (09:37 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 21 Feb 2011 18:08:15 +0000 (10:08 -0800)
commit491bc292766330473eac4569be5d57f9aeb80112
tree4642fd4973e736e1e69b486e91ebf17350157771
parentb67afe7f43afd2f5cd98798993561920c1684c12
iwlwifi: Limit number of firmware reload

If device has serious problem and cause firmware can not recover itself.
Keep reloading firmware will not help, it can only fill up the syslog and
lock up the system because busy reloading.

Introduce the limit reload counter, if the reload reach the maximum within
the pre-defined duration;stop the reload operation.

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