Home
last modified time | relevance | path

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

12

/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/
Drate.c41 struct ieee80211_supported_band *sband; in rate_control_rate_init() local
57 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init()
60 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
68 struct ieee80211_supported_band *sband, in rate_control_tx_status() argument
80 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st); in rate_control_tx_status()
82 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb); in rate_control_tx_status()
90 struct ieee80211_supported_band *sband, in rate_control_rate_update() argument
108 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
272 struct ieee80211_supported_band *sband; in ieee80211_check_rate_mask() local
284 sband = local->hw.wiphy->bands[band]; in ieee80211_check_rate_mask()
[all …]
Dmesh.c65 struct ieee80211_supported_band *sband; in mesh_matches_local() local
86 sband = ieee80211_get_sband(sdata); in mesh_matches_local()
87 if (!sband) in mesh_matches_local()
90 ieee80211_sta_get_rates(sdata, ie, sband->band, in mesh_matches_local()
411 struct ieee80211_supported_band *sband; in mesh_add_ht_cap_ie() local
414 sband = ieee80211_get_sband(sdata); in mesh_add_ht_cap_ie()
415 if (!sband) in mesh_add_ht_cap_ie()
418 if (!sband->ht_cap.ht_supported || in mesh_add_ht_cap_ie()
428 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie()
439 struct ieee80211_supported_band *sband; in mesh_add_ht_oper_ie() local
[all …]
Dmesh_plink.c96 struct ieee80211_supported_band *sband; in mesh_set_short_slot_time() local
102 sband = ieee80211_get_sband(sdata); in mesh_set_short_slot_time()
103 if (!sband) in mesh_set_short_slot_time()
106 if (sband->band == NL80211_BAND_5GHZ) { in mesh_set_short_slot_time()
110 } else if (sband->band != NL80211_BAND_2GHZ) { in mesh_set_short_slot_time()
114 for (i = 0; i < sband->n_bitrates; i++) in mesh_set_short_slot_time()
115 if (sband->bitrates[i].flags & IEEE80211_RATE_ERP_G) in mesh_set_short_slot_time()
128 if (erp_rates & sta->sta.supp_rates[sband->band]) in mesh_set_short_slot_time()
258 struct ieee80211_supported_band *sband; in mesh_plink_frame_tx() local
261 sband = ieee80211_get_sband(sdata); in mesh_plink_frame_tx()
[all …]
Drc80211_minstrel.c260 minstrel_tx_status(void *priv, struct ieee80211_supported_band *sband, in minstrel_tx_status() argument
475 minstrel_rate_init(void *priv, struct ieee80211_supported_band *sband, in minstrel_rate_init() argument
487 mi->lowest_rix = rate_lowest_index(sband, sta); in minstrel_rate_init()
488 ctl_rate = &sband->bitrates[mi->lowest_rix]; in minstrel_rate_init()
489 mi->sp_ack_dur = ieee80211_frame_duration(sband->band, 10, in minstrel_rate_init()
498 for (i = 0; i < sband->n_bitrates; i++) { in minstrel_rate_init()
506 if (!rate_supported(sta, sband->band, i)) in minstrel_rate_init()
508 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in minstrel_rate_init()
517 mr->bitrate = DIV_ROUND_UP(sband->bitrates[i].bitrate, in minstrel_rate_init()
519 calc_rate_durations(sband->band, mr, &sband->bitrates[i], in minstrel_rate_init()
[all …]
Dibss.c50 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 == NL80211_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.c163 struct ieee80211_supported_band *sband; in mac80211_rts_duration() local
165 sband = local->hw.wiphy->bands[frame_txctl->band]; in mac80211_rts_duration()
169 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in mac80211_rts_duration()
183 dur = ieee80211_frame_duration(sband->band, 10, bitrate, in mac80211_rts_duration()
186 dur += ieee80211_frame_duration(sband->band, frame_len, bitrate, in mac80211_rts_duration()
189 dur += ieee80211_frame_duration(sband->band, 10, bitrate, in mac80211_rts_duration()
206 struct ieee80211_supported_band *sband; in mac80211_ctstoself_duration() local
208 sband = local->hw.wiphy->bands[frame_txctl->band]; in mac80211_ctstoself_duration()
212 rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; in mac80211_ctstoself_duration()
225 dur = ieee80211_frame_duration(sband->band, frame_len, bitrate, in mac80211_ctstoself_duration()
[all …]
Dmain.c1072 struct ieee80211_supported_band *sband; in mac80211_register_hw() local
1074 sband = local->hw.wiphy->bands[band]; in mac80211_register_hw()
1075 if (!sband) in mac80211_register_hw()
1080 &sband->channels[0], in mac80211_register_hw()
1090 channels += sband->n_channels; in mac80211_register_hw()
1092 if (max_bitrates < sband->n_bitrates) in mac80211_register_hw()
1093 max_bitrates = sband->n_bitrates; in mac80211_register_hw()
1094 supp_ht = supp_ht || sband->ht_cap.ht_supported; in mac80211_register_hw()
1095 supp_vht = supp_vht || sband->vht_cap.vht_supported; in mac80211_register_hw()
1098 supp_he = !!ieee80211_get_he_sta_cap(sband); in mac80211_register_hw()
[all …]
Drc80211_minstrel_ht.c883 minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband, in minstrel_ht_tx_status() argument
897 return mac80211_minstrel.tx_status_ext(priv, sband, in minstrel_ht_tx_status()
1356 struct ieee80211_supported_band *sband, in minstrel_ht_update_cck() argument
1361 if (sband->band != NL80211_BAND_2GHZ) in minstrel_ht_update_cck()
1370 if (!rate_supported(sta, sband->band, mp->cck_rates[i])) in minstrel_ht_update_cck()
1374 if (sband->bitrates[i].flags & IEEE80211_RATE_SHORT_PREAMBLE) in minstrel_ht_update_cck()
1382 minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband, in minstrel_ht_update_caps() argument
1416 ack_dur = ieee80211_frame_duration(sband->band, 10, 60, 1, 1, 0); in minstrel_ht_update_caps()
1417 mi->overhead = ieee80211_frame_duration(sband->band, 0, 60, 1, 1, 0); in minstrel_ht_update_caps()
1455 minstrel_ht_update_cck(mp, mi, sband, sta); in minstrel_ht_update_caps()
[all …]
Dmlme.c151 struct ieee80211_supported_band *sband, in ieee80211_determine_chantype() argument
163 memcpy(&sta_ht_cap, &sband->ht_cap, sizeof(sta_ht_cap)); in ieee80211_determine_chantype()
208 if (!vht_oper || !sband->vht_cap.vht_supported) { in ieee80211_determine_chantype()
335 struct ieee80211_supported_band *sband = in ieee80211_config_bw() local
353 !ieee80211_get_he_sta_cap(sband)) in ieee80211_config_bw()
370 flags = ieee80211_determine_chantype(sdata, sband, chan, in ieee80211_config_bw()
435 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
449 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
460 struct ieee80211_supported_band *sband, in ieee80211_add_ht_ie() argument
469 BUILD_BUG_ON(sizeof(ht_cap) != sizeof(sband->ht_cap)); in ieee80211_add_ht_ie()
[all …]
Dtdls.c53 struct ieee80211_supported_band *sband = ieee80211_get_sband(sdata); in ieee80211_tdls_add_ext_capab() local
54 bool vht = sband && sband->vht_cap.vht_supported; in ieee80211_tdls_add_ext_capab()
186 struct ieee80211_supported_band *sband; in ieee80211_get_tdls_sta_capab() local
192 sband = ieee80211_get_sband(sdata); in ieee80211_get_tdls_sta_capab()
193 if (sband && sband->band == NL80211_BAND_2GHZ) { in ieee80211_get_tdls_sta_capab()
367 struct ieee80211_supported_band *sband; in ieee80211_tdls_add_setup_start_ies() local
375 sband = ieee80211_get_sband(sdata); in ieee80211_tdls_add_setup_start_ies()
376 if (!sband) in ieee80211_tdls_add_setup_start_ies()
379 ieee80211_add_srates_ie(sdata, skb, false, sband->band); in ieee80211_tdls_add_setup_start_ies()
380 ieee80211_add_ext_srates_ie(sdata, skb, false, sband->band); in ieee80211_tdls_add_setup_start_ies()
[all …]
Dstatus.c304 struct ieee80211_supported_band *sband, in ieee80211_add_tx_radiotap_header() argument
344 sband->bitrates[info->status.rates[0].idx].bitrate; in ieee80211_add_tx_radiotap_header()
807 struct ieee80211_supported_band *sband, in ieee80211_tx_monitor() argument
824 ieee80211_add_tx_radiotap_header(local, sband, skb, retry_count, in ieee80211_tx_monitor()
881 struct ieee80211_supported_band *sband; in __ieee80211_tx_status() local
892 sband = local->hw.wiphy->bands[info->band]; in __ieee80211_tx_status()
980 rate_control_tx_status(local, sband, status); in __ieee80211_tx_status()
1074 ieee80211_tx_monitor(local, skb, sband, retry_count, shift, in __ieee80211_tx_status()
1110 struct ieee80211_supported_band *sband; in mac80211_tx_status_ext() local
1122 sband = hw->wiphy->bands[info->band]; in mac80211_tx_status_ext()
[all …]
Dvht.c117 struct ieee80211_supported_band *sband, in ieee80211_vht_cap_ie_to_sta_vht_cap() argument
131 if (!vht_cap_ie || !sband->vht_cap.vht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
136 for (i = 0; i < sband->n_channels; i++) { in ieee80211_vht_cap_ie_to_sta_vht_cap()
137 if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED | in ieee80211_vht_cap_ie_to_sta_vht_cap()
157 own_cap = sband->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap()
595 struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; in ieee80211_vht_handle_opmode() local
601 rate_control_rate_update(local, sband, sta, changed); in ieee80211_vht_handle_opmode()
Dhe.c12 struct ieee80211_supported_band *sband, in ieee80211_he_cap_ie_to_sta_he_cap() argument
24 if (!he_cap_ie || !ieee80211_get_he_sta_cap(sband)) in ieee80211_he_cap_ie_to_sta_he_cap()
Drate.h29 struct ieee80211_supported_band *sband,
34 struct ieee80211_supported_band *sband,
Docb.c45 struct ieee80211_supported_band *sband; in ieee80211_ocb_rx_no_sta() local
76 sband = local->hw.wiphy->bands[band]; in ieee80211_ocb_rx_no_sta()
78 ieee80211_mandatory_rates(sband, scan_width); in ieee80211_ocb_rx_no_sta()
Dtx.c58 struct ieee80211_supported_band *sband; in ieee80211_duration() local
80 sband = local->hw.wiphy->bands[info->band]; in ieee80211_duration()
81 txrate = &sband->bitrates[tx->rate.idx]; in ieee80211_duration()
140 mrate = sband->bitrates[0].bitrate; in ieee80211_duration()
141 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_duration()
142 struct ieee80211_rate *r = &sband->bitrates[i]; in ieee80211_duration()
153 switch (sband->band) { in ieee80211_duration()
194 dur = ieee80211_frame_duration(sband->band, 10, rate, erp, in ieee80211_duration()
203 dur += ieee80211_frame_duration(sband->band, next_frag_len, in ieee80211_duration()
677 struct ieee80211_supported_band *sband; in ieee80211_tx_h_rate_ctrl() local
[all …]
Dagg-rx.c183 struct ieee80211_supported_band *sband; in ieee80211_add_addbaext() local
189 sband = ieee80211_get_sband(sdata); in ieee80211_add_addbaext()
190 if (!sband) in ieee80211_add_addbaext()
192 he_cap = ieee80211_get_he_iftype_cap(sband, sdata->vif.type); in ieee80211_add_addbaext()
Dcfg.c738 struct ieee80211_supported_band *sband; in sta_set_rate_info_tx() local
742 sband = ieee80211_get_sband(sta->sdata); in sta_set_rate_info_tx()
743 if (sband) { in sta_set_rate_info_tx()
744 brate = sband->bitrates[rate->idx].bitrate; in sta_set_rate_info_tx()
1532 struct ieee80211_supported_band *sband; in sta_apply_parameters() local
1536 sband = ieee80211_get_sband(sdata); in sta_apply_parameters()
1537 if (!sband) in sta_apply_parameters()
1678 sband, params->supported_rates, in sta_apply_parameters()
1680 &sta->sta.supp_rates[sband->band]); in sta_apply_parameters()
1684 ieee80211_ht_cap_ie_to_sta_ht_cap(sdata, sband, in sta_apply_parameters()
[all …]
Dht.c138 struct ieee80211_supported_band *sband, in ieee80211_ht_cap_ie_to_sta_ht_cap() argument
151 if (!ht_cap_ie || !sband->ht_cap.ht_supported) in ieee80211_ht_cap_ie_to_sta_ht_cap()
156 own_cap = sband->ht_cap; in ieee80211_ht_cap_ie_to_sta_ht_cap()
Diface.c1919 struct ieee80211_supported_band *sband; in ieee80211_if_add() local
1920 sband = local->hw.wiphy->bands[i]; in ieee80211_if_add()
1922 sband ? (1 << sband->n_bitrates) - 1 : 0; in ieee80211_if_add()
1923 if (sband) { in ieee80211_if_add()
1928 sband->ht_cap.mcs.rx_mask, in ieee80211_if_add()
1931 cap = sband->vht_cap.vht_mcs.rx_mcs_map; in ieee80211_if_add()
Drx.c3122 struct ieee80211_supported_band *sband; in ieee80211_rx_h_action() local
3149 sband = rx->local->hw.wiphy->bands[status->band]; in ieee80211_rx_h_action()
3151 rate_control_rate_update(local, sband, rx->sta, in ieee80211_rx_h_action()
3160 struct ieee80211_supported_band *sband; in ieee80211_rx_h_action() local
3183 sband = rx->local->hw.wiphy->bands[status->band]; in ieee80211_rx_h_action()
3188 rate_control_rate_update(local, sband, rx->sta, in ieee80211_rx_h_action()
3638 struct ieee80211_supported_band *sband; in ieee80211_rx_handlers_result() local
3643 sband = rx->local->hw.wiphy->bands[status->band]; in ieee80211_rx_handlers_result()
3645 rate = &sband->bitrates[status->rate_idx]; in ieee80211_rx_handlers_result()
4578 struct ieee80211_supported_band *sband; in mac80211_rx_napi() local
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/os_dep/linux/
Dwifi_regd.c189 struct ieee80211_supported_band *sband; in rtw_regd_disable_no_20mhz_chs() local
194 sband = wiphy->bands[i]; in rtw_regd_disable_no_20mhz_chs()
195 if (!sband) in rtw_regd_disable_no_20mhz_chs()
197 for (j = 0; j < sband->n_channels; j++) { in rtw_regd_disable_no_20mhz_chs()
198 ch = &sband->channels[j]; in rtw_regd_disable_no_20mhz_chs()
251 struct ieee80211_supported_band *sband; in rtw_regd_overide_flags() local
260 sband = wiphy->bands[i]; in rtw_regd_overide_flags()
261 if (!sband) in rtw_regd_overide_flags()
263 for (j = 0; j < sband->n_channels; j++) { in rtw_regd_overide_flags()
264 ch = &sband->channels[j]; in rtw_regd_overide_flags()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
Doal_net.c331 struct ieee80211_supported_band *sband = HI_NULL; in oal_ieee80211_get_channel() local
334 sband = wiphy->bands[band]; in oal_ieee80211_get_channel()
336 if (sband == HI_NULL) { in oal_ieee80211_get_channel()
340 for (i = 0; i < sband->n_channels; i++) { in oal_ieee80211_get_channel()
341 if (sband->channels[i].center_freq == freq) { in oal_ieee80211_get_channel()
342 return &sband->channels[i]; in oal_ieee80211_get_channel()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/wlan/
Dmain.c632 struct ieee80211_supported_band *sband; in xradio_init_common() local
756 sband = hw->wiphy->bands[band]; in xradio_init_common()
757 if (!sband) in xradio_init_common()
759 for (i = 0; i < sband->n_channels; i++) { in xradio_init_common()
760 sband->channels[i].flags = 0; in xradio_init_common()
761 sband->channels[i].max_antenna_gain = 0; in xradio_init_common()
762 sband->channels[i].max_power = 30; in xradio_init_common()
770 sband = hw->wiphy->bands[band]; in xradio_init_common()
771 if (!sband) in xradio_init_common()
774 hw_priv->channel = &sband->channels[2]; in xradio_init_common()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/include/net/
Dmac80211.h5949 struct ieee80211_supported_band *sband; member
5982 void (*rate_init)(void *priv, struct ieee80211_supported_band *sband,
5985 void (*rate_update)(void *priv, struct ieee80211_supported_band *sband,
5993 struct ieee80211_supported_band *sband,
5995 void (*tx_status)(void *priv, struct ieee80211_supported_band *sband,
6015 rate_lowest_index(struct ieee80211_supported_band *sband, in rate_lowest_index() argument
6020 for (i = 0; i < sband->n_bitrates; i++) in rate_lowest_index()
6021 if (rate_supported(sta, sband->band, i)) in rate_lowest_index()
6032 bool rate_usable_index_exists(struct ieee80211_supported_band *sband, in rate_usable_index_exists() argument
6037 for (i = 0; i < sband->n_bitrates; i++) in rate_usable_index_exists()
[all …]

12