Lines Matching refs:sband
1055 struct ieee80211_supported_band *sband;
1057 sband = local->hw.wiphy->bands[band];
1058 if (!sband)
1066 for (i = 0; i < sband->n_channels; i++)
1067 if (!(sband->channels[i].flags &
1071 if (i == sband->n_channels)
1074 &sband->channels[i],
1084 channels += sband->n_channels;
1091 if (WARN_ON(sband->ht_cap.ht_supported &&
1092 (sband->ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA) &&
1096 if (max_bitrates < sband->n_bitrates)
1097 max_bitrates = sband->n_bitrates;
1098 supp_ht = supp_ht || sband->ht_cap.ht_supported;
1099 supp_vht = supp_vht || sband->vht_cap.vht_supported;
1101 for (i = 0; i < sband->n_iftype_data; i++) {
1104 iftd = &sband->iftype_data[i];
1119 if (!sband->ht_cap.ht_supported)
1124 max(ieee80211_mcs_to_chains(&sband->ht_cap.mcs),
1128 sband->ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED <<
1350 * or have it when we don't, copy the sband structure and set/clear it.
1358 struct ieee80211_supported_band *sband;
1363 sband = local->hw.wiphy->bands[band];
1364 if (!sband || !sband->vht_cap.vht_supported)
1367 ie_cap = !!(sband->vht_cap.vht_mcs.tx_highest &
1373 sband = kmemdup(sband, sizeof(*sband), GFP_KERNEL);
1374 if (!sband) {
1379 wiphy_dbg(hw->wiphy, "copying sband (band %d) due to VHT EXT NSS BW flag\n",
1382 sband->vht_cap.vht_mcs.tx_highest ^=
1385 local->hw.wiphy->bands[band] = sband;