Home
last modified time | relevance | path

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

/linux-4.4.14/net/mac80211/
Drate.c38 struct ieee80211_supported_band *sband; in rate_control_rate_init() local
54 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init()
57 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
65 struct ieee80211_supported_band *sband, in rate_control_rate_update() argument
83 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
259 struct ieee80211_supported_band *sband) in rc_send_low_basicrate() argument
270 for (i = *idx + 1; i <= sband->n_bitrates; i++) { in rc_send_low_basicrate()
281 struct ieee80211_supported_band *sband, in __rate_control_send_low() argument
290 if ((sband->band == IEEE80211_BAND_2GHZ) && in __rate_control_send_low()
295 for (i = 0; i < sband->n_bitrates; i++) { in __rate_control_send_low()
[all …]
Drc80211_minstrel.c264 minstrel_tx_status(void *priv, struct ieee80211_supported_band *sband, in minstrel_tx_status() argument
478 minstrel_rate_init(void *priv, struct ieee80211_supported_band *sband, in minstrel_rate_init() argument
490 mi->lowest_rix = rate_lowest_index(sband, sta); in minstrel_rate_init()
491 ctl_rate = &sband->bitrates[mi->lowest_rix]; in minstrel_rate_init()
492 mi->sp_ack_dur = ieee80211_frame_duration(sband->band, 10, in minstrel_rate_init()
501 for (i = 0; i < sband->n_bitrates; i++) { in minstrel_rate_init()
509 if (!rate_supported(sta, sband->band, i)) in minstrel_rate_init()
511 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in minstrel_rate_init()
520 mr->bitrate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in minstrel_rate_init()
522 calc_rate_durations(sband->band, mr, &sband->bitrates[i], in minstrel_rate_init()
[all …]
Drate.h33 struct ieee80211_supported_band *sband, in rate_control_tx_status() argument
47 ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); in rate_control_tx_status()
49 ref->ops->tx_status_noskb(ref->priv, sband, ista, priv_sta, info); in rate_control_tx_status()
55 struct ieee80211_supported_band *sband, in rate_control_tx_status_noskb() argument
70 ref->ops->tx_status_noskb(ref->priv, sband, ista, priv_sta, info); in rate_control_tx_status_noskb()
76 struct ieee80211_supported_band *sband,
Dibss.c52 struct ieee80211_supported_band *sband; in ieee80211_ibss_build_presp() local
93 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp()
100 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_ibss_build_presp()
101 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in ieee80211_ibss_build_presp()
103 if (sband->bitrates[i].bitrate > 110 && in ieee80211_ibss_build_presp()
113 for (ri = 0; ri < sband->n_bitrates; ri++) { in ieee80211_ibss_build_presp()
114 int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, in ieee80211_ibss_build_presp()
129 if (sband->band == IEEE80211_BAND_2GHZ) { in ieee80211_ibss_build_presp()
157 for (; ri < sband->n_bitrates; ri++) { in ieee80211_ibss_build_presp()
158 int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, in ieee80211_ibss_build_presp()
[all …]
Dutil.c167 struct ieee80211_supported_band *sband; in ieee80211_rts_duration() local
169 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration()
173 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_rts_duration()
187 dur = ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
190 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_rts_duration()
193 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in ieee80211_rts_duration()
211 struct ieee80211_supported_band *sband; in ieee80211_ctstoself_duration() local
213 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration()
217 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in ieee80211_ctstoself_duration()
230 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, in ieee80211_ctstoself_duration()
[all …]
Dvht.c116 struct ieee80211_supported_band *sband, in ieee80211_vht_cap_ie_to_sta_vht_cap() argument
130 if (!vht_cap_ie || !sband->vht_cap.vht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
135 for (i = 0; i < sband->n_channels; i++) { in ieee80211_vht_cap_ie_to_sta_vht_cap()
136 if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED | in ieee80211_vht_cap_ie_to_sta_vht_cap()
156 own_cap = sband->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap()
384 struct ieee80211_supported_band *sband; in __ieee80211_vht_handle_opmode() local
389 sband = local->hw.wiphy->bands[band]; in __ieee80211_vht_handle_opmode()
433 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in ieee80211_vht_handle_opmode() local
438 rate_control_rate_update(local, sband, sta, changed); in ieee80211_vht_handle_opmode()
Drc80211_minstrel_ht.c698 minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband, in minstrel_ht_tx_status() argument
711 return mac80211_minstrel.tx_status_noskb(priv, sband, sta, in minstrel_ht_tx_status()
1071 struct ieee80211_supported_band *sband, in minstrel_ht_update_cck() argument
1076 if (sband->band != IEEE80211_BAND_2GHZ) in minstrel_ht_update_cck()
1085 if (!rate_supported(sta, sband->band, mp->cck_rates[i])) in minstrel_ht_update_cck()
1089 if (sband->bitrates[i].flags & IEEE80211_RATE_SHORT_PREAMBLE) in minstrel_ht_update_cck()
1097 minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband, in minstrel_ht_update_caps() argument
1132 ack_dur = ieee80211_frame_duration(sband->band, 10, 60, 1, 1, 0); in minstrel_ht_update_caps()
1133 mi->overhead = ieee80211_frame_duration(sband->band, 0, 60, 1, 1, 0); in minstrel_ht_update_caps()
1165 minstrel_ht_update_cck(mp, mi, sband, sta); in minstrel_ht_update_caps()
[all …]
Dstatus.c274 struct ieee80211_supported_band *sband, in ieee80211_add_tx_radiotap_header() argument
306 rate = sband->bitrates[info->status.rates[0].idx].bitrate; in ieee80211_add_tx_radiotap_header()
623 struct ieee80211_supported_band *sband; in ieee80211_tx_status_noskb() local
630 sband = hw->wiphy->bands[info->band]; in ieee80211_tx_status_noskb()
657 rate_control_tx_status_noskb(local, sband, sta, info); in ieee80211_tx_status_noskb()
675 struct ieee80211_supported_band *sband, in ieee80211_tx_monitor() argument
691 ieee80211_add_tx_radiotap_header(local, sband, skb, retry_count, in ieee80211_tx_monitor()
737 struct ieee80211_supported_band *sband; in ieee80211_tx_status() local
753 sband = local->hw.wiphy->bands[info->band]; in ieee80211_tx_status()
848 rate_control_tx_status(local, sband, sta, skb); in ieee80211_tx_status()
[all …]
Dmlme.c144 struct ieee80211_supported_band *sband, in ieee80211_determine_chantype() argument
156 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_determine_chantype()
217 if (!vht_oper || !sband->vht_cap.vht_supported) { in ieee80211_determine_chantype()
344 struct ieee80211_supported_band *sband; in ieee80211_config_bw() local
374 sband = local->hw.wiphy->bands[chan->band]; in ieee80211_config_bw()
377 flags = ieee80211_determine_chantype(sdata, sband, chan, in ieee80211_config_bw()
442 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
456 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
467 struct ieee80211_supported_band *sband, in ieee80211_add_ht_ie() argument
476 BUILD_BUG_ON(sizeof(ht_cap) != sizeof(sband->ht_cap)); in ieee80211_add_ht_ie()
[all …]
Dmesh.c417 struct ieee80211_supported_band *sband; in mesh_add_ht_cap_ie() local
420 sband = local->hw.wiphy->bands[band]; in mesh_add_ht_cap_ie()
421 if (!sband->ht_cap.ht_supported || in mesh_add_ht_cap_ie()
431 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie()
442 struct ieee80211_supported_band *sband; in mesh_add_ht_oper_ie() local
455 sband = local->hw.wiphy->bands[channel->band]; in mesh_add_ht_oper_ie()
456 ht_cap = &sband->ht_cap; in mesh_add_ht_oper_ie()
480 struct ieee80211_supported_band *sband; in mesh_add_vht_cap_ie() local
483 sband = local->hw.wiphy->bands[band]; in mesh_add_vht_cap_ie()
484 if (!sband->vht_cap.vht_supported || in mesh_add_vht_cap_ie()
[all …]
Dmain.c869 struct ieee80211_supported_band *sband; in ieee80211_register_hw() local
871 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
872 if (!sband) in ieee80211_register_hw()
877 &sband->channels[0], in ieee80211_register_hw()
887 channels += sband->n_channels; in ieee80211_register_hw()
889 if (max_bitrates < sband->n_bitrates) in ieee80211_register_hw()
890 max_bitrates = sband->n_bitrates; in ieee80211_register_hw()
891 supp_ht = supp_ht || sband->ht_cap.ht_supported; in ieee80211_register_hw()
892 supp_vht = supp_vht || sband->vht_cap.vht_supported; in ieee80211_register_hw()
894 if (sband->ht_cap.ht_supported) in ieee80211_register_hw()
[all …]
Docb.c48 struct ieee80211_supported_band *sband; in ieee80211_ocb_rx_no_sta() local
81 sband = local->hw.wiphy->bands[band]; in ieee80211_ocb_rx_no_sta()
83 ieee80211_mandatory_rates(sband, scan_width); in ieee80211_ocb_rx_no_sta()
Dmesh_plink.c97 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in mesh_set_short_slot_time() local
110 for (i = 0; i < sband->n_bitrates; i++) in mesh_set_short_slot_time()
111 if (sband->bitrates[i].flags & IEEE80211_RATE_ERP_G) in mesh_set_short_slot_time()
387 struct ieee80211_supported_band *sband; in mesh_sta_info_init() local
391 sband = local->hw.wiphy->bands[band]; in mesh_sta_info_init()
407 if (ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband, in mesh_sta_info_init()
411 ieee80211_vht_cap_ie_to_sta_vht_cap(sdata, sband, in mesh_sta_info_init()
429 rate_control_rate_update(local, sband, sta, changed); in mesh_sta_info_init()
Dtx.c57 struct ieee80211_supported_band *sband; in ieee80211_duration() local
79 sband = local->hw.wiphy->bands[info->band]; in ieee80211_duration()
80 txrate = &sband->bitrates[tx->rate.idx]; in ieee80211_duration()
139 mrate = sband->bitrates[0].bitrate; in ieee80211_duration()
140 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_duration()
141 struct ieee80211_rate *r = &sband->bitrates[i]; in ieee80211_duration()
152 switch (sband->band) { in ieee80211_duration()
188 dur = ieee80211_frame_duration(sband->band, 10, rate, erp, in ieee80211_duration()
197 dur += ieee80211_frame_duration(sband->band, next_frag_len, in ieee80211_duration()
658 struct ieee80211_supported_band *sband; in ieee80211_tx_h_rate_ctrl() local
[all …]
Dht.c131 struct ieee80211_supported_band *sband, in ieee80211_ht_cap_ie_to_sta_ht_cap() argument
144 if (!ht_cap_ie || !sband->ht_cap.ht_supported) in ieee80211_ht_cap_ie_to_sta_ht_cap()
149 own_cap = sband->ht_cap; in ieee80211_ht_cap_ie_to_sta_ht_cap()
Drx.c2656 struct ieee80211_supported_band *sband; in ieee80211_rx_h_action() local
2679 sband = rx->local->hw.wiphy->bands[status->band]; in ieee80211_rx_h_action()
2681 rate_control_rate_update(local, sband, rx->sta, in ieee80211_rx_h_action()
2686 struct ieee80211_supported_band *sband; in ieee80211_rx_h_action() local
2708 sband = rx->local->hw.wiphy->bands[status->band]; in ieee80211_rx_h_action()
2710 rate_control_rate_update(local, sband, rx->sta, in ieee80211_rx_h_action()
3142 struct ieee80211_supported_band *sband; in ieee80211_rx_handlers_result() local
3147 sband = rx->local->hw.wiphy->bands[status->band]; in ieee80211_rx_handlers_result()
3150 rate = &sband->bitrates[status->rate_idx]; in ieee80211_rx_handlers_result()
3574 struct ieee80211_supported_band *sband; in ieee80211_rx_napi() local
[all …]
Dtdls.c50 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in ieee80211_tdls_add_ext_capab() local
51 bool vht = sband && sband->vht_cap.vht_supported; in ieee80211_tdls_add_ext_capab()
360 struct ieee80211_supported_band *sband; in ieee80211_tdls_add_setup_start_ies() local
439 sband = local->hw.wiphy->bands[band]; in ieee80211_tdls_add_setup_start_ies()
440 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies()
493 memcpy(&vht_cap, &sband->vht_cap, sizeof(vht_cap)); in ieee80211_tdls_add_setup_start_ies()
Diface.c1793 struct ieee80211_supported_band *sband; in ieee80211_if_add() local
1794 sband = local->hw.wiphy->bands[i]; in ieee80211_if_add()
1796 sband ? (1 << sband->n_bitrates) - 1 : 0; in ieee80211_if_add()
1797 if (sband) { in ieee80211_if_add()
1802 sband->ht_cap.mcs.rx_mask, in ieee80211_if_add()
1805 cap = sband->vht_cap.vht_mcs.rx_mcs_map; in ieee80211_if_add()
Dcfg.c450 struct ieee80211_supported_band *sband; in sta_set_rate_info_tx() local
454 sband = sta->local->hw.wiphy->bands[ in sta_set_rate_info_tx()
456 brate = sband->bitrates[rate->idx].bitrate; in sta_set_rate_info_tx()
1046 struct ieee80211_supported_band *sband; in sta_apply_parameters() local
1051 sband = local->hw.wiphy->bands[band]; in sta_apply_parameters()
1154 sband, params->supported_rates, in sta_apply_parameters()
1160 ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband, in sta_apply_parameters()
1164 ieee80211_vht_cap_ie_to_sta_vht_cap(sdata, sband, in sta_apply_parameters()
2478 struct ieee80211_supported_band *sband = wiphy->bands[i]; in ieee80211_set_bitrate_mask() local
2490 if (!sband) in ieee80211_set_bitrate_mask()
Dieee80211_i.h1641 struct ieee80211_supported_band *sband,
1653 struct ieee80211_supported_band *sband,
1704 struct ieee80211_supported_band *sband,
1971 const struct ieee80211_supported_band *sband,
Dsta_info.c384 struct ieee80211_supported_band *sband = in sta_info_alloc() local
386 u8 smps = (sband->ht_cap.cap & IEEE80211_HT_CAP_SM_PS) >> in sta_info_alloc()
1832 struct ieee80211_supported_band *sband; in sta_set_rate_info_rx() local
1836 sband = sta->local->hw.wiphy->bands[ in sta_set_rate_info_rx()
1838 brate = sband->bitrates[sta->rx_stats.last_rate_idx].bitrate; in sta_set_rate_info_rx()
Dscan.c157 struct ieee80211_supported_band *sband = in ieee80211_bss_info_update() local
162 &sband->bitrates[rx_status->rate_idx]; in ieee80211_bss_info_update()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
Dregd.c158 struct ieee80211_supported_band *sband; in _rtl_reg_apply_beaconing_flags() local
168 sband = wiphy->bands[band]; in _rtl_reg_apply_beaconing_flags()
170 for (i = 0; i < sband->n_channels; i++) { in _rtl_reg_apply_beaconing_flags()
171 ch = &sband->channels[i]; in _rtl_reg_apply_beaconing_flags()
209 struct ieee80211_supported_band *sband; in _rtl_reg_apply_active_scan_flags() local
215 sband = wiphy->bands[IEEE80211_BAND_2GHZ]; in _rtl_reg_apply_active_scan_flags()
222 ch = &sband->channels[11]; /* CH 12 */ in _rtl_reg_apply_active_scan_flags()
225 ch = &sband->channels[12]; /* CH 13 */ in _rtl_reg_apply_active_scan_flags()
238 ch = &sband->channels[11]; /* CH 12 */ in _rtl_reg_apply_active_scan_flags()
246 ch = &sband->channels[12]; /* CH 13 */ in _rtl_reg_apply_active_scan_flags()
[all …]
Drc.c192 struct ieee80211_supported_band *sband, in rtl_tx_status() argument
232 struct ieee80211_supported_band *sband, in rtl_rate_init() argument
239 struct ieee80211_supported_band *sband, in rtl_rate_update() argument
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 …]
/linux-4.4.14/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()
336 for (i = 0; i < sband->n_channels; i++) { in mwifiex_get_cfp()
337 ch = &sband->channels[i]; in mwifiex_get_cfp()
352 if (i == sband->n_channels) { in mwifiex_get_cfp()
398 struct ieee80211_supported_band *sband; in mwifiex_get_rates_from_cfg80211() local
402 sband = wiphy->bands[IEEE80211_BAND_5GHZ]; in mwifiex_get_rates_from_cfg80211()
403 if (WARN_ON_ONCE(!sband)) in mwifiex_get_rates_from_cfg80211()
[all …]
D11h.c44 struct ieee80211_supported_band *sband; in mwifiex_11h_process_infra_join() local
52 sband = priv->wdev.wiphy->bands[radio_type]; in mwifiex_11h_process_infra_join()
70 ie_header->len = cpu_to_le16(2 * sband->n_channels + 2); in mwifiex_11h_process_infra_join()
73 *(*buffer)++ = 2 * sband->n_channels; in mwifiex_11h_process_infra_join()
74 for (i = 0; i < sband->n_channels; i++) { in mwifiex_11h_process_infra_join()
76 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()
323 struct ieee80211_supported_band *sband; in mwifiex_cmd_append_11n_tlv() local
331 sband = priv->wdev.wiphy->bands[radio_type]; in mwifiex_cmd_append_11n_tlv()
[all …]
Dscan.c498 struct ieee80211_supported_band *sband; in mwifiex_scan_create_channel_list() local
508 sband = priv->wdev.wiphy->bands[band]; in mwifiex_scan_create_channel_list()
510 for (i = 0; (i < sband->n_channels) ; i++) { in mwifiex_scan_create_channel_list()
511 ch = &sband->channels[i]; in mwifiex_scan_create_channel_list()
Dcfg80211.c479 struct ieee80211_supported_band *sband; in mwifiex_send_domain_info_cmd_fw() local
497 sband = wiphy->bands[band]; in mwifiex_send_domain_info_cmd_fw()
499 for (i = 0; i < sband->n_channels ; i++) { in mwifiex_send_domain_info_cmd_fw()
500 ch = &sband->channels[i]; in mwifiex_send_domain_info_cmd_fw()
/linux-4.4.14/net/wireless/
Dutil.c21 ieee80211_get_response_rate(struct ieee80211_supported_band *sband, in ieee80211_get_response_rate() argument
24 struct ieee80211_rate *result = &sband->bitrates[0]; in ieee80211_get_response_rate()
27 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_get_response_rate()
30 if (sband->bitrates[i].bitrate > bitrate) in ieee80211_get_response_rate()
32 result = &sband->bitrates[i]; in ieee80211_get_response_rate()
39 u32 ieee80211_mandatory_rates(struct ieee80211_supported_band *sband, in ieee80211_mandatory_rates() argument
47 if (WARN_ON(!sband)) in ieee80211_mandatory_rates()
50 if (sband->band == IEEE80211_BAND_2GHZ) { in ieee80211_mandatory_rates()
60 bitrates = sband->bitrates; in ieee80211_mandatory_rates()
61 for (i = 0; i < sband->n_bitrates; i++) in ieee80211_mandatory_rates()
[all …]
Ddebugfs.c73 struct ieee80211_supported_band *sband; in ht40allow_map_read() local
82 sband = wiphy->bands[band]; in ht40allow_map_read()
83 if (!sband) in ht40allow_map_read()
85 for (i = 0; i < sband->n_channels; i++) in ht40allow_map_read()
86 offset += ht_print_chan(&sband->channels[i], in ht40allow_map_read()
Dmesh.c134 struct ieee80211_supported_band *sband; in __cfg80211_join_mesh() local
138 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh()
139 if (!sband) in __cfg80211_join_mesh()
142 for (i = 0; i < sband->n_channels; i++) { in __cfg80211_join_mesh()
143 chan = &sband->channels[i]; in __cfg80211_join_mesh()
170 struct ieee80211_supported_band *sband = in __cfg80211_join_mesh() local
173 setup->basic_rates = ieee80211_mandatory_rates(sband, in __cfg80211_join_mesh()
Dcore.c551 struct ieee80211_supported_band *sband; in wiphy_register() local
634 sband = wiphy->bands[band]; in wiphy_register()
635 if (!sband) in wiphy_register()
638 sband->band = band; in wiphy_register()
639 if (WARN_ON(!sband->n_channels)) in wiphy_register()
646 !sband->n_bitrates)) in wiphy_register()
656 sband->ht_cap.ht_supported) { in wiphy_register()
657 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in wiphy_register()
658 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SGI_40; in wiphy_register()
666 if (WARN_ON(sband->n_bitrates > 32)) in wiphy_register()
[all …]
Dwext-compat.c29 struct ieee80211_supported_band *sband; in cfg80211_wext_giwname() local
35 sband = wdev->wiphy->bands[IEEE80211_BAND_5GHZ]; in cfg80211_wext_giwname()
36 if (sband) { in cfg80211_wext_giwname()
38 is_ht |= sband->ht_cap.ht_supported; in cfg80211_wext_giwname()
41 sband = wdev->wiphy->bands[IEEE80211_BAND_2GHZ]; in cfg80211_wext_giwname()
42 if (sband) { in cfg80211_wext_giwname()
45 for (i = 0; i < sband->n_bitrates; i++) { in cfg80211_wext_giwname()
46 if (sband->bitrates[i].bitrate == 10) in cfg80211_wext_giwname()
48 if (sband->bitrates[i].bitrate == 60) in cfg80211_wext_giwname()
51 is_ht |= sband->ht_cap.ht_supported; in cfg80211_wext_giwname()
[all …]
Dibss.c104 struct ieee80211_supported_band *sband = in __cfg80211_join_ibss() local
111 for (j = 0; j < sband->n_bitrates; j++) { in __cfg80211_join_ibss()
112 if (sband->bitrates[j].flags & flag) in __cfg80211_join_ibss()
252 struct ieee80211_supported_band *sband; in cfg80211_ibss_wext_join() local
255 sband = rdev->wiphy.bands[band]; in cfg80211_ibss_wext_join()
256 if (!sband) in cfg80211_ibss_wext_join()
259 for (i = 0; i < sband->n_channels; i++) { in cfg80211_ibss_wext_join()
260 chan = &sband->channels[i]; in cfg80211_ibss_wext_join()
Dreg.c1310 struct ieee80211_supported_band *sband) in handle_band() argument
1314 if (!sband) in handle_band()
1317 for (i = 0; i < sband->n_channels; i++) in handle_band()
1318 handle_channel(wiphy, initiator, &sband->channels[i]); in handle_band()
1439 struct ieee80211_supported_band *sband; in handle_reg_beacon() local
1444 sband = wiphy->bands[reg_beacon->chan.band]; in handle_reg_beacon()
1445 chan = &sband->channels[chan_idx]; in handle_reg_beacon()
1481 struct ieee80211_supported_band *sband; in wiphy_update_new_beacon() local
1486 sband = wiphy->bands[reg_beacon->chan.band]; in wiphy_update_new_beacon()
1488 for (i = 0; i < sband->n_channels; i++) in wiphy_update_new_beacon()
[all …]
Dmlme.c717 struct ieee80211_supported_band *sband; in cfg80211_dfs_channels_update_work() local
731 sband = wiphy->bands[bandid]; in cfg80211_dfs_channels_update_work()
732 if (!sband) in cfg80211_dfs_channels_update_work()
735 for (i = 0; i < sband->n_channels; i++) { in cfg80211_dfs_channels_update_work()
736 c = &sband->channels[i]; in cfg80211_dfs_channels_update_work()
Dnl80211.c1137 struct ieee80211_supported_band *sband) in nl80211_send_band_rateinfo() argument
1144 if (sband->ht_cap.ht_supported && in nl80211_send_band_rateinfo()
1146 sizeof(sband->ht_cap.mcs), in nl80211_send_band_rateinfo()
1147 &sband->ht_cap.mcs) || in nl80211_send_band_rateinfo()
1149 sband->ht_cap.cap) || in nl80211_send_band_rateinfo()
1151 sband->ht_cap.ampdu_factor) || in nl80211_send_band_rateinfo()
1153 sband->ht_cap.ampdu_density))) in nl80211_send_band_rateinfo()
1157 if (sband->vht_cap.vht_supported && in nl80211_send_band_rateinfo()
1159 sizeof(sband->vht_cap.vht_mcs), in nl80211_send_band_rateinfo()
1160 &sband->vht_cap.vht_mcs) || in nl80211_send_band_rateinfo()
[all …]
Dsme.c85 struct ieee80211_supported_band *sband = in cfg80211_conn_scan() local
88 if (!sband) { in cfg80211_conn_scan()
93 request->rates[band] = (1 << sband->n_bitrates) - 1; in cfg80211_conn_scan()
Dcore.h468 int ieee80211_get_ratemask(struct ieee80211_supported_band *sband,
/linux-4.4.14/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 …]
/linux-4.4.14/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 …]
Dcommon.c3435 struct ieee80211_supported_band *sband; in il_init_geos() local
3464 sband = &il->bands[IEEE80211_BAND_5GHZ]; in il_init_geos()
3465 sband->channels = &channels[ARRAY_SIZE(il_eeprom_band_1)]; in il_init_geos()
3467 sband->bitrates = &rates[IL_FIRST_OFDM_RATE]; in il_init_geos()
3468 sband->n_bitrates = RATE_COUNT_LEGACY - IL_FIRST_OFDM_RATE; in il_init_geos()
3471 il_init_ht_hw_capab(il, &sband->ht_cap, IEEE80211_BAND_5GHZ); in il_init_geos()
3473 sband = &il->bands[IEEE80211_BAND_2GHZ]; in il_init_geos()
3474 sband->channels = channels; in il_init_geos()
3476 sband->bitrates = rates; in il_init_geos()
3477 sband->n_bitrates = RATE_COUNT_LEGACY; in il_init_geos()
[all …]
D3945-mac.c1556 const struct ieee80211_supported_band *sband; in il3945_get_channels_for_scan() local
1562 sband = il_get_hw_mode(il, band); in il3945_get_channels_for_scan()
1563 if (!sband) in il3945_get_channels_for_scan()
D4965-mac.c773 const struct ieee80211_supported_band *sband; in il4965_get_channels_for_scan() local
780 sband = il_get_hw_mode(il, band); in il4965_get_channels_for_scan()
781 if (!sband) in il4965_get_channels_for_scan()
/linux-4.4.14/drivers/staging/vt6655/
Ddpc.c42 struct ieee80211_supported_band *sband; in vnt_rx_data() local
68 sband = hw->wiphy->bands[hw->conf.chandef.chan->band]; in vnt_rx_data()
77 for (ii = 0; ii < sband->n_bitrates; ii++) { in vnt_rx_data()
78 if (sband->bitrates[ii].hw_value == r) { in vnt_rx_data()
84 if (ii == sband->n_bitrates) { in vnt_rx_data()
/linux-4.4.14/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()
/linux-4.4.14/drivers/net/wireless/iwlwifi/
Diwl-eeprom-parse.c710 struct ieee80211_supported_band *sband, in iwl_init_sband_channels() argument
719 sband->channels = &data->channels[idx]; in iwl_init_sband_channels()
726 sband->n_channels = n; in iwl_init_sband_channels()
814 struct ieee80211_supported_band *sband; in iwl_init_sbands() local
816 sband = &data->bands[IEEE80211_BAND_2GHZ]; in iwl_init_sbands()
817 sband->band = IEEE80211_BAND_2GHZ; in iwl_init_sbands()
818 sband->bitrates = &iwl_cfg80211_rates[RATES_24_OFFS]; in iwl_init_sbands()
819 sband->n_bitrates = N_RATES_24; in iwl_init_sbands()
820 n_used += iwl_init_sband_channels(data, sband, n_channels, in iwl_init_sbands()
822 iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, IEEE80211_BAND_2GHZ, in iwl_init_sbands()
[all …]
Diwl-nvm-parse.c412 struct ieee80211_supported_band *sband; in iwl_init_sbands() local
424 sband = &data->bands[IEEE80211_BAND_2GHZ]; in iwl_init_sbands()
425 sband->band = IEEE80211_BAND_2GHZ; in iwl_init_sbands()
426 sband->bitrates = &iwl_cfg80211_rates[RATES_24_OFFS]; in iwl_init_sbands()
427 sband->n_bitrates = N_RATES_24; in iwl_init_sbands()
428 n_used += iwl_init_sband_channels(data, sband, n_channels, in iwl_init_sbands()
430 iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, IEEE80211_BAND_2GHZ, in iwl_init_sbands()
433 sband = &data->bands[IEEE80211_BAND_5GHZ]; in iwl_init_sbands()
434 sband->band = IEEE80211_BAND_5GHZ; in iwl_init_sbands()
435 sband->bitrates = &iwl_cfg80211_rates[RATES_52_OFFS]; in iwl_init_sbands()
[all …]
Diwl-eeprom-parse.h135 struct ieee80211_supported_band *sband,
/linux-4.4.14/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 …]
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Dbase.c362 struct ieee80211_supported_band *sband; in ath5k_setup_bands() local
370 sband = &ah->sbands[IEEE80211_BAND_2GHZ]; in ath5k_setup_bands()
371 sband->band = IEEE80211_BAND_2GHZ; in ath5k_setup_bands()
372 sband->bitrates = &ah->rates[IEEE80211_BAND_2GHZ][0]; in ath5k_setup_bands()
376 memcpy(sband->bitrates, &ath5k_rates[0], in ath5k_setup_bands()
378 sband->n_bitrates = 12; in ath5k_setup_bands()
380 sband->channels = ah->channels; in ath5k_setup_bands()
381 sband->n_channels = ath5k_setup_channels(ah, sband->channels, in ath5k_setup_bands()
384 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; in ath5k_setup_bands()
385 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()
/linux-4.4.14/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()
1314 struct ieee80211_supported_band *sband; in ath9k_offchannel_init() local
1318 sband = &common->sbands[IEEE80211_BAND_2GHZ]; in ath9k_offchannel_init()
1319 if (!sband->n_channels) in ath9k_offchannel_init()
1320 sband = &common->sbands[IEEE80211_BAND_5GHZ]; in ath9k_offchannel_init()
1322 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.c1921 struct ieee80211_supported_band *sband; in ath9k_get_survey() local
1932 sband = hw->wiphy->bands[IEEE80211_BAND_2GHZ]; in ath9k_get_survey()
1933 if (sband && idx >= sband->n_channels) { in ath9k_get_survey()
1934 idx -= sband->n_channels; in ath9k_get_survey()
1935 sband = NULL; in ath9k_get_survey()
1938 if (!sband) in ath9k_get_survey()
1939 sband = hw->wiphy->bands[IEEE80211_BAND_5GHZ]; in ath9k_get_survey()
1941 if (!sband || idx >= sband->n_channels) { in ath9k_get_survey()
1946 chan = &sband->channels[idx]; in ath9k_get_survey()
Dinit.c693 struct ieee80211_supported_band *sband; in ath9k_init_band_txpower() local
700 sband = &common->sbands[band]; in ath9k_init_band_txpower()
701 for (i = 0; i < sband->n_channels; i++) { in ath9k_init_band_txpower()
702 chan = &sband->channels[i]; in ath9k_init_band_txpower()
Dhtc_drv_main.c601 struct ieee80211_supported_band *sband; in ath9k_htc_setup_rate() local
605 sband = priv->hw->wiphy->bands[priv->hw->conf.chandef.chan->band]; in ath9k_htc_setup_rate()
607 for (i = 0, j = 0; i < sband->n_bitrates; i++) { in ath9k_htc_setup_rate()
608 if (sta->supp_rates[sband->band] & BIT(i)) { in ath9k_htc_setup_rate()
610 = (sband->bitrates[i].bitrate * 2) / 10; in ath9k_htc_setup_rate()
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Dscan.c447 struct ieee80211_supported_band *sband = priv->hw->wiphy->bands[band]; in iwl_get_single_channel_number() local
451 for (i = 0; i < sband->n_channels; i++) { in iwl_get_single_channel_number()
455 busy = sband->channels[i].hw_value == in iwl_get_single_channel_number()
464 if (!(sband->channels[i].flags & IEEE80211_CHAN_DISABLED)) in iwl_get_single_channel_number()
465 return sband->channels[i].hw_value; in iwl_get_single_channel_number()
476 const struct ieee80211_supported_band *sband; in iwl_get_channel_for_reset_scan() local
479 sband = iwl_get_hw_mode(priv, band); in iwl_get_channel_for_reset_scan()
480 if (!sband) { in iwl_get_channel_for_reset_scan()
513 const struct ieee80211_supported_band *sband; in iwl_get_channels_for_scan() local
519 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()
2711 struct ieee80211_supported_band *sband = txrc->sband; in rs_get_rate() local
2724 if ((sband->band == IEEE80211_BAND_5GHZ) && in rs_get_rate()
2766 ((sband->band == IEEE80211_BAND_5GHZ) && in rs_get_rate()
2768 rate_idx = rate_lowest_index(sband, sta); in rs_get_rate()
2770 else if (sband->band == IEEE80211_BAND_5GHZ) in rs_get_rate()
2802 struct ieee80211_supported_band *sband; in iwl_rs_rate_init() local
2807 sband = hw->wiphy->bands[conf->chandef.chan->band]; in iwl_rs_rate_init()
2817 lq_sta->supp_rates = sta->supp_rates[sband->band]; in iwl_rs_rate_init()
[all …]
Drxon.c948 struct ieee80211_supported_band *sband; in iwl_calc_basic_rates() local
952 sband = priv->hw->wiphy->bands[priv->hw->conf.chandef.chan->band]; in iwl_calc_basic_rates()
955 int hw = sband->bitrates[i].hw_value; in iwl_calc_basic_rates()
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
Dinit.c524 mt76_init_sband(struct mt7601u_dev *dev, struct ieee80211_supported_band *sband, in mt76_init_sband() argument
537 sband->channels = chanlist; in mt76_init_sband()
538 sband->n_channels = n_chan; in mt76_init_sband()
539 sband->bitrates = rates; in mt76_init_sband()
540 sband->n_bitrates = n_rates; in mt76_init_sband()
542 ht_cap = &sband->ht_cap; in mt76_init_sband()
556 dev->chandef.chan = &sband->channels[0]; in mt76_init_sband()
/linux-4.4.14/drivers/net/wireless/cw1200/
Dmain.c320 struct ieee80211_supported_band *sband = hw->wiphy->bands[band]; in cw1200_init_common() local
321 if (!sband) in cw1200_init_common()
323 for (i = 0; i < sband->n_channels; i++) { in cw1200_init_common()
324 sband->channels[i].flags = 0; in cw1200_init_common()
325 sband->channels[i].max_antenna_gain = 0; in cw1200_init_common()
326 sband->channels[i].max_power = 30; in cw1200_init_common()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dmac.h68 u8 ath10k_mac_hw_rate_to_idx(const struct ieee80211_supported_band *sband,
70 u8 ath10k_mac_bitrate_to_idx(const struct ieee80211_supported_band *sband,
Dmac.c92 u8 ath10k_mac_hw_rate_to_idx(const struct ieee80211_supported_band *sband, in ath10k_mac_hw_rate_to_idx() argument
98 for (i = 0; i < sband->n_bitrates; i++) { in ath10k_mac_hw_rate_to_idx()
99 rate = &sband->bitrates[i]; in ath10k_mac_hw_rate_to_idx()
111 u8 ath10k_mac_bitrate_to_idx(const struct ieee80211_supported_band *sband, in ath10k_mac_bitrate_to_idx() argument
116 for (i = 0; i < sband->n_bitrates; i++) in ath10k_mac_bitrate_to_idx()
117 if (sband->bitrates[i].bitrate == bitrate) in ath10k_mac_bitrate_to_idx()
2022 const struct ieee80211_supported_band *sband; in ath10k_peer_assoc_h_rates() local
2035 sband = ar->hw->wiphy->bands[band]; in ath10k_peer_assoc_h_rates()
2038 rates = sband->bitrates; in ath10k_peer_assoc_h_rates()
5944 struct ieee80211_supported_band *sband; in ath10k_get_survey() local
[all …]
Dhtt_rx.c652 struct ieee80211_supported_band *sband; in ath10k_htt_rx_h_rates() local
676 sband = &ar->mac.sbands[status->band]; in ath10k_htt_rx_h_rates()
677 status->rate_idx = ath10k_mac_hw_rate_to_idx(sband, rate); in ath10k_htt_rx_h_rates()
Dwmi.c2178 struct ieee80211_supported_band *sband; in ath10k_wmi_event_mgmt_rx() local
2250 sband = &ar->mac.sbands[status->band]; in ath10k_wmi_event_mgmt_rx()
2254 status->rate_idx = ath10k_mac_bitrate_to_idx(sband, rate / 100); in ath10k_wmi_event_mgmt_rx()
2297 struct ieee80211_supported_band *sband; in freq_to_idx() local
2301 sband = ar->hw->wiphy->bands[band]; in freq_to_idx()
2302 if (!sband) in freq_to_idx()
2305 for (ch = 0; ch < sband->n_channels; ch++, idx++) in freq_to_idx()
2306 if (sband->channels[ch].center_freq == freq) in freq_to_idx()
/linux-4.4.14/drivers/net/wireless/
Dmac80211_hwsim.c2427 struct ieee80211_supported_band *sband = &data->bands[band]; in mac80211_hwsim_new_radio() local
2430 sband->channels = data->channels_2ghz; in mac80211_hwsim_new_radio()
2431 sband->n_channels = ARRAY_SIZE(hwsim_channels_2ghz); in mac80211_hwsim_new_radio()
2432 sband->bitrates = data->rates; in mac80211_hwsim_new_radio()
2433 sband->n_bitrates = ARRAY_SIZE(hwsim_rates); in mac80211_hwsim_new_radio()
2436 sband->channels = data->channels_5ghz; in mac80211_hwsim_new_radio()
2437 sband->n_channels = ARRAY_SIZE(hwsim_channels_5ghz); in mac80211_hwsim_new_radio()
2438 sband->bitrates = data->rates + 4; in mac80211_hwsim_new_radio()
2439 sband->n_bitrates = ARRAY_SIZE(hwsim_rates) - 4; in mac80211_hwsim_new_radio()
2441 sband->vht_cap.vht_supported = true; in mac80211_hwsim_new_radio()
[all …]
Dmwl8k.c3067 struct ieee80211_supported_band *sband; in freq_to_idx() local
3071 sband = priv->hw->wiphy->bands[band]; in freq_to_idx()
3072 if (!sband) in freq_to_idx()
3075 for (ch = 0; ch < sband->n_channels; ch++, idx++) in freq_to_idx()
3076 if (sband->channels[ch].center_freq == freq) in freq_to_idx()
5388 struct ieee80211_supported_band *sband; in mwl8k_get_survey() local
5391 sband = hw->wiphy->bands[IEEE80211_BAND_2GHZ]; in mwl8k_get_survey()
5393 if (sband && idx >= sband->n_channels) { in mwl8k_get_survey()
5394 idx -= sband->n_channels; in mwl8k_get_survey()
5395 sband = NULL; in mwl8k_get_survey()
[all …]
/linux-4.4.14/include/net/
Dmac80211.h5140 struct ieee80211_supported_band *sband; member
5157 void (*rate_init)(void *priv, struct ieee80211_supported_band *sband,
5160 void (*rate_update)(void *priv, struct ieee80211_supported_band *sband,
5168 struct ieee80211_supported_band *sband,
5171 void (*tx_status)(void *priv, struct ieee80211_supported_band *sband,
5215 rate_lowest_index(struct ieee80211_supported_band *sband, in rate_lowest_index() argument
5220 for (i = 0; i < sband->n_bitrates; i++) in rate_lowest_index()
5221 if (rate_supported(sta, sband->band, i)) in rate_lowest_index()
5232 bool rate_usable_index_exists(struct ieee80211_supported_band *sband, in rate_usable_index_exists() argument
5237 for (i = 0; i < sband->n_bitrates; i++) in rate_usable_index_exists()
[all …]
Dcfg80211.h3633 ieee80211_get_response_rate(struct ieee80211_supported_band *sband,
3644 u32 ieee80211_mandatory_rates(struct ieee80211_supported_band *sband,
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2x00dev.c640 struct ieee80211_supported_band *sband; in rt2x00lib_rxdone_read_signal() local
656 sband = &rt2x00dev->bands[rt2x00dev->curr_band]; in rt2x00lib_rxdone_read_signal()
657 for (i = 0; i < sband->n_bitrates; i++) { in rt2x00lib_rxdone_read_signal()
658 rate = rt2x00_get_rate(sband->bitrates[i].hw_value); in rt2x00lib_rxdone_read_signal()
/linux-4.4.14/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu.c5627 struct ieee80211_supported_band *sband; in rtl8xxxu_probe() local
5718 sband = &rtl8xxxu_supported_band; in rtl8xxxu_probe()
5719 sband->ht_cap.ht_supported = true; in rtl8xxxu_probe()
5720 sband->ht_cap.ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in rtl8xxxu_probe()
5721 sband->ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_16; in rtl8xxxu_probe()
5722 sband->ht_cap.cap = IEEE80211_HT_CAP_SGI_20 | IEEE80211_HT_CAP_SGI_40; in rtl8xxxu_probe()
5723 memset(&sband->ht_cap.mcs, 0, sizeof(sband->ht_cap.mcs)); in rtl8xxxu_probe()
5724 sband->ht_cap.mcs.rx_mask[0] = 0xff; in rtl8xxxu_probe()
5725 sband->ht_cap.mcs.rx_mask[4] = 0x01; in rtl8xxxu_probe()
5727 sband->ht_cap.mcs.rx_mask[1] = 0xff; in rtl8xxxu_probe()
[all …]
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Drs.c1370 struct ieee80211_supported_band *sband, in rs_mac80211_tx_status() argument
3031 struct ieee80211_supported_band *sband; in iwl_mvm_rs_rate_init() local
3037 sband = hw->wiphy->bands[band]; in iwl_mvm_rs_rate_init()
3056 lq_sta->band = sband->band; in iwl_mvm_rs_rate_init()
3060 supp = sta->supp_rates[sband->band]; in iwl_mvm_rs_rate_init()
3063 lq_sta->active_legacy_rate |= BIT(sband->bitrates[i].hw_value); in iwl_mvm_rs_rate_init()
3105 struct ieee80211_supported_band *sband, in rs_rate_update() argument
3122 iwl_mvm_rs_rate_init(mvm, sta, sband->band, false); in rs_rate_update()
3926 struct ieee80211_supported_band *sband, in rs_rate_init_stub() argument
Dmac-ctxt.c537 struct ieee80211_supported_band *sband; in iwl_mvm_ack_rates() local
545 sband = mvm->hw->wiphy->bands[band]; in iwl_mvm_ack_rates()
548 int hw = sband->bitrates[i].hw_value; in iwl_mvm_ack_rates()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dwmi.c2004 struct ieee80211_supported_band *sband; in ath6kl_wmi_beginscan_cmd() local
2047 sband = ar->wiphy->bands[band]; in ath6kl_wmi_beginscan_cmd()
2049 if (!sband) in ath6kl_wmi_beginscan_cmd()
2059 for (i = 0; i < sband->n_bitrates; i++) { in ath6kl_wmi_beginscan_cmd()
2063 (u8) (sband->bitrates[i].bitrate / 5); in ath6kl_wmi_beginscan_cmd()
/linux-4.4.14/drivers/net/wireless/b43legacy/
Dmain.c2794 struct ieee80211_supported_band *sband = in b43legacy_update_basic_rates() local
2800 for (i = 0; i < sband->n_bitrates; i++) { in b43legacy_update_basic_rates()
2801 rate = &sband->bitrates[i]; in b43legacy_update_basic_rates()
2815 rate = ieee80211_get_response_rate(sband, brates, rate->bitrate); in b43legacy_update_basic_rates()
/linux-4.4.14/drivers/net/wireless/b43/
Dmain.c4070 struct ieee80211_supported_band *sband = in b43_update_basic_rates() local
4076 for (i = 0; i < sband->n_bitrates; i++) { in b43_update_basic_rates()
4077 rate = &sband->bitrates[i]; in b43_update_basic_rates()
4091 rate = ieee80211_get_response_rate(sband, brates, rate->bitrate); in b43_update_basic_rates()