]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: code cleanup for connectivity recovery
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 5 Mar 2010 22:22:46 +0000 (14:22 -0800)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 19 Mar 2010 20:41:26 +0000 (13:41 -0700)
commitc215a49912782902093b8156faa67dbd15de681d
tree3e7fba50666c23d0e534fe0ea08397d1fe35f2c7
parent5cadfa96200cb150cbcb8719934ff4f936062440
iwlwifi: code cleanup for connectivity recovery

Split the connectivity check and recovery routine into separated
functions based on the types
   1. iwl_good_ack_health() - check for ack count
   2. iwl_good_plcp_health() - check for plcp error

Based on the type of errors being detected, different recovery methods
will be used to bring the system back to normal operational state.

Because different NIC has different HW and uCode, the behavior is also
different; these functions thus now form part of the ops infrastructure,
so we can have more control on how to monitor and recover from error condition
case per device.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-1000.c
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-6000.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-rx.c