aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Bondar <alexander.bondar@intel.com>2013-08-05 07:16:45 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-08-09 08:37:10 -0400
commit495191c79f378462cc85d1e669be3f8b9ef1c8e7 (patch)
tree815e461dfb947c70e2390a593e8342e261279e57
parentef4394b9477f9078d78ae3e8359eae094c9b19d8 (diff)
iwlwifi: mvm: Fix beacon filtering enablement via debugfs
The code was only enabling it when already enabled, which obviously can't work. Signed-off-by: Alexander Bondar <alexander.bondar@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/debugfs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/iwlwifi/mvm/debugfs.c
index 2ee256d0acb7..3cdc00591f6e 100644
--- a/drivers/net/wireless/iwlwifi/mvm/debugfs.c
+++ b/drivers/net/wireless/iwlwifi/mvm/debugfs.c
@@ -895,10 +895,7 @@ static ssize_t iwl_dbgfs_bf_params_write(struct file *file,
895 if (param == MVM_DEBUGFS_BF_ENABLE_BEACON_FILTER && !value) { 895 if (param == MVM_DEBUGFS_BF_ENABLE_BEACON_FILTER && !value) {
896 ret = iwl_mvm_disable_beacon_filter(mvm, vif); 896 ret = iwl_mvm_disable_beacon_filter(mvm, vif);
897 } else { 897 } else {
898 if (mvmvif->bf_enabled) 898 ret = iwl_mvm_enable_beacon_filter(mvm, vif);
899 ret = iwl_mvm_enable_beacon_filter(mvm, vif);
900 else
901 ret = iwl_mvm_disable_beacon_filter(mvm, vif);
902 } 899 }
903 mutex_unlock(&mvm->mutex); 900 mutex_unlock(&mvm->mutex);
904 901