Home
last modified time | relevance | path

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

/drivers/net/wireless/iwlwifi/
Diwl-3945-rs.c338 static void rs_rate_init(void *priv_r, struct ieee80211_supported_band *sband, in rs_rate_init() argument
352 for (i = sband->n_bitrates - 1; i >= 0; i--) { in rs_rate_init()
353 if (sta->supp_rates[sband->band] & (1 << i)) { in rs_rate_init()
359 priv->sta_supp_rates = sta->supp_rates[sband->band]; in rs_rate_init()
361 if (sband->band == IEEE80211_BAND_5GHZ) { in rs_rate_init()
449 static void rs_tx_status(void *priv_rate, struct ieee80211_supported_band *sband, in rs_tx_status() argument
464 first_index = sband->bitrates[info->status.rates[0].idx].hw_value; in rs_tx_status()
626 struct ieee80211_supported_band *sband = txrc->sband; in rs_get_rate() local
649 rate_mask = sta->supp_rates[sband->band]; in rs_get_rate()
660 rate_lowest_index(sband, NULL); in rs_get_rate()
[all …]
Diwl-scan.c337 const struct ieee80211_supported_band *sband; in iwl_get_channels_for_scan() local
344 sband = iwl_get_hw_mode(priv, band); in iwl_get_channels_for_scan()
345 if (!sband) in iwl_get_channels_for_scan()
348 channels = sband->channels; in iwl_get_channels_for_scan()
356 for (i = 0, added = 0; i < sband->n_channels; i++) { in iwl_get_channels_for_scan()
503 static void iwl_ht_cap_to_ie(const struct ieee80211_supported_band *sband, in iwl_ht_cap_to_ie() argument
508 if (!sband || !sband->ht_cap.ht_supported) in iwl_ht_cap_to_ie()
517 ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); in iwl_ht_cap_to_ie()
518 memcpy(&ht_cap->mcs, &sband->ht_cap.mcs, 16); in iwl_ht_cap_to_ie()
520 (sband->ht_cap.ampdu_factor & IEEE80211_HT_AMPDU_PARM_FACTOR) | in iwl_ht_cap_to_ie()
[all …]
Diwl-core.c411 struct ieee80211_supported_band *sband; in iwlcore_init_geos() local
437 sband = &priv->bands[IEEE80211_BAND_5GHZ]; in iwlcore_init_geos()
438 sband->channels = &channels[ARRAY_SIZE(iwl_eeprom_band_1)]; in iwlcore_init_geos()
440 sband->bitrates = &rates[IWL_FIRST_OFDM_RATE]; in iwlcore_init_geos()
441 sband->n_bitrates = IWL_RATE_COUNT - IWL_FIRST_OFDM_RATE; in iwlcore_init_geos()
444 iwlcore_init_ht_hw_capab(priv, &sband->ht_cap, in iwlcore_init_geos()
447 sband = &priv->bands[IEEE80211_BAND_2GHZ]; in iwlcore_init_geos()
448 sband->channels = channels; in iwlcore_init_geos()
450 sband->bitrates = rates; in iwlcore_init_geos()
451 sband->n_bitrates = IWL_RATE_COUNT; in iwlcore_init_geos()
[all …]
Diwl-agn-rs.c767 static void rs_tx_status(void *priv_r, struct ieee80211_supported_band *sband, in rs_tx_status() argument
947 if (sta && sta->supp_rates[sband->band]) in rs_tx_status()
2098 struct ieee80211_supported_band *sband = txrc->sband; in rs_get_rate() local
2110 mask_bit = sta->supp_rates[sband->band]; in rs_get_rate()
2118 rate_lowest_index(sband, NULL); in rs_get_rate()
2121 rate_lowest_index(sband, sta); in rs_get_rate()
2146 rate_idx = rate_lowest_index(sband, sta); in rs_get_rate()
2147 else if (sband->band == IEEE80211_BAND_5GHZ) in rs_get_rate()
2177 static void rs_rate_init(void *priv_r, struct ieee80211_supported_band *sband, in rs_rate_init() argument
2187 lq_sta->supp_rates = sta->supp_rates[sband->band]; in rs_rate_init()
[all …]
Diwl3945-base.c2679 const struct ieee80211_supported_band *sband = NULL; in iwl3945_set_rate() local
2683 sband = iwl3945_get_band(priv, priv->band); in iwl3945_set_rate()
2684 if (!sband) { in iwl3945_set_rate()
2693 sband->band == IEEE80211_BAND_2GHZ ? "2.4" : "5"); in iwl3945_set_rate()
2695 for (i = 0; i < sband->n_bitrates; i++) { in iwl3945_set_rate()
2696 rate = &sband->bitrates[i]; in iwl3945_set_rate()
4750 const struct ieee80211_supported_band *sband; in iwl3945_get_channels_for_scan() local
4756 sband = iwl3945_get_band(priv, band); in iwl3945_get_channels_for_scan()
4757 if (!sband) in iwl3945_get_channels_for_scan()
4760 channels = sband->channels; in iwl3945_get_channels_for_scan()
[all …]
/drivers/net/wireless/ath5k/
Dbase.c949 struct ieee80211_supported_band *sband; in ath5k_setup_bands() local
957 sband = &sc->sbands[IEEE80211_BAND_2GHZ]; in ath5k_setup_bands()
958 sband->band = IEEE80211_BAND_2GHZ; in ath5k_setup_bands()
959 sband->bitrates = &sc->rates[IEEE80211_BAND_2GHZ][0]; in ath5k_setup_bands()
963 memcpy(sband->bitrates, &ath5k_rates[0], in ath5k_setup_bands()
965 sband->n_bitrates = 12; in ath5k_setup_bands()
967 sband->channels = sc->channels; in ath5k_setup_bands()
968 sband->n_channels = ath5k_copy_channels(ah, sband->channels, in ath5k_setup_bands()
971 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; in ath5k_setup_bands()
972 count_c = sband->n_channels; in ath5k_setup_bands()
[all …]
/drivers/net/wireless/ath9k/
Drc.c1340 struct ieee80211_supported_band *sband, in ath_rc_init() argument
1352 rate_table = ath_choose_rate_table(sc, sband->band, in ath_rc_init()
1438 static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband, in ath_tx_status() argument
1490 struct ieee80211_supported_band *sband = txrc->sband; in ath_get_rate() local
1503 tx_info->control.rates[0].idx = rate_lowest_index(sband, sta); in ath_get_rate()
1529 static void ath_rate_init(void *priv, struct ieee80211_supported_band *sband, in ath_rate_init() argument
1536 for (i = 0; i < sband->n_bitrates; i++) { in ath_rate_init()
1537 if (sta->supp_rates[sband->band] & BIT(i)) { in ath_rate_init()
1539 = (sband->bitrates[i].bitrate * 2) / 10; in ath_rate_init()
1555 ath_rc_init(sc, priv_sta, sband, sta); in ath_rate_init()
Dmain.c150 struct ieee80211_supported_band *sband; in ath_setup_rates() local
168 sband = &sc->sbands[band]; in ath_setup_rates()
179 sband->n_bitrates++; in ath_setup_rates()
/drivers/net/wireless/rt2x00/
Drt2x00dev.c599 struct ieee80211_supported_band *sband; in rt2x00lib_rxdone() local
656 sband = &rt2x00dev->bands[rt2x00dev->curr_band]; in rt2x00lib_rxdone()
657 for (i = 0; i < sband->n_bitrates; i++) { in rt2x00lib_rxdone()
658 rate = rt2x00_get_rate(sband->bitrates[i].hw_value); in rt2x00lib_rxdone()
/drivers/net/wireless/b43legacy/
Dmain.c2655 struct ieee80211_supported_band *sband = in b43legacy_update_basic_rates() local
2661 for (i = 0; i < sband->n_bitrates; i++) { in b43legacy_update_basic_rates()
2662 rate = &sband->bitrates[i]; in b43legacy_update_basic_rates()
2676 rate = ieee80211_get_response_rate(sband, brates, rate->bitrate); in b43legacy_update_basic_rates()
/drivers/net/wireless/b43/
Dmain.c3447 struct ieee80211_supported_band *sband = in b43_update_basic_rates() local
3453 for (i = 0; i < sband->n_bitrates; i++) { in b43_update_basic_rates()
3454 rate = &sband->bitrates[i]; in b43_update_basic_rates()
3468 rate = ieee80211_get_response_rate(sband, brates, rate->bitrate); in b43_update_basic_rates()