]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: rs: don't clear persistent fields
authorEliad Peller <eliad@wizery.com>
Wed, 11 Jun 2014 12:51:33 +0000 (15:51 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 7 Jul 2014 18:41:08 +0000 (21:41 +0300)
commit9d458e6e6372644212ff0e0f203b4e10416aafa1
tree94cbcba9232e7ff4aae63af1c4292614e5dc4dde
parent352b676125df60efbd0062e9949fbcb8b7b0a596
iwlwifi: mvm: rs: don't clear persistent fields

iwl_mvm_rs_rate_init() is called multiple times to re-init
the rate scaling statistics (e.g. after some idle time).

It clears all the lq_sta sta, including some fields that
shouldn't be cleared (e.g. debugfs pointers). Fix it
by adding a new 'persistent' sub-struct, and
avoid clearing it on (re-)init.

Move the initialization of the persistent fields to
rs_alloc_sta instead.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c
drivers/net/wireless/iwlwifi/mvm/rs.h