@@ -4849,9 +4849,8 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata,
break;
}
- if (!have_80mhz) {
+ if (!have_80mhz)
ifmgd->flags |= IEEE80211_STA_DISABLE_VHT;
- }
ifmgd->flags |= ieee80211_determine_chantype(sdata, sband,
cbss->channel,
@@ -5463,9 +5462,8 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
ifmgd->flags |= IEEE80211_STA_DISABLE_HE;
}
- if (req->flags & ASSOC_REQ_DISABLE_VHT) {
+ if (req->flags & ASSOC_REQ_DISABLE_VHT)
ifmgd->flags |= IEEE80211_STA_DISABLE_VHT;
- }
err = ieee80211_prep_connection(sdata, req->bss, true, override);
if (err)