]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
iwlwifi: use consistent table for tx data collect
authorShanyu Zhao <shanyu.zhao@intel.com>
Fri, 19 Mar 2010 20:34:45 +0000 (13:34 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 2 Apr 2010 18:12:37 +0000 (11:12 -0700)
commit04f2dec1c3d375c4072613880f28f43b66524876
treef0544c88fc1205197df3680a33fe75098bf50074
parentdd48744964296b5713032ea1d66eb9e3d990e287
iwlwifi: use consistent table for tx data collect

When collecting tx data for non-aggregation packets in rate scaling, if
the tx data matches "other table", it still uses current table to update
the stats and calculate average throughput in function rs_collect_tx_data().
This can mess up the rate scaling data structure and cause a kernel panic
in a BUG_ON statement in rs_rate_scale_perform().

To fix this bug, we pass table pointer instead of window pointer (pointed
to by table pointer) to function rs_collect_tx_data() so that the table
being used is consistent.

Signed-off-by: Shanyu Zhao <shanyu.zhao@intel.com>
Signed-off-by: Henry Zhang <hongx.c.zhang@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c