Lines Matching +full:channel +full:- +full:use

2  * Copyright (c) 2008-2011 Atheros Communications Inc.
4 * Permission to use, copy, modify, and/or distribute this software for any
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 /* We use the hw_value as an index into our private channel structure */
35 /* Some 2 GHz radios are actually tunable on 2312-2732
40 CHAN2G(2412, 0), /* Channel 1 */
41 CHAN2G(2417, 1), /* Channel 2 */
42 CHAN2G(2422, 2), /* Channel 3 */
43 CHAN2G(2427, 3), /* Channel 4 */
44 CHAN2G(2432, 4), /* Channel 5 */
45 CHAN2G(2437, 5), /* Channel 6 */
46 CHAN2G(2442, 6), /* Channel 7 */
47 CHAN2G(2447, 7), /* Channel 8 */
48 CHAN2G(2452, 8), /* Channel 9 */
49 CHAN2G(2457, 9), /* Channel 10 */
50 CHAN2G(2462, 10), /* Channel 11 */
51 CHAN2G(2467, 11), /* Channel 12 */
52 CHAN2G(2472, 12), /* Channel 13 */
53 CHAN2G(2484, 13), /* Channel 14 */
56 /* Some 5 GHz radios are actually tunable on XXXX-YYYY
62 CHAN5G(5180, 14), /* Channel 36 */
63 CHAN5G(5200, 15), /* Channel 40 */
64 CHAN5G(5220, 16), /* Channel 44 */
65 CHAN5G(5240, 17), /* Channel 48 */
67 CHAN5G(5260, 18), /* Channel 52 */
68 CHAN5G(5280, 19), /* Channel 56 */
69 CHAN5G(5300, 20), /* Channel 60 */
70 CHAN5G(5320, 21), /* Channel 64 */
72 CHAN5G(5500, 22), /* Channel 100 */
73 CHAN5G(5520, 23), /* Channel 104 */
74 CHAN5G(5540, 24), /* Channel 108 */
75 CHAN5G(5560, 25), /* Channel 112 */
76 CHAN5G(5580, 26), /* Channel 116 */
77 CHAN5G(5600, 27), /* Channel 120 */
78 CHAN5G(5620, 28), /* Channel 124 */
79 CHAN5G(5640, 29), /* Channel 128 */
80 CHAN5G(5660, 30), /* Channel 132 */
81 CHAN5G(5680, 31), /* Channel 136 */
82 CHAN5G(5700, 32), /* Channel 140 */
84 CHAN5G(5745, 33), /* Channel 149 */
85 CHAN5G(5765, 34), /* Channel 153 */
86 CHAN5G(5785, 35), /* Channel 157 */
87 CHAN5G(5805, 36), /* Channel 161 */
88 CHAN5G(5825, 37), /* Channel 165 */
127 struct ath_hw *ah = common->ah; in ath9k_cmn_init_channels_rates()
134 if (ah->caps.hw_caps & ATH9K_HW_CAP_2GHZ) { in ath9k_cmn_init_channels_rates()
135 channels = devm_kzalloc(ah->dev, in ath9k_cmn_init_channels_rates()
138 return -ENOMEM; in ath9k_cmn_init_channels_rates()
142 common->sbands[NL80211_BAND_2GHZ].channels = channels; in ath9k_cmn_init_channels_rates()
143 common->sbands[NL80211_BAND_2GHZ].band = NL80211_BAND_2GHZ; in ath9k_cmn_init_channels_rates()
144 common->sbands[NL80211_BAND_2GHZ].n_channels = in ath9k_cmn_init_channels_rates()
146 common->sbands[NL80211_BAND_2GHZ].bitrates = ath9k_legacy_rates; in ath9k_cmn_init_channels_rates()
147 common->sbands[NL80211_BAND_2GHZ].n_bitrates = in ath9k_cmn_init_channels_rates()
151 if (ah->caps.hw_caps & ATH9K_HW_CAP_5GHZ) { in ath9k_cmn_init_channels_rates()
152 channels = devm_kzalloc(ah->dev, in ath9k_cmn_init_channels_rates()
155 return -ENOMEM; in ath9k_cmn_init_channels_rates()
159 common->sbands[NL80211_BAND_5GHZ].channels = channels; in ath9k_cmn_init_channels_rates()
160 common->sbands[NL80211_BAND_5GHZ].band = NL80211_BAND_5GHZ; in ath9k_cmn_init_channels_rates()
161 common->sbands[NL80211_BAND_5GHZ].n_channels = in ath9k_cmn_init_channels_rates()
163 common->sbands[NL80211_BAND_5GHZ].bitrates = in ath9k_cmn_init_channels_rates()
165 common->sbands[NL80211_BAND_5GHZ].n_bitrates = in ath9k_cmn_init_channels_rates()
166 ARRAY_SIZE(ath9k_legacy_rates) - 4; in ath9k_cmn_init_channels_rates()
179 ht_info->ht_supported = true; in ath9k_cmn_setup_ht_cap()
180 ht_info->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in ath9k_cmn_setup_ht_cap()
185 if (ah->caps.hw_caps & ATH9K_HW_CAP_LDPC) in ath9k_cmn_setup_ht_cap()
186 ht_info->cap |= IEEE80211_HT_CAP_LDPC_CODING; in ath9k_cmn_setup_ht_cap()
188 if (ah->caps.hw_caps & ATH9K_HW_CAP_SGI_20) in ath9k_cmn_setup_ht_cap()
189 ht_info->cap |= IEEE80211_HT_CAP_SGI_20; in ath9k_cmn_setup_ht_cap()
191 ht_info->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in ath9k_cmn_setup_ht_cap()
192 ht_info->ampdu_density = IEEE80211_HT_MPDU_DENSITY_8; in ath9k_cmn_setup_ht_cap()
205 ht_info->cap |= IEEE80211_HT_CAP_TX_STBC; in ath9k_cmn_setup_ht_cap()
206 ht_info->cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT); in ath9k_cmn_setup_ht_cap()
210 memset(&ht_info->mcs, 0, sizeof(ht_info->mcs)); in ath9k_cmn_setup_ht_cap()
211 tx_streams = ath9k_cmn_count_streams(ah->txchainmask, max_streams); in ath9k_cmn_setup_ht_cap()
212 rx_streams = ath9k_cmn_count_streams(ah->rxchainmask, max_streams); in ath9k_cmn_setup_ht_cap()
218 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF; in ath9k_cmn_setup_ht_cap()
219 ht_info->mcs.tx_params |= ((tx_streams - 1) << in ath9k_cmn_setup_ht_cap()
224 ht_info->mcs.rx_mask[i] = 0xff; in ath9k_cmn_setup_ht_cap()
226 ht_info->mcs.tx_params |= IEEE80211_HT_MCS_TX_DEFINED; in ath9k_cmn_setup_ht_cap()
234 if (!(ah->caps.hw_caps & ATH9K_HW_CAP_HT)) in ath9k_cmn_reload_chainmask()
237 if (ah->caps.hw_caps & ATH9K_HW_CAP_2GHZ) in ath9k_cmn_reload_chainmask()
239 &common->sbands[NL80211_BAND_2GHZ].ht_cap); in ath9k_cmn_reload_chainmask()
240 if (ah->caps.hw_caps & ATH9K_HW_CAP_5GHZ) in ath9k_cmn_reload_chainmask()
242 &common->sbands[NL80211_BAND_5GHZ].ht_cap); in ath9k_cmn_reload_chainmask()