iwlwifi: mvm: Fix beacon filtering enablement via debugfs
authorAlexander Bondar <alexander.bondar@intel.com>
Mon, 5 Aug 2013 11:16:45 +0000 (14:16 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Aug 2013 12:37:10 +0000 (14:37 +0200)
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>
drivers/net/wireless/iwlwifi/mvm/debugfs.c

index 2ee256d0acb7e66cff8e6aef6436431630f383e8..3cdc00591f6e67fffc63b7157ea628b0b33e5363 100644 (file)
@@ -895,10 +895,7 @@ static ssize_t iwl_dbgfs_bf_params_write(struct file *file,
        if (param == MVM_DEBUGFS_BF_ENABLE_BEACON_FILTER && !value) {
                ret = iwl_mvm_disable_beacon_filter(mvm, vif);
        } else {
-               if (mvmvif->bf_enabled)
-                       ret = iwl_mvm_enable_beacon_filter(mvm, vif);
-               else
-                       ret = iwl_mvm_disable_beacon_filter(mvm, vif);
+               ret = iwl_mvm_enable_beacon_filter(mvm, vif);
        }
        mutex_unlock(&mvm->mutex);
 
This page took 0.05467 seconds and 5 git commands to generate.