]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
iwlwifi: Recover TX flow failure
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 4 Mar 2010 21:38:59 +0000 (13:38 -0800)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 19 Mar 2010 20:41:26 +0000 (13:41 -0700)
commitd5a0ffa3eaf9e898f25a925813f1a723be7808f8
tree37610c33a6802b6eac524cc2cd298705059cf18d
parentbeac5498b792ed8420885ee23e8d4f2885ee2d13
iwlwifi: Recover TX flow failure

Monitors the tx statistics to detect the drop in throughput.
When the throughput drops, the ratio of the actual_ack_count and the
expected_ack_count also drops.  At the same time, the aggregated
ba_timeout (the number of ba timeout retries) also rises.  If the
actual_ack_count/expected_ack_count ratio is 0 and the number of ba
timeout retries rises to BA_TIMEOUT_MAX, no tx packets can be delivered.
Reloading the uCode and bring the system back to normal operational
state.

Signed-off-by: Trieu 'Andrew' Nguyen <trieux.t.nguyen@intel.com>
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-agn.c
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-rx.c