From: Karl Beldan Date: Mon, 25 Mar 2013 15:26:59 +0000 (+0100) Subject: mac80211_hwsim: advertise VHT support also when channels == 1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6036cfe90c689b8d3407efce2b24c1b100464a2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mac80211_hwsim: advertise VHT support also when channels == 1 Drivers can now advertise VHT support even if they don't use channel contexts. Signed-off-by: Karl Beldan Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 4ac54861e912..70b6ce61fea9 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -2310,9 +2310,6 @@ static int __init init_mac80211_hwsim(void) hw->wiphy->bands[band] = sband; - if (channels == 1) - continue; - sband->vht_cap.vht_supported = true; sband->vht_cap.cap = IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454 |