Lines Matching defs:sband

4900 static void mac80211_hwsim_sband_capab(struct ieee80211_supported_band *sband)
4904 if (sband->band == NL80211_BAND_2GHZ) {
4906 sband->iftype_data =
4908 } else if (sband->band == NL80211_BAND_5GHZ) {
4910 sband->iftype_data =
4912 } else if (sband->band == NL80211_BAND_6GHZ) {
4914 sband->iftype_data =
4920 sband->n_iftype_data = n_iftype_data;
5186 struct ieee80211_supported_band *sband = &data->bands[band];
5188 sband->band = band;
5192 sband->channels = data->channels_2ghz;
5193 sband->n_channels = ARRAY_SIZE(hwsim_channels_2ghz);
5194 sband->bitrates = data->rates;
5195 sband->n_bitrates = ARRAY_SIZE(hwsim_rates);
5198 sband->channels = data->channels_5ghz;
5199 sband->n_channels = ARRAY_SIZE(hwsim_channels_5ghz);
5200 sband->bitrates = data->rates + 4;
5201 sband->n_bitrates = ARRAY_SIZE(hwsim_rates) - 4;
5203 sband->vht_cap.vht_supported = true;
5204 sband->vht_cap.cap =
5213 sband->vht_cap.vht_mcs.rx_mcs_map =
5222 sband->vht_cap.vht_mcs.tx_mcs_map =
5223 sband->vht_cap.vht_mcs.rx_mcs_map;
5226 sband->channels = data->channels_6ghz;
5227 sband->n_channels = ARRAY_SIZE(hwsim_channels_6ghz);
5228 sband->bitrates = data->rates + 4;
5229 sband->n_bitrates = ARRAY_SIZE(hwsim_rates) - 4;
5232 memcpy(&sband->s1g_cap, &hwsim_s1g_cap,
5233 sizeof(sband->s1g_cap));
5234 sband->channels = data->channels_s1g;
5235 sband->n_channels = ARRAY_SIZE(hwsim_channels_s1g);
5242 sband->ht_cap.ht_supported = true;
5243 sband->ht_cap.cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
5248 sband->ht_cap.ampdu_factor = 0x3;
5249 sband->ht_cap.ampdu_density = 0x6;
5250 memset(&sband->ht_cap.mcs, 0,
5251 sizeof(sband->ht_cap.mcs));
5252 sband->ht_cap.mcs.rx_mask[0] = 0xff;
5253 sband->ht_cap.mcs.rx_mask[1] = 0xff;
5254 sband->ht_cap.mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED;
5257 mac80211_hwsim_sband_capab(sband);
5259 hw->wiphy->bands[band] = sband;