From: Eliad Peller Date: Wed, 11 Jun 2014 12:51:33 +0000 (+0300) Subject: iwlwifi: mvm: rs: don't clear persistent fields X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~210^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae969afe43273c9bc8d22629efd9c51627837615;p=pandora-kernel.git 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 Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed