Lines Matching refs:sband
303 struct ieee80211_supported_band *sband; in mwifiex_get_cfp() local
311 sband = priv->wdev.wiphy->bands[NL80211_BAND_2GHZ]; in mwifiex_get_cfp()
313 sband = priv->wdev.wiphy->bands[NL80211_BAND_5GHZ]; in mwifiex_get_cfp()
315 if (!sband) { in mwifiex_get_cfp()
322 for (i = 0; i < sband->n_channels; i++) { in mwifiex_get_cfp()
323 ch = &sband->channels[i]; in mwifiex_get_cfp()
338 if (i == sband->n_channels) { in mwifiex_get_cfp()
384 struct ieee80211_supported_band *sband; in mwifiex_get_rates_from_cfg80211() local
388 sband = wiphy->bands[NL80211_BAND_5GHZ]; in mwifiex_get_rates_from_cfg80211()
389 if (WARN_ON_ONCE(!sband)) in mwifiex_get_rates_from_cfg80211()
393 sband = wiphy->bands[NL80211_BAND_2GHZ]; in mwifiex_get_rates_from_cfg80211()
394 if (WARN_ON_ONCE(!sband)) in mwifiex_get_rates_from_cfg80211()
400 for (i = 0; i < sband->n_bitrates; i++) { in mwifiex_get_rates_from_cfg80211()
403 rates[num_rates++] = (u8)(sband->bitrates[i].bitrate / 5); in mwifiex_get_rates_from_cfg80211()