mac80211-hwsim: support SGI-20
authorBen Greear <greearb@candelatech.com>
Fri, 24 Oct 2014 18:12:08 +0000 (11:12 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 Oct 2014 17:42:52 +0000 (18:42 +0100)
This lets hostapd start if you have SGI-20 configured
as one of your HT capabilities.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c

index f808706d9ee3bd296e17933cfa91c494350edfe3..06ca3a92fc7ef99dc7fa0cd930ae6527781496d3 100644 (file)
@@ -2178,6 +2178,7 @@ static int mac80211_hwsim_create_radio(int channels, const char *reg_alpha2,
                sband->ht_cap.ht_supported = true;
                sband->ht_cap.cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
                                    IEEE80211_HT_CAP_GRN_FLD |
+                                   IEEE80211_HT_CAP_SGI_20 |
                                    IEEE80211_HT_CAP_SGI_40 |
                                    IEEE80211_HT_CAP_DSSSCCK40;
                sband->ht_cap.ampdu_factor = 0x3;