Home
last modified time | relevance | path

Searched refs:sband (Results 1 – 25 of 41) sorted by relevance

12

/drivers/net/wireless/rtlwifi/
Dregd.c146 struct ieee80211_supported_band *sband; in _rtl_reg_apply_beaconing_flags() local
156 sband = wiphy->bands[band]; in _rtl_reg_apply_beaconing_flags()
158 for (i = 0; i < sband->n_channels; i++) { in _rtl_reg_apply_beaconing_flags()
159 ch = &sband->channels[i]; in _rtl_reg_apply_beaconing_flags()
197 struct ieee80211_supported_band *sband; in _rtl_reg_apply_active_scan_flags() local
203 sband = wiphy->bands[IEEE80211_BAND_2GHZ]; in _rtl_reg_apply_active_scan_flags()
210 ch = &sband->channels[11]; /* CH 12 */ in _rtl_reg_apply_active_scan_flags()
213 ch = &sband->channels[12]; /* CH 13 */ in _rtl_reg_apply_active_scan_flags()
226 ch = &sband->channels[11]; /* CH 12 */ in _rtl_reg_apply_active_scan_flags()
234 ch = &sband->channels[12]; /* CH 13 */ in _rtl_reg_apply_active_scan_flags()
[all …]
Dbase.c325 struct ieee80211_supported_band *sband; in _rtl_init_mac80211() local
331 sband = &(rtlmac->bands[IEEE80211_BAND_2GHZ]); in _rtl_init_mac80211()
339 _rtl_init_hw_ht_capab(hw, &sband->ht_cap); in _rtl_init_mac80211()
342 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; in _rtl_init_mac80211()
346 sband = &(rtlmac->bands[IEEE80211_BAND_5GHZ]); in _rtl_init_mac80211()
354 _rtl_init_hw_ht_capab(hw, &sband->ht_cap); in _rtl_init_mac80211()
356 _rtl_init_hw_vht_capab(hw, &sband->vht_cap); in _rtl_init_mac80211()
358 hw->wiphy->bands[IEEE80211_BAND_5GHZ] = sband; in _rtl_init_mac80211()
362 sband = &(rtlmac->bands[IEEE80211_BAND_2GHZ]); in _rtl_init_mac80211()
371 _rtl_init_hw_ht_capab(hw, &sband->ht_cap); in _rtl_init_mac80211()
[all …]
Drc.c191 struct ieee80211_supported_band *sband, in rtl_tx_status() argument
231 struct ieee80211_supported_band *sband, in rtl_rate_init() argument
238 struct ieee80211_supported_band *sband, in rtl_rate_update() argument
/drivers/net/wireless/mwifiex/
Dcfp.c317 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()
[all …]
D11h.c34 struct ieee80211_supported_band *sband; in mwifiex_11h_process_infra_join() local
42 sband = priv->wdev->wiphy->bands[radio_type]; in mwifiex_11h_process_infra_join()
60 ie_header->len = cpu_to_le16(2 * sband->n_channels + 2); in mwifiex_11h_process_infra_join()
63 *(*buffer)++ = 2 * sband->n_channels; in mwifiex_11h_process_infra_join()
64 for (i = 0; i < sband->n_channels; i++) { in mwifiex_11h_process_infra_join()
66 sband->channels[i].center_freq); in mwifiex_11h_process_infra_join()
D11n.c41 struct ieee80211_supported_band *sband = in mwifiex_fill_cap_info() local
44 if (WARN_ON_ONCE(!sband)) { in mwifiex_fill_cap_info()
50 (sband->ht_cap.ampdu_factor & in mwifiex_fill_cap_info()
52 ((sband->ht_cap.ampdu_density << in mwifiex_fill_cap_info()
56 memcpy((u8 *)&ht_cap->mcs, &sband->ht_cap.mcs, in mwifiex_fill_cap_info()
57 sizeof(sband->ht_cap.mcs)); in mwifiex_fill_cap_info()
60 (sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in mwifiex_fill_cap_info()
69 ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); in mwifiex_fill_cap_info()
309 struct ieee80211_supported_band *sband; in mwifiex_cmd_append_11n_tlv() local
317 sband = priv->wdev->wiphy->bands[radio_type]; in mwifiex_cmd_append_11n_tlv()
[all …]
/drivers/net/wireless/brcm80211/brcmsmac/
Dchannel.c635 struct ieee80211_supported_band *sband; in brcms_reg_apply_radar_flags() local
639 sband = wiphy->bands[IEEE80211_BAND_5GHZ]; in brcms_reg_apply_radar_flags()
640 if (!sband) in brcms_reg_apply_radar_flags()
643 for (i = 0; i < sband->n_channels; i++) { in brcms_reg_apply_radar_flags()
644 ch = &sband->channels[i]; in brcms_reg_apply_radar_flags()
664 struct ieee80211_supported_band *sband; in brcms_reg_apply_beaconing_flags() local
670 sband = wiphy->bands[band]; in brcms_reg_apply_beaconing_flags()
671 if (!sband) in brcms_reg_apply_beaconing_flags()
674 for (i = 0; i < sband->n_channels; i++) { in brcms_reg_apply_beaconing_flags()
675 ch = &sband->channels[i]; in brcms_reg_apply_beaconing_flags()
[all …]
/drivers/net/wireless/iwlwifi/
Diwl-nvm-parse.c375 struct ieee80211_supported_band *sband; in iwl_init_sbands() local
386 sband = &data->bands[IEEE80211_BAND_2GHZ]; in iwl_init_sbands()
387 sband->band = IEEE80211_BAND_2GHZ; in iwl_init_sbands()
388 sband->bitrates = &iwl_cfg80211_rates[RATES_24_OFFS]; in iwl_init_sbands()
389 sband->n_bitrates = N_RATES_24; in iwl_init_sbands()
390 n_used += iwl_init_sband_channels(data, sband, n_channels, in iwl_init_sbands()
392 iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, IEEE80211_BAND_2GHZ, in iwl_init_sbands()
395 sband = &data->bands[IEEE80211_BAND_5GHZ]; in iwl_init_sbands()
396 sband->band = IEEE80211_BAND_5GHZ; in iwl_init_sbands()
397 sband->bitrates = &iwl_cfg80211_rates[RATES_52_OFFS]; in iwl_init_sbands()
[all …]
Diwl-eeprom-parse.c708 struct ieee80211_supported_band *sband, in iwl_init_sband_channels() argument
717 sband->channels = &data->channels[idx]; in iwl_init_sband_channels()
724 sband->n_channels = n; in iwl_init_sband_channels()
809 struct ieee80211_supported_band *sband; in iwl_init_sbands() local
811 sband = &data->bands[IEEE80211_BAND_2GHZ]; in iwl_init_sbands()
812 sband->band = IEEE80211_BAND_2GHZ; in iwl_init_sbands()
813 sband->bitrates = &iwl_cfg80211_rates[RATES_24_OFFS]; in iwl_init_sbands()
814 sband->n_bitrates = N_RATES_24; in iwl_init_sbands()
815 n_used += iwl_init_sband_channels(data, sband, n_channels, in iwl_init_sbands()
817 iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, IEEE80211_BAND_2GHZ, in iwl_init_sbands()
[all …]
Diwl-eeprom-parse.h131 struct ieee80211_supported_band *sband,
/drivers/net/wireless/iwlegacy/
D3945-rs.c340 struct ieee80211_supported_band *sband; in il3945_rs_rate_init() local
349 sband = hw->wiphy->bands[conf->chandef.chan->band]; in il3945_rs_rate_init()
374 for (i = sband->n_bitrates - 1; i >= 0; i--) { in il3945_rs_rate_init()
375 if (sta->supp_rates[sband->band] & (1 << i)) { in il3945_rs_rate_init()
381 il->_3945.sta_supp_rates = sta->supp_rates[sband->band]; in il3945_rs_rate_init()
383 if (sband->band == IEEE80211_BAND_5GHZ) { in il3945_rs_rate_init()
445 il3945_rs_tx_status(void *il_rate, struct ieee80211_supported_band *sband, in il3945_rs_tx_status() argument
463 first_idx = sband->bitrates[info->status.rates[0].idx].hw_value; in il3945_rs_tx_status()
626 struct ieee80211_supported_band *sband = txrc->sband; in il3945_rs_get_rate() local
656 rate_mask = sta->supp_rates[sband->band]; in il3945_rs_get_rate()
[all …]
D4965-rs.c806 il4965_rs_tx_status(void *il_r, struct ieee80211_supported_band *sband, in il4965_rs_tx_status() argument
988 if (sta->supp_rates[sband->band]) in il4965_rs_tx_status()
2204 struct ieee80211_supported_band *sband = txrc->sband; in il4965_rs_get_rate() local
2215 if (sband->band == IEEE80211_BAND_5GHZ && in il4965_rs_get_rate()
2261 (sband->band == IEEE80211_BAND_5GHZ && in il4965_rs_get_rate()
2263 rate_idx = rate_lowest_index(sband, sta); in il4965_rs_get_rate()
2265 else if (sband->band == IEEE80211_BAND_5GHZ) in il4965_rs_get_rate()
2298 struct ieee80211_supported_band *sband; in il4965_rs_rate_init() local
2302 sband = hw->wiphy->bands[conf->chandef.chan->band]; in il4965_rs_rate_init()
2312 lq_sta->supp_rates = sta->supp_rates[sband->band]; in il4965_rs_rate_init()
[all …]
/drivers/net/wireless/ath/
Dregd.c340 struct ieee80211_supported_band *sband; in ath_reg_apply_beaconing_flags() local
347 sband = wiphy->bands[band]; in ath_reg_apply_beaconing_flags()
348 for (i = 0; i < sband->n_channels; i++) { in ath_reg_apply_beaconing_flags()
349 ch = &sband->channels[i]; in ath_reg_apply_beaconing_flags()
375 struct ieee80211_supported_band *sband; in ath_reg_apply_ir_flags() local
377 sband = wiphy->bands[IEEE80211_BAND_2GHZ]; in ath_reg_apply_ir_flags()
378 if (!sband) in ath_reg_apply_ir_flags()
401 struct ieee80211_supported_band *sband; in ath_reg_apply_radar_flags() local
408 sband = wiphy->bands[IEEE80211_BAND_5GHZ]; in ath_reg_apply_radar_flags()
410 for (i = 0; i < sband->n_channels; i++) { in ath_reg_apply_radar_flags()
[all …]
/drivers/staging/vt6656/
Ddpc.c43 struct ieee80211_supported_band *sband; in vnt_rx_data() local
100 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data()
109 for (ii = 0; ii < sband->n_bitrates; ii++) { in vnt_rx_data()
110 if (sband->bitrates[ii].hw_value == r) { in vnt_rx_data()
116 if (ii == sband->n_bitrates) { in vnt_rx_data()
/drivers/net/wireless/ath/ath5k/
Dbase.c348 struct ieee80211_supported_band *sband; in ath5k_setup_bands() local
356 sband = &ah->sbands[IEEE80211_BAND_2GHZ]; in ath5k_setup_bands()
357 sband->band = IEEE80211_BAND_2GHZ; in ath5k_setup_bands()
358 sband->bitrates = &ah->rates[IEEE80211_BAND_2GHZ][0]; in ath5k_setup_bands()
362 memcpy(sband->bitrates, &ath5k_rates[0], in ath5k_setup_bands()
364 sband->n_bitrates = 12; in ath5k_setup_bands()
366 sband->channels = ah->channels; in ath5k_setup_bands()
367 sband->n_channels = ath5k_setup_channels(ah, sband->channels, in ath5k_setup_bands()
370 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; in ath5k_setup_bands()
371 count_c = sband->n_channels; in ath5k_setup_bands()
[all …]
Dqcu.c563 struct ieee80211_supported_band *sband; in ath5k_hw_set_ifs_intervals() local
615 sband = &ah->sbands[band]; in ath5k_hw_set_ifs_intervals()
617 for (i = 0; i < sband->n_bitrates; i++) { in ath5k_hw_set_ifs_intervals()
618 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in ath5k_hw_set_ifs_intervals()
620 rate = &sband->bitrates[i]; in ath5k_hw_set_ifs_intervals()
/drivers/net/wireless/iwlwifi/dvm/
Dscan.c456 struct ieee80211_supported_band *sband = priv->hw->wiphy->bands[band]; in iwl_get_single_channel_number() local
460 for (i = 0; i < sband->n_channels; i++) { in iwl_get_single_channel_number()
464 busy = sband->channels[i].hw_value == in iwl_get_single_channel_number()
473 if (!(sband->channels[i].flags & IEEE80211_CHAN_DISABLED)) in iwl_get_single_channel_number()
474 return sband->channels[i].hw_value; in iwl_get_single_channel_number()
485 const struct ieee80211_supported_band *sband; in iwl_get_channel_for_reset_scan() local
488 sband = iwl_get_hw_mode(priv, band); in iwl_get_channel_for_reset_scan()
489 if (!sband) { in iwl_get_channel_for_reset_scan()
522 const struct ieee80211_supported_band *sband; in iwl_get_channels_for_scan() local
528 sband = iwl_get_hw_mode(priv, band); in iwl_get_channels_for_scan()
[all …]
Drs.c891 static void rs_tx_status(void *priv_r, struct ieee80211_supported_band *sband, in rs_tx_status() argument
1071 if (sta && sta->supp_rates[sband->band]) in rs_tx_status()
2720 struct ieee80211_supported_band *sband = txrc->sband; in rs_get_rate() local
2733 if ((sband->band == IEEE80211_BAND_5GHZ) && in rs_get_rate()
2775 ((sband->band == IEEE80211_BAND_5GHZ) && in rs_get_rate()
2777 rate_idx = rate_lowest_index(sband, sta); in rs_get_rate()
2779 else if (sband->band == IEEE80211_BAND_5GHZ) in rs_get_rate()
2811 struct ieee80211_supported_band *sband; in iwl_rs_rate_init() local
2816 sband = hw->wiphy->bands[conf->chandef.chan->band]; in iwl_rs_rate_init()
2826 lq_sta->supp_rates = sta->supp_rates[sband->band]; in iwl_rs_rate_init()
[all …]
/drivers/net/wireless/ath/ath9k/
Dcommon.c175 struct ieee80211_supported_band *sband; in ath9k_cmn_process_rate() local
181 sband = hw->wiphy->bands[band]; in ath9k_cmn_process_rate()
196 for (i = 0; i < sband->n_bitrates; i++) { in ath9k_cmn_process_rate()
197 if (sband->bitrates[i].hw_value == rx_stats->rs_rate) { in ath9k_cmn_process_rate()
201 if (sband->bitrates[i].hw_value_short == rx_stats->rs_rate) { in ath9k_cmn_process_rate()
Dchannel.c106 struct ieee80211_supported_band *sband; in ath_chanctx_init() local
110 sband = &common->sbands[IEEE80211_BAND_2GHZ]; in ath_chanctx_init()
111 if (!sband->n_channels) in ath_chanctx_init()
112 sband = &common->sbands[IEEE80211_BAND_5GHZ]; in ath_chanctx_init()
114 chan = &sband->channels[0]; in ath_chanctx_init()
1151 struct ieee80211_supported_band *sband; in ath9k_offchannel_init() local
1155 sband = &common->sbands[IEEE80211_BAND_2GHZ]; in ath9k_offchannel_init()
1156 if (!sband->n_channels) in ath9k_offchannel_init()
1157 sband = &common->sbands[IEEE80211_BAND_5GHZ]; in ath9k_offchannel_init()
1159 chan = &sband->channels[0]; in ath9k_offchannel_init()
Dbeacon.c79 struct ieee80211_supported_band *sband; in ath9k_beacon_setup() local
83 sband = &common->sbands[sc->cur_chandef.chan->band]; in ath9k_beacon_setup()
84 rate = sband->bitrates[rateidx].hw_value; in ath9k_beacon_setup()
86 rate |= sband->bitrates[rateidx].hw_value_short; in ath9k_beacon_setup()
Dmain.c1894 struct ieee80211_supported_band *sband; in ath9k_get_survey() local
1905 sband = hw->wiphy->bands[IEEE80211_BAND_2GHZ]; in ath9k_get_survey()
1906 if (sband && idx >= sband->n_channels) { in ath9k_get_survey()
1907 idx -= sband->n_channels; in ath9k_get_survey()
1908 sband = NULL; in ath9k_get_survey()
1911 if (!sband) in ath9k_get_survey()
1912 sband = hw->wiphy->bands[IEEE80211_BAND_5GHZ]; in ath9k_get_survey()
1914 if (!sband || idx >= sband->n_channels) { in ath9k_get_survey()
1919 chan = &sband->channels[idx]; in ath9k_get_survey()
Dinit.c634 struct ieee80211_supported_band *sband; in ath9k_init_band_txpower() local
641 sband = &common->sbands[band]; in ath9k_init_band_txpower()
642 for (i = 0; i < sband->n_channels; i++) { in ath9k_init_band_txpower()
643 chan = &sband->channels[i]; in ath9k_init_band_txpower()
/drivers/net/wireless/
Dmac80211_hwsim.c2105 struct ieee80211_supported_band *sband = &data->bands[band]; in mac80211_hwsim_create_radio() local
2108 sband->channels = data->channels_2ghz; in mac80211_hwsim_create_radio()
2109 sband->n_channels = ARRAY_SIZE(hwsim_channels_2ghz); in mac80211_hwsim_create_radio()
2110 sband->bitrates = data->rates; in mac80211_hwsim_create_radio()
2111 sband->n_bitrates = ARRAY_SIZE(hwsim_rates); in mac80211_hwsim_create_radio()
2114 sband->channels = data->channels_5ghz; in mac80211_hwsim_create_radio()
2115 sband->n_channels = ARRAY_SIZE(hwsim_channels_5ghz); in mac80211_hwsim_create_radio()
2116 sband->bitrates = data->rates + 4; in mac80211_hwsim_create_radio()
2117 sband->n_bitrates = ARRAY_SIZE(hwsim_rates) - 4; in mac80211_hwsim_create_radio()
2123 sband->ht_cap.ht_supported = true; in mac80211_hwsim_create_radio()
[all …]
/drivers/net/wireless/cw1200/
Dmain.c321 struct ieee80211_supported_band *sband = hw->wiphy->bands[band]; in cw1200_init_common() local
322 if (!sband) in cw1200_init_common()
324 for (i = 0; i < sband->n_channels; i++) { in cw1200_init_common()
325 sband->channels[i].flags = 0; in cw1200_init_common()
326 sband->channels[i].max_antenna_gain = 0; in cw1200_init_common()
327 sband->channels[i].max_power = 30; in cw1200_init_common()

12