/linux/net/mac80211/ |
H A D | rate.c | 38 struct ieee80211_supported_band *sband; in rate_control_rate_init() local 58 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init() 61 if (sband->band == NL80211_BAND_S1GHZ) { in rate_control_rate_init() 68 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init() 96 struct ieee80211_supported_band *sband; in rate_control_tx_status() local 101 sband = local->hw.wiphy->bands[st->info->band]; in rate_control_tx_status() 105 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st); in rate_control_tx_status() 107 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb); in rate_control_tx_status() 115 struct ieee80211_supported_band *sband, in rate_control_rate_update() argument 135 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update() [all …]
|
H A D | mesh.c | 68 struct ieee80211_supported_band *sband; in mesh_matches_local() local 90 sband = ieee80211_get_sband(sdata); in mesh_matches_local() 91 if (!sband) in mesh_matches_local() 94 ieee80211_sta_get_rates(sdata, ie, sband->band, in mesh_matches_local() 427 struct ieee80211_supported_band *sband; in mesh_add_ht_cap_ie() local 430 sband = ieee80211_get_sband(sdata); in mesh_add_ht_cap_ie() 431 if (!sband) in mesh_add_ht_cap_ie() 435 if (sband->band == NL80211_BAND_6GHZ) in mesh_add_ht_cap_ie() 438 if (!sband->ht_cap.ht_supported || in mesh_add_ht_cap_ie() 448 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie() [all …]
|
H A D | util.c | 211 struct ieee80211_supported_band *sband; in ieee80211_rts_duration() local 213 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration() 217 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_rts_duration() 230 dur = ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration() 233 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_rts_duration() 236 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration() 254 struct ieee80211_supported_band *sband; in ieee80211_ctstoself_duration() local 256 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration() 260 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_ctstoself_duration() 272 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_ctstoself_duration() [all …]
|
H A D | eht.c | 12 struct ieee80211_supported_band *sband, in ieee80211_eht_cap_ie_to_sta_eht_cap() argument 28 !ieee80211_get_eht_iftype_cap_vif(sband, &sdata->vif)) in ieee80211_eht_cap_ie_to_sta_eht_cap() 83 if (sband->band != NL80211_BAND_2GHZ) in ieee80211_eht_cap_ie_to_sta_eht_cap()
|
H A D | airtime.c | 589 struct ieee80211_supported_band *sband; in ieee80211_calc_rx_airtime() local 602 sband = hw->wiphy->bands[status->band]; in ieee80211_calc_rx_airtime() 603 if (!sband || status->rate_idx >= sband->n_bitrates) in ieee80211_calc_rx_airtime() 606 rate = &sband->bitrates[status->rate_idx]; in ieee80211_calc_rx_airtime() 629 struct ieee80211_supported_band *sband = hw->wiphy->bands[band]; in ieee80211_fill_rate_info() local 632 if (!ri || !sband) in ieee80211_fill_rate_info() 666 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_fill_rate_info() 667 if (ri->legacy != sband->bitrates[i].bitrate) in ieee80211_fill_rate_info() 761 struct ieee80211_supported_band *sband; in ieee80211_calc_expected_tx_airtime() local 827 sband = hw->wiphy->bands[band]; in ieee80211_calc_expected_tx_airtime() [all …]
|
H A D | mlme.c | 165 struct ieee80211_supported_band *sband = in ieee80211_determine_ap_chan() local 179 if (sband->band == NL80211_BAND_S1GHZ) { in ieee80211_determine_ap_chan() 190 if (sband->band == NL80211_BAND_6GHZ) { in ieee80211_determine_ap_chan() 275 if (sband->band == NL80211_BAND_5GHZ) { in ieee80211_determine_ap_chan() 281 } else if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_determine_ap_chan() 433 struct ieee80211_supported_band *sband, in ieee80211_verify_sta_he_mcs_support() argument 437 ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif); in ieee80211_verify_sta_he_mcs_support() 549 struct ieee80211_supported_band *sband, in ieee80211_verify_sta_eht_mcs_support() argument 553 ieee80211_get_he_iftype_cap_vif(sband, &sdata->vif); in ieee80211_verify_sta_eht_mcs_support() 555 ieee80211_get_eht_iftype_cap_vif(sband, &sdata->vif); in ieee80211_verify_sta_eht_mcs_support() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/ |
H A D | regd.c | 135 struct ieee80211_supported_band *sband; in _rtl_reg_apply_beaconing_flags() local 145 sband = wiphy->bands[band]; in _rtl_reg_apply_beaconing_flags() 147 for (i = 0; i < sband->n_channels; i++) { in _rtl_reg_apply_beaconing_flags() 148 ch = &sband->channels[i]; in _rtl_reg_apply_beaconing_flags() 186 struct ieee80211_supported_band *sband; in _rtl_reg_apply_active_scan_flags() local 192 sband = wiphy->bands[NL80211_BAND_2GHZ]; in _rtl_reg_apply_active_scan_flags() 199 ch = &sband->channels[11]; /* CH 12 */ in _rtl_reg_apply_active_scan_flags() 202 ch = &sband->channels[12]; /* CH 13 */ in _rtl_reg_apply_active_scan_flags() 215 ch = &sband->channels[11]; /* CH 12 */ in _rtl_reg_apply_active_scan_flags() 223 ch = &sband->channels[12]; /* CH 13 */ in _rtl_reg_apply_active_scan_flags() [all …]
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | cfp.c | 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() [all …]
|
H A D | 11h.c | 32 struct ieee80211_supported_band *sband; in mwifiex_11h_process_infra_join() local 40 sband = priv->wdev.wiphy->bands[radio_type]; in mwifiex_11h_process_infra_join() 58 ie_header->len = cpu_to_le16(2 * sband->n_channels + 2); in mwifiex_11h_process_infra_join() 61 *(*buffer)++ = 2 * sband->n_channels; in mwifiex_11h_process_infra_join() 62 for (i = 0; i < sband->n_channels; i++) { in mwifiex_11h_process_infra_join() 64 sband->channels[i].center_freq); in mwifiex_11h_process_infra_join()
|
H A D | 11n.c | 29 struct ieee80211_supported_band *sband = in mwifiex_fill_cap_info() local 32 if (WARN_ON_ONCE(!sband)) { in mwifiex_fill_cap_info() 38 (sband->ht_cap.ampdu_factor & in mwifiex_fill_cap_info() 40 ((sband->ht_cap.ampdu_density << in mwifiex_fill_cap_info() 44 memcpy((u8 *)&ht_cap->mcs, &sband->ht_cap.mcs, in mwifiex_fill_cap_info() 45 sizeof(sband->ht_cap.mcs)); in mwifiex_fill_cap_info() 48 (sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in mwifiex_fill_cap_info() 57 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 …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | channel.c | 633 struct ieee80211_supported_band *sband; in brcms_reg_apply_radar_flags() local 637 sband = wiphy->bands[NL80211_BAND_5GHZ]; in brcms_reg_apply_radar_flags() 638 if (!sband) in brcms_reg_apply_radar_flags() 641 for (i = 0; i < sband->n_channels; i++) { in brcms_reg_apply_radar_flags() 642 ch = &sband->channels[i]; in brcms_reg_apply_radar_flags() 661 struct ieee80211_supported_band *sband; in brcms_reg_apply_beaconing_flags() local 667 sband = wiphy->bands[band]; in brcms_reg_apply_beaconing_flags() 668 if (!sband) in brcms_reg_apply_beaconing_flags() 671 for (i = 0; i < sband->n_channels; i++) { in brcms_reg_apply_beaconing_flags() 672 ch = &sband->channels[i]; in brcms_reg_apply_beaconing_flags() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
H A D | init.c | 217 struct ieee80211_supported_band *sband) in mt76x0_init_txpower() argument 224 for (i = 0; i < sband->n_channels; i++) { in mt76x0_init_txpower() 225 chan = &sband->channels[i]; in mt76x0_init_txpower() 252 struct ieee80211_supported_band *sband; in mt76x0_register_device() local 254 sband = &dev->mphy.sband_5g.sband; in mt76x0_register_device() 255 sband->vht_cap.cap &= ~IEEE80211_VHT_CAP_RXLDPC; in mt76x0_register_device() 256 mt76x0_init_txpower(dev, sband); in mt76x0_register_device() 260 mt76x0_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt76x0_register_device()
|
/linux/net/wireless/ |
H A D | mesh.c | 143 struct ieee80211_supported_band *sband; in __cfg80211_join_mesh() local 147 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh() 148 if (!sband) in __cfg80211_join_mesh() 151 for (i = 0; i < sband->n_channels; i++) { in __cfg80211_join_mesh() 152 chan = &sband->channels[i]; in __cfg80211_join_mesh() 178 struct ieee80211_supported_band *sband = in __cfg80211_join_mesh() local 191 for (i = 0; i < sband->n_bitrates; i++) { in __cfg80211_join_mesh() 192 if (sband->bitrates[i].bitrate == 10) { in __cfg80211_join_mesh() 198 setup->basic_rates = ieee80211_mandatory_rates(sband); in __cfg80211_join_mesh()
|
H A D | of.c | 52 struct ieee80211_supported_band *sband = wiphy->bands[band]; in wiphy_freq_limits_apply() local 54 if (!sband) in wiphy_freq_limits_apply() 57 for (i = 0; i < sband->n_channels; i++) { in wiphy_freq_limits_apply() 58 struct ieee80211_channel *chan = &sband->channels[i]; in wiphy_freq_limits_apply()
|
H A D | util.c | 28 ieee80211_get_response_rate(struct ieee80211_supported_band *sband, in ieee80211_get_response_rate() argument 31 struct ieee80211_rate *result = &sband->bitrates[0]; in ieee80211_get_response_rate() 34 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_get_response_rate() 37 if (sband->bitrates[i].bitrate > bitrate) in ieee80211_get_response_rate() 39 result = &sband->bitrates[i]; in ieee80211_get_response_rate() 46 u32 ieee80211_mandatory_rates(struct ieee80211_supported_band *sband) in ieee80211_mandatory_rates() argument 53 if (WARN_ON(!sband)) in ieee80211_mandatory_rates() 56 if (sband->band == NL80211_BAND_2GHZ) in ieee80211_mandatory_rates() 61 bitrates = sband->bitrates; in ieee80211_mandatory_rates() 62 for (i = 0; i < sband->n_bitrates; i++) in ieee80211_mandatory_rates() [all …]
|
H A D | ibss.c | 109 struct ieee80211_supported_band *sband; in __cfg80211_join_ibss() local 121 sband = rdev->wiphy.bands[band]; in __cfg80211_join_ibss() 122 for (j = 0; j < sband->n_bitrates; j++) { in __cfg80211_join_ibss() 123 if (sband->bitrates[j].flags & flag) in __cfg80211_join_ibss() 232 struct ieee80211_supported_band *sband; in cfg80211_ibss_wext_join() local 235 sband = rdev->wiphy.bands[band]; in cfg80211_ibss_wext_join() 236 if (!sband) in cfg80211_ibss_wext_join() 239 for (i = 0; i < sband->n_channels; i++) { in cfg80211_ibss_wext_join() 240 chan = &sband->channels[i]; in cfg80211_ibss_wext_join()
|
H A D | core.c | 738 struct ieee80211_supported_band *sband; in wiphy_register() local 870 sband = wiphy->bands[band]; in wiphy_register() 871 if (!sband) in wiphy_register() 874 sband->band = band; in wiphy_register() 875 if (WARN_ON(!sband->n_channels)) in wiphy_register() 883 !sband->n_bitrates)) in wiphy_register() 887 (sband->ht_cap.ht_supported || in wiphy_register() 888 sband->vht_cap.vht_supported))) in wiphy_register() 898 sband->ht_cap.ht_supported) { in wiphy_register() 899 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in wiphy_register() [all …]
|
H A D | debugfs.c | 71 struct ieee80211_supported_band *sband; in ht40allow_map_read() local 79 sband = wiphy->bands[band]; in ht40allow_map_read() 80 if (!sband) in ht40allow_map_read() 82 for (i = 0; i < sband->n_channels; i++) in ht40allow_map_read() 83 offset += ht_print_chan(&sband->channels[i], in ht40allow_map_read()
|
/linux/drivers/staging/rtl8723bs/os_dep/ |
H A D | wifi_regd.c | 62 struct ieee80211_supported_band *sband; in _rtw_reg_apply_flags() local 70 sband = wiphy->bands[i]; in _rtw_reg_apply_flags() 72 if (sband) { in _rtw_reg_apply_flags() 73 for (j = 0; j < sband->n_channels; j++) { in _rtw_reg_apply_flags() 74 ch = &sband->channels[j]; in _rtw_reg_apply_flags()
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945-rs.c | 325 struct ieee80211_supported_band *sband; in il3945_rs_rate_init() local 334 sband = hw->wiphy->bands[conf->chandef.chan->band]; in il3945_rs_rate_init() 356 for (i = sband->n_bitrates - 1; i >= 0; i--) { in il3945_rs_rate_init() 357 if (sta->deflink.supp_rates[sband->band] & (1 << i)) { in il3945_rs_rate_init() 363 il->_3945.sta_supp_rates = sta->deflink.supp_rates[sband->band]; in il3945_rs_rate_init() 365 if (sband->band == NL80211_BAND_5GHZ) { in il3945_rs_rate_init() 426 il3945_rs_tx_status(void *il_rate, struct ieee80211_supported_band *sband, in il3945_rs_tx_status() argument 444 first_idx = sband->bitrates[info->status.rates[0].idx].hw_value; in il3945_rs_tx_status() 607 struct ieee80211_supported_band *sband = txrc->sband; in il3945_rs_get_rate() local 634 rate_mask = sta->deflink.supp_rates[sband->band]; in il3945_rs_get_rate() [all …]
|
/linux/drivers/net/wireless/ath/ |
H A D | regd.c | 344 struct ieee80211_supported_band *sband; in ath_reg_apply_beaconing_flags() local 351 sband = wiphy->bands[band]; in ath_reg_apply_beaconing_flags() 352 for (i = 0; i < sband->n_channels; i++) { in ath_reg_apply_beaconing_flags() 353 ch = &sband->channels[i]; in ath_reg_apply_beaconing_flags() 380 struct ieee80211_supported_band *sband; in ath_reg_apply_ir_flags() local 382 sband = wiphy->bands[NL80211_BAND_2GHZ]; in ath_reg_apply_ir_flags() 383 if (!sband) in ath_reg_apply_ir_flags() 407 struct ieee80211_supported_band *sband; in ath_reg_apply_radar_flags() local 414 sband = wiphy->bands[NL80211_BAND_5GHZ]; in ath_reg_apply_radar_flags() 416 for (i = 0; i < sband->n_channels; i++) { in ath_reg_apply_radar_flags() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | testmode.c | 259 struct ieee80211_supported_band *sband; in mt7915_tm_set_tx_len() local 275 sband = &mphy->sband_5g.sband; in mt7915_tm_set_tx_len() 277 sband = &mphy->sband_6g.sband; in mt7915_tm_set_tx_len() 279 sband = &mphy->sband_2g.sband; in mt7915_tm_set_tx_len() 281 rate.legacy = sband->bitrates[rate.mcs].bitrate; in mt7915_tm_set_tx_len() 571 struct ieee80211_supported_band *sband; in mt7915_tm_set_tx_cont() local 575 sband = &phy->mt76->sband_5g.sband; in mt7915_tm_set_tx_cont() 577 sband = &phy->mt76->sband_6g.sband; in mt7915_tm_set_tx_cont() 579 sband = &phy->mt76->sband_2g.sband; in mt7915_tm_set_tx_cont() 583 rate_idx = sband->bitrates[idx].hw_value & 0xff; in mt7915_tm_set_tx_cont()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | init.c | 273 struct ieee80211_supported_band *sband) in mt7615_init_txpower() argument 278 enum nl80211_band band = sband->band; in mt7615_init_txpower() 293 for (i = 0; i < sband->n_channels; i++) { in mt7615_init_txpower() 294 struct ieee80211_channel *chan = &sband->channels[i]; in mt7615_init_txpower() 343 mt7615_init_txpower(dev, &mphy->sband_2g.sband); in mt7615_regd_notifier() 344 mt7615_init_txpower(dev, &mphy->sband_5g.sband); in mt7615_regd_notifier() 414 phy->mt76->sband_2g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; in mt7615_init_wiphy() 415 phy->mt76->sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; in mt7615_init_wiphy() 416 phy->mt76->sband_5g.sband.vht_cap.cap |= in mt7615_init_wiphy() 423 dev->mphy.sband_5g.sband.vht_cap.cap &= in mt7615_cap_dbdc_enable() [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
H A D | base.c | 361 struct ieee80211_supported_band *sband; in ath5k_setup_bands() local 369 sband = &ah->sbands[NL80211_BAND_2GHZ]; in ath5k_setup_bands() 370 sband->band = NL80211_BAND_2GHZ; in ath5k_setup_bands() 371 sband->bitrates = &ah->rates[NL80211_BAND_2GHZ][0]; in ath5k_setup_bands() 375 memcpy(sband->bitrates, &ath5k_rates[0], in ath5k_setup_bands() 377 sband->n_bitrates = 12; in ath5k_setup_bands() 379 sband->channels = ah->channels; in ath5k_setup_bands() 380 sband->n_channels = ath5k_setup_channels(ah, sband->channels, in ath5k_setup_bands() 383 hw->wiphy->bands[NL80211_BAND_2GHZ] = sband; in ath5k_setup_bands() 384 count_c = sband->n_channels; in ath5k_setup_bands() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-nvm-utils.c | 14 struct ieee80211_supported_band *sband, in iwl_init_sband_channels() argument 23 sband->channels = &data->channels[idx]; in iwl_init_sband_channels() 30 sband->n_channels = n; in iwl_init_sband_channels()
|