summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstriebit <shaul.triebitz@intel.com>2016-06-07 15:05:26 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-07 15:21:23 +0200
commitbcaf33eea097d2da64dfa9a3127e4828b53c2c0a (patch)
treee5786d619ddf80daf6507387be4c6cad475b3875
parent53cf454058e67f009dc2149939f354e74b65996b (diff)
downloadlinux-stable-bcaf33eea097d2da64dfa9a3127e4828b53c2c0a.tar.gz
linux-stable-bcaf33eea097d2da64dfa9a3127e4828b53c2c0a.tar.bz2
linux-stable-bcaf33eea097d2da64dfa9a3127e4828b53c2c0a.zip
iwlmvm: mvm: set correct state in smart-fifo configuration
commit 849a9627299100ae3f0ce573fc87d2b476f3bb59 upstream. Currently the state sent in SF configuration is always FULL_ON. This commit sets the correct state (e.g. INIT_OFF when station is not associated). Fixes: commit f4a3ee493e69 ("iwlwifi: mvm: Always enable the smart FIFO") Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/sf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sf.c b/drivers/net/wireless/intel/iwlwifi/mvm/sf.c
index 443a42855c9e..101fb04a8573 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/sf.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/sf.c
@@ -215,7 +215,7 @@ static int iwl_mvm_sf_config(struct iwl_mvm *mvm, u8 sta_id,
enum iwl_sf_state new_state)
{
struct iwl_sf_cfg_cmd sf_cmd = {
- .state = cpu_to_le32(SF_FULL_ON),
+ .state = cpu_to_le32(new_state),
};
struct ieee80211_sta *sta;
int ret = 0;