Lines Matching refs:sband
317 struct ieee80211_supported_band *sband; in mwifiex_get_cfp() local
325 sband = priv->wdev->wiphy->bands[IEEE80211_BAND_2GHZ]; in mwifiex_get_cfp()
327 sband = priv->wdev->wiphy->bands[IEEE80211_BAND_5GHZ]; in mwifiex_get_cfp()
329 if (!sband) { in mwifiex_get_cfp()
335 for (i = 0; i < sband->n_channels; i++) { in mwifiex_get_cfp()
336 ch = &sband->channels[i]; in mwifiex_get_cfp()
351 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[IEEE80211_BAND_5GHZ]; in mwifiex_get_rates_from_cfg80211()
401 if (WARN_ON_ONCE(!sband)) in mwifiex_get_rates_from_cfg80211()
405 sband = wiphy->bands[IEEE80211_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()