wifi: iwlwifi: mvm: Fix unreachable code path
authorIlan Peer <ilan.peer@intel.com>
Wed, 11 Oct 2023 10:07:18 +0000 (13:07 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Oct 2023 10:26:26 +0000 (12:26 +0200)
Fix unreachable code path that was introduced in the P2P Device
linking refactoring.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20231011130030.39d76eeea781.I2dc1fc6152a2cd4cf68827f4d3bf83e2293d3dfb@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

index 56945047e4f6da70120a9f082ac80200b495f5b1..f33c8a00d326bb34612ac280def4ffd0569dcdea 100644 (file)
@@ -1637,11 +1637,6 @@ out:
 
        goto out_unlock;
 
-       if (mvm->bf_allowed_vif == mvmvif) {
-               mvm->bf_allowed_vif = NULL;
-               vif->driver_flags &= ~(IEEE80211_VIF_BEACON_FILTER |
-                                      IEEE80211_VIF_SUPPORTS_CQM_RSSI);
-       }
  out_remove_mac:
        mvmvif->deflink.phy_ctxt = NULL;
        iwl_mvm_mac_ctxt_remove(mvm, vif);