mac80211_hwsim: advertise VHT support also when channels == 1
authorKarl Beldan <karl.beldan@rivierawaves.com>
Mon, 25 Mar 2013 15:26:59 +0000 (16:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 8 Apr 2013 07:16:54 +0000 (09:16 +0200)
Drivers can now advertise VHT support even if they don't use channel
contexts.

Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c

index 4ac54861e912e918f1fca84c22d135a3b13e6059..70b6ce61fea9a25833b543a080fcb78a6ce1ce96 100644 (file)
@@ -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 |