Home
last modified time | relevance | path

Searched refs:band (Results 1 – 25 of 201) sorted by relevance

123456789

/drivers/net/wireless/ti/wl12xx/
Dscan.c30 enum ieee80211_band band, bool passive) in wl1271_get_scan_channels() argument
43 (req->channels[i]->band == band) && in wl1271_get_scan_channels()
52 req->channels[i]->band, in wl1271_get_scan_channels()
95 enum ieee80211_band band, in wl1271_scan_send() argument
132 band, passive); in wl1271_scan_send()
143 if (band == IEEE80211_BAND_2GHZ) in wl1271_scan_send()
144 cmd->params.band = WL1271_SCAN_BAND_2_4_GHZ; in wl1271_scan_send()
146 cmd->params.band = WL1271_SCAN_BAND_5_GHZ; in wl1271_scan_send()
156 cmd->params.role_id, band, in wl1271_scan_send()
217 enum ieee80211_band band; in wl1271_scan_stm() local
[all …]
/drivers/media/radio/si470x/
Dradio-si470x-common.c194 static int si470x_set_band(struct si470x_device *radio, int band) in si470x_set_band() argument
196 if (radio->band == band) in si470x_set_band()
199 radio->band = band; in si470x_set_band()
201 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band()
273 *freq = chan * si470x_get_step(radio) + bands[radio->band].rangelow; in si470x_get_freq()
286 freq = clamp(freq, bands[radio->band].rangelow, in si470x_set_freq()
287 bands[radio->band].rangehigh); in si470x_set_freq()
289 chan = (freq - bands[radio->band].rangelow) / si470x_get_step(radio); in si470x_set_freq()
301 int band, retval; in si470x_set_seek() local
307 for (band = 0; band < ARRAY_SIZE(bands); band++) { in si470x_set_seek()
[all …]
/drivers/net/wireless/brcm80211/brcmsmac/
Dstf.c31 #define BRCMS_STF_SS_STBC_RX(wlc) (BRCMS_ISNPHY(wlc->band) && \
32 NREV_GT(wlc->band->phyrev, 3) && NREV_LE(wlc->band->phyrev, 6))
67 struct brcms_phy_pub *pi = wlc->band->pi; in brcms_c_tempsense_upd()
101 wlc_phy_txpower_get_current(wlc->band->pi, &power, in brcms_c_stf_ss_algo_channel_get()
231 if (BRCMS_PHY_11N_CAP(wlc->band)) { in _brcms_c_stf_phy_txant_upd()
237 if (BRCMS_ISNPHY(wlc->band) && in _brcms_c_stf_phy_txant_upd()
238 NREV_GE(wlc->band->phyrev, 3) in _brcms_c_stf_phy_txant_upd()
239 && NREV_LT(wlc->band->phyrev, 7)) in _brcms_c_stf_phy_txant_upd()
242 if (BRCMS_ISLCNPHY(wlc->band) || in _brcms_c_stf_phy_txant_upd()
243 BRCMS_ISSSLPNPHY(wlc->band)) in _brcms_c_stf_phy_txant_upd()
[all …]
Dmain.c361 return wlc->band->basic_rate[mcs_table[rspec & RSPEC_RATE_MASK] in brcms_basic_rate()
363 return wlc->band->basic_rate[rspec & RSPEC_RATE_MASK]; in brcms_basic_rate()
374 static u16 get_sifs(struct brcms_band *band) in get_sifs() argument
376 return band->bandtype == BRCM_BAND_5G ? APHY_SIFS_TIME : in get_sifs()
649 if (wlc->band->bandtype == BRCM_BAND_2G) in brcms_c_calc_frame_time()
661 if (wlc->band->bandtype == BRCM_BAND_2G) in brcms_c_calc_frame_time()
720 brcms_c_write_mhf(wlc_hw, wlc_hw->band->mhfs); in brcms_c_ucode_bsinit()
724 if (BRCMS_ISNPHY(wlc_hw->band)) in brcms_c_ucode_bsinit()
733 if (BRCMS_ISLCNPHY(wlc_hw->band)) in brcms_c_ucode_bsinit()
787 wlc_hw->band = wlc_hw->bandstate[bandunit]; in brcms_c_setxband()
[all …]
Dchannel.c413 struct brcms_band *band; in brcms_c_channel_reg_limits() local
428 band = wlc->bandstate[chspec_bandunit(chanspec)]; in brcms_c_channel_reg_limits()
429 li_mimo = (band->bandtype == BRCM_BAND_5G) ? in brcms_c_channel_reg_limits()
433 delta = band->antgain; in brcms_c_channel_reg_limits()
435 if (band->bandtype == BRCM_BAND_2G) in brcms_c_channel_reg_limits()
443 if (band->bandtype == BRCM_BAND_2G) { in brcms_c_channel_reg_limits()
466 if (band->antgain > QDB(6)) in brcms_c_channel_reg_limits()
467 delta = band->antgain - QDB(6); /* Excess over 6 dB */ in brcms_c_channel_reg_limits()
469 if (band->bandtype == BRCM_BAND_2G) in brcms_c_channel_reg_limits()
672 int band, i; in brcms_reg_apply_beaconing_flags() local
[all …]
Dmain.h145 ((uint)((wlc)->band->bandunit ? BAND_2G_INDEX : BAND_5G_INDEX))
217 (((wlc)->stf->txstreams > 1) && (((wlc)->band->band_stf_stbc_tx == ON) \
219 (wlc)->band->band_stf_stbc_tx == AUTO && \
222 #define BRCMS_STBC_CAP_PHY(wlc) (BRCMS_ISNPHY(wlc->band) && \
223 NREV_GE(wlc->band->phyrev, 3))
225 #define BRCMS_SGI_CAP_PHY(wlc) ((BRCMS_ISNPHY(wlc->band) && \
226 NREV_GE(wlc->band->phyrev, 3)) || \
227 BRCMS_ISLCNPHY(wlc->band))
277 struct ieee80211_supported_band band; member
336 struct brcms_hw_band *band;/* pointer to active per-band state */ member
[all …]
Dtypes.h236 #define BRCMS_ISNPHY(band) PHYTYPE_IS((band)->phytype, PHY_TYPE_N) argument
237 #define BRCMS_ISLCNPHY(band) PHYTYPE_IS((band)->phytype, PHY_TYPE_LCN) argument
238 #define BRCMS_ISSSLPNPHY(band) PHYTYPE_IS((band)->phytype, PHY_TYPE_SSN) argument
240 #define BRCMS_PHY_11N_CAP(band) PHYTYPE_11N_CAP((band)->phytype) argument
/drivers/media/tuners/
Dmt2266.c42 u8 band; member
135 u8 band; in mt2266_set_params() local
145 band = (freq < 300000) ? MT2266_VHF : MT2266_UHF; in mt2266_set_params()
146 if (band == MT2266_VHF) in mt2266_set_params()
166 if (band == MT2266_VHF && priv->band == MT2266_UHF) { in mt2266_set_params()
171 } else if (band == MT2266_UHF && priv->band == MT2266_VHF) { in mt2266_set_params()
216 (band == MT2266_UHF) ? "UHF" : "VHF"); in mt2266_set_params()
220 if (band == MT2266_UHF) { in mt2266_set_params()
222 b[1] = (priv->band == MT2266_VHF) ? 0x52 : 0x62; in mt2266_set_params()
238 if (band == MT2266_UHF && priv->band == MT2266_VHF) in mt2266_set_params()
[all …]
/drivers/net/wireless/iwlwifi/
Diwl-eeprom-parse.c391 enum ieee80211_band band; in iwl_eeprom_enh_txp_read_element() local
393 band = txp->flags & IWL_EEPROM_ENH_TXP_FL_BAND_52G ? in iwl_eeprom_enh_txp_read_element()
404 if (band != chan->band) in iwl_eeprom_enh_txp_read_element()
527 enum ieee80211_band band, u16 channel, in iwl_mod_ht40_chan_info() argument
535 if (data->channels[i].band != band) in iwl_mod_ht40_chan_info()
549 band == IEEE80211_BAND_5GHZ ? "5.2" : "2.4", in iwl_mod_ht40_chan_info()
572 int band, ch_idx; in iwl_init_channel_map() local
581 for (band = 1; band <= 5; band++) { in iwl_init_channel_map()
584 iwl_init_band_reference(cfg, eeprom, eeprom_size, band, in iwl_init_channel_map()
599 (band != 1) ? "5.2" : "2.4"); in iwl_init_channel_map()
[all …]
/drivers/net/wireless/iwlwifi/dvm/
Dscan.c145 priv->scan_request->channels[0]->band); in iwl_process_scan_complete()
282 notif->band ? "bg" : "a", in iwl_rx_scan_start_notif()
311 notif->band ? "bg" : "a", in iwl_rx_scan_results_notif()
386 enum ieee80211_band band, u8 n_probes) in iwl_get_active_dwell_time() argument
388 if (band == IEEE80211_BAND_5GHZ) in iwl_get_active_dwell_time()
455 enum ieee80211_band band) in iwl_get_passive_dwell_time() argument
457 u16 passive = (band == IEEE80211_BAND_2GHZ) ? in iwl_get_passive_dwell_time()
466 enum ieee80211_band band) in iwl_get_single_channel_number() argument
468 struct ieee80211_supported_band *sband = priv->hw->wiphy->bands[band]; in iwl_get_single_channel_number()
494 enum ieee80211_band band, in iwl_get_channel_for_reset_scan() argument
[all …]
/drivers/net/wireless/ti/wl18xx/
Dscan.c109 u8 band = IEEE80211_BAND_2GHZ; in wl18xx_scan_send() local
111 cmd->role_id, band, in wl18xx_scan_send()
124 u8 band = IEEE80211_BAND_5GHZ; in wl18xx_scan_send() local
126 cmd->role_id, band, in wl18xx_scan_send()
235 u8 band = IEEE80211_BAND_2GHZ; in wl18xx_scan_sched_scan_config() local
237 cmd->role_id, band, in wl18xx_scan_sched_scan_config()
240 ies->ie[band], in wl18xx_scan_sched_scan_config()
241 ies->len[band], in wl18xx_scan_sched_scan_config()
250 u8 band = IEEE80211_BAND_5GHZ; in wl18xx_scan_sched_scan_config() local
252 cmd->role_id, band, in wl18xx_scan_sched_scan_config()
[all …]
Dcmd.c49 switch (ch_switch->chandef.chan->band) { in wl18xx_cmd_channel_switch()
51 cmd->band = WLCORE_BAND_2_4GHZ; in wl18xx_cmd_channel_switch()
54 cmd->band = WLCORE_BAND_5GHZ; in wl18xx_cmd_channel_switch()
58 ch_switch->chandef.chan->band); in wl18xx_cmd_channel_switch()
/drivers/media/radio/
Dradio-tea5777.c178 switch (tea->band) { in tea5777_freq_to_v4l2_freq()
192 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq()
193 bands[tea->band].rangehigh); in radio_tea5777_set_freq()
196 switch (tea->band) { in radio_tea5777_set_freq()
284 struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument
288 if (band->tuner != 0 || band->index >= ARRAY_SIZE(bands) || in vidioc_enum_freq_bands()
289 (!tea->has_am && band->index == BAND_AM)) in vidioc_enum_freq_bands()
292 *band = bands[band->index]; in vidioc_enum_freq_bands()
322 if (tea->band == BAND_FM && in vidioc_g_tuner()
351 if (tea->audmode != orig_audmode && tea->band == BAND_FM) in vidioc_s_tuner()
[all …]
/drivers/net/wireless/ti/wlcore/
Dcmd.c413 enum ieee80211_band band, in wl12xx_cmd_role_start_dev() argument
428 if (band == IEEE80211_BAND_5GHZ) in wl12xx_cmd_role_start_dev()
429 cmd->band = WLCORE_BAND_5GHZ; in wl12xx_cmd_role_start_dev()
514 if (wlvif->band == IEEE80211_BAND_5GHZ) in wl12xx_cmd_role_start_sta()
515 cmd->band = WLCORE_BAND_5GHZ; in wl12xx_cmd_role_start_sta()
682 switch (wlvif->band) { in wl12xx_cmd_role_start_ap()
684 cmd->band = WLCORE_BAND_2_4GHZ; in wl12xx_cmd_role_start_ap()
687 cmd->band = WLCORE_BAND_5GHZ; in wl12xx_cmd_role_start_ap()
690 wl1271_warning("ap start - unknown band: %d", (int)wlvif->band); in wl12xx_cmd_role_start_ap()
691 cmd->band = WLCORE_BAND_2_4GHZ; in wl12xx_cmd_role_start_ap()
[all …]
/drivers/net/wireless/iwlwifi/mvm/
Dscan.c105 if (req->channels[0]->band == IEEE80211_BAND_2GHZ) in iwl_mvm_scan_rxon_flags()
112 iwl_mvm_scan_rate_n_flags(struct iwl_mvm *mvm, enum ieee80211_band band, in iwl_mvm_scan_rate_n_flags() argument
122 if (band == IEEE80211_BAND_2GHZ && !no_cck) in iwl_mvm_scan_rate_n_flags()
158 static u16 iwl_mvm_get_active_dwell(enum ieee80211_band band, int n_ssids) in iwl_mvm_get_active_dwell() argument
160 if (band == IEEE80211_BAND_2GHZ) in iwl_mvm_get_active_dwell()
165 static u16 iwl_mvm_get_passive_dwell(enum ieee80211_band band) in iwl_mvm_get_passive_dwell() argument
167 return band == IEEE80211_BAND_2GHZ ? 100 + 20 : 100 + 10; in iwl_mvm_get_passive_dwell()
173 u16 passive_dwell = iwl_mvm_get_passive_dwell(req->channels[0]->band); in iwl_mvm_scan_fill_channels()
174 u16 active_dwell = iwl_mvm_get_active_dwell(req->channels[0]->band, in iwl_mvm_scan_fill_channels()
327 iwl_mvm_scan_rate_n_flags(mvm, req->channels[0]->band, in iwl_mvm_scan_request()
Dbt-coex.c351 enum ieee80211_band band; in iwl_mvm_bt_notif_iterator() local
360 band = chanctx_conf->def.chan->band; in iwl_mvm_bt_notif_iterator()
362 band = -1; in iwl_mvm_bt_notif_iterator()
367 if (band != IEEE80211_BAND_2GHZ) { in iwl_mvm_bt_notif_iterator()
571 enum ieee80211_band band; in iwl_mvm_bt_coex_vif_assoc() local
576 band = chanctx_conf->def.chan->band; in iwl_mvm_bt_coex_vif_assoc()
578 band = -1; in iwl_mvm_bt_coex_vif_assoc()
582 if (band == IEEE80211_BAND_2GHZ) in iwl_mvm_bt_coex_vif_assoc()
/drivers/net/wireless/iwlegacy/
D3945-rs.c101 il3945_get_rate_idx_by_rssi(s32 rssi, enum ieee80211_band band) in il3945_get_rate_idx_by_rssi() argument
110 switch (band) { in il3945_get_rate_idx_by_rssi()
350 sband = hw->wiphy->bands[conf->chandef.chan->band]; in il3945_rs_rate_init()
376 if (sta->supp_rates[sband->band] & (1 << i)) { in il3945_rs_rate_init()
382 il->_3945.sta_supp_rates = sta->supp_rates[sband->band]; in il3945_rs_rate_init()
384 if (sband->band == IEEE80211_BAND_5GHZ) { in il3945_rs_rate_init()
545 enum ieee80211_band band) in il3945_get_adjacent_rate() argument
553 if (unlikely(band == IEEE80211_BAND_5GHZ)) { in il3945_get_adjacent_rate()
657 rate_mask = sta->supp_rates[sband->band]; in il3945_rs_get_rate()
661 if (sband->band == IEEE80211_BAND_5GHZ && max_rate_idx != -1) in il3945_rs_get_rate()
[all …]
D4965.c780 get_min_power_idx(s32 rate_power_idx, u32 band) in get_min_power_idx() argument
782 if (!band) { in get_min_power_idx()
1020 il4965_fill_txpower_tbl(struct il_priv *il, u8 band, u16 channel, u8 is_ht40, in il4965_fill_txpower_tbl() argument
1053 D_TXPOWER("chan %d band %d is_ht40 %d\n", channel, band, is_ht40); in il4965_fill_txpower_tbl()
1055 ch_info = il_get_channel_info(il, il->band, channel); in il4965_fill_txpower_tbl()
1080 if (band) in il4965_fill_txpower_tbl()
1087 if (band) in il4965_fill_txpower_tbl()
1102 if (band) in il4965_fill_txpower_tbl()
1210 if (power_idx < get_min_power_idx(i, band)) in il4965_fill_txpower_tbl()
1211 power_idx = get_min_power_idx(i, band); in il4965_fill_txpower_tbl()
[all …]
/drivers/net/wireless/p54/
Deeprom.c80 enum ieee80211_band band; member
128 enum ieee80211_band band) in p54_fill_band_bitrates() argument
132 switch (band) { in p54_fill_band_bitrates()
151 enum ieee80211_band band) in p54_generate_band() argument
158 if ((!list->entries) || (!list->band_channel_num[band])) in p54_generate_band()
166 list->band_channel_num[band], GFP_KERNEL); in p54_generate_band()
170 ret = p54_fill_band_bitrates(dev, tmp, band); in p54_generate_band()
174 for (i = 0, j = 0; (j < list->band_channel_num[band]) && in p54_generate_band()
179 if (chan->band != band) in p54_generate_band()
195 dest->band = chan->band; in p54_generate_band()
[all …]
/drivers/media/dvb-frontends/
Ds921.c269 int band, rc, i; in s921_pll_tune() local
276 for (band = 0; band < ARRAY_SIZE(s921_bandselect); band++) in s921_pll_tune()
277 if (p->frequency < s921_bandselect[band].freq_low) in s921_pll_tune()
279 band--; in s921_pll_tune()
281 if (band < 0) { in s921_pll_tune()
286 f_switch = s921_bandselect[band].band_reg; in s921_pll_tune()
/drivers/net/wireless/orinoco/
Dcfg.c55 priv->band.bitrates = orinoco_rates; in orinoco_wiphy_register()
56 priv->band.n_bitrates = ARRAY_SIZE(orinoco_rates); in orinoco_wiphy_register()
66 priv->band.channels = priv->channels; in orinoco_wiphy_register()
67 priv->band.n_channels = channels; in orinoco_wiphy_register()
69 wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in orinoco_wiphy_register()
177 if (chandef->chan->band != IEEE80211_BAND_2GHZ) in orinoco_set_monitor_channel()
/drivers/net/wireless/ath/ath5k/
Dpcu.c113 ath5k_hw_get_frame_duration(struct ath5k_hw *ah, enum ieee80211_band band, in ath5k_hw_get_frame_duration() argument
123 NULL, band, len, rate); in ath5k_hw_get_frame_duration()
222 if (channel->band == IEEE80211_BAND_5GHZ) in ath5k_hw_get_default_sifs()
280 u8 band = IEEE80211_BAND_2GHZ; in ath5k_hw_write_rate_duration() local
283 for (i = 0; i < ah->sbands[band].n_bitrates; i++) { in ath5k_hw_write_rate_duration()
288 rate = &ah->sbands[band].bitrates[ack_rates_high[i]]; in ath5k_hw_write_rate_duration()
291 rate = &ah->sbands[band].bitrates[0]; in ath5k_hw_write_rate_duration()
294 rate = &ah->sbands[band].bitrates[4]; in ath5k_hw_write_rate_duration()
305 tx_time = ath5k_hw_get_frame_duration(ah, band, 10, in ath5k_hw_write_rate_duration()
313 tx_time = ath5k_hw_get_frame_duration(ah, band, 10, rate, true); in ath5k_hw_write_rate_duration()
/drivers/net/wireless/brcm80211/brcmutil/
Dd11.c95 ch->band = BRCMU_CHAN_BAND_5G; in brcmu_d11n_decchspec()
98 ch->band = BRCMU_CHAN_BAND_2G; in brcmu_d11n_decchspec()
141 ch->band = BRCMU_CHAN_BAND_5G; in brcmu_d11ac_decchspec()
144 ch->band = BRCMU_CHAN_BAND_2G; in brcmu_d11ac_decchspec()
/drivers/net/wireless/ath/
Dregd.c193 enum ieee80211_band band; in ath_reg_apply_beaconing_flags() local
199 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in ath_reg_apply_beaconing_flags()
201 if (!wiphy->bands[band]) in ath_reg_apply_beaconing_flags()
204 sband = wiphy->bands[band]; in ath_reg_apply_beaconing_flags()
644 enum ieee80211_band band) in ath_regd_get_band_ctl() argument
652 switch (band) { in ath_regd_get_band_ctl()
/drivers/net/wireless/rtlwifi/
Dregd.c156 enum ieee80211_band band; in _rtl_reg_apply_beaconing_flags() local
162 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { in _rtl_reg_apply_beaconing_flags()
164 if (!wiphy->bands[band]) in _rtl_reg_apply_beaconing_flags()
167 sband = wiphy->bands[band]; in _rtl_reg_apply_beaconing_flags()

123456789