Lines Matching refs:sband
315 struct ieee80211_supported_band *sband; in mwifiex_get_cfp() local
323 sband = priv->wdev.wiphy->bands[NL80211_BAND_2GHZ]; in mwifiex_get_cfp()
325 sband = priv->wdev.wiphy->bands[NL80211_BAND_5GHZ]; in mwifiex_get_cfp()
327 if (!sband) { in mwifiex_get_cfp()
334 for (i = 0; i < sband->n_channels; i++) { in mwifiex_get_cfp()
335 ch = &sband->channels[i]; in mwifiex_get_cfp()
350 if (i == sband->n_channels) { in mwifiex_get_cfp()
396 struct ieee80211_supported_band *sband; in mwifiex_get_rates_from_cfg80211() local
400 sband = wiphy->bands[NL80211_BAND_5GHZ]; in mwifiex_get_rates_from_cfg80211()
401 if (WARN_ON_ONCE(!sband)) in mwifiex_get_rates_from_cfg80211()
405 sband = wiphy->bands[NL80211_BAND_2GHZ]; in mwifiex_get_rates_from_cfg80211()
406 if (WARN_ON_ONCE(!sband)) in mwifiex_get_rates_from_cfg80211()
412 for (i = 0; i < sband->n_bitrates; i++) { in mwifiex_get_rates_from_cfg80211()
415 rates[num_rates++] = (u8)(sband->bitrates[i].bitrate / 5); in mwifiex_get_rates_from_cfg80211()