iwlwifi: mvm: rs: clear per rate stats when aggregation changes
authorEyal Shapira <eyal@wizery.com>
Wed, 4 Jun 2014 18:58:01 +0000 (21:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:28 +0000 (10:28 -0700)
commitca4a4d64a7b1c0d08067622c02ec6a276a4ebf7c
tree931bf030b8a10e63ad19689dc92718e7c06a9adb
parent424048eb3ff12c2b8da830cb8827d5bec136f515
iwlwifi: mvm: rs: clear per rate stats when aggregation changes

commit b804eeb6649d75caeccbeae9f5623fc7b8bdfdfa upstream.

The per rate stats should be cleared when aggregation state changes
to avoid making rate scale decisions based on throughput figures which
were collected prior to the aggregation state change and are now stale.
While at it make sure any clearing of the per rate stats will get logged.

Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/mvm/rs.c