wifi: mac80211: remove redundant condition
authorJohannes Berg <johannes.berg@intel.com>
Fri, 1 Jul 2022 11:40:19 +0000 (13:40 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:18 +0000 (11:43 +0200)
Here, ext_capa is checked and can only be non-NULL if
assoc_data->ie_len was set before, so the check here
is redundant.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c

index 0409dcf5a6cb7cb488a69300601e2537e2ad8b4d..e2472c0927ac213e30497e26bd9d24ba4d8e41e2 100644 (file)
@@ -981,7 +981,7 @@ skip_rates:
 
        /* Set MBSSID support for HE AP if needed */
        if (ieee80211_hw_check(&local->hw, SUPPORTS_ONLY_HE_MULTI_BSSID) &&
-           !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HE) && assoc_data->ie_len &&
+           !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HE) &&
            ext_capa && ext_capa->datalen >= 3)
                ext_capa->data[2] |= WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT;