diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 3d946d8b2db2..d98fd421c7ec 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -268,15 +268,15 @@ static void ath5k_reg_notifier(struct wiphy *wiphy, | |||
268 | * Returns true for the channel numbers used. | 268 | * Returns true for the channel numbers used. |
269 | */ | 269 | */ |
270 | #ifdef CONFIG_ATH5K_TEST_CHANNELS | 270 | #ifdef CONFIG_ATH5K_TEST_CHANNELS |
271 | static bool ath5k_is_standard_channel(short chan, enum ieee80211_band band) | 271 | static bool ath5k_is_standard_channel(short chan, enum nl80211_band band) |
272 | { | 272 | { |
273 | return true; | 273 | return true; |
274 | } | 274 | } |
275 | 275 | ||
276 | #else | 276 | #else |
277 | static bool ath5k_is_standard_channel(short chan, enum ieee80211_band band) | 277 | static bool ath5k_is_standard_channel(short chan, enum nl80211_band band) |
278 | { | 278 | { |
279 | if (band == IEEE80211_BAND_2GHZ && chan <= 14) | 279 | if (band == NL80211_BAND_2GHZ && chan <= 14) |
280 | return true; | 280 | return true; |
281 | 281 | ||
282 | return /* UNII 1,2 */ | 282 | return /* UNII 1,2 */ |
@@ -297,18 +297,18 @@ ath5k_setup_channels(struct ath5k_hw *ah, struct ieee80211_channel *channels, | |||
297 | unsigned int mode, unsigned int max) | 297 | unsigned int mode, unsigned int max) |
298 | { | 298 | { |
299 | unsigned int count, size, freq, ch; | 299 | unsigned int count, size, freq, ch; |
300 | enum ieee80211_band band; | 300 | enum nl80211_band band; |
301 | 301 | ||
302 | switch (mode) { | 302 | switch (mode) { |
303 | case AR5K_MODE_11A: | 303 | case AR5K_MODE_11A: |
304 | /* 1..220, but 2GHz frequencies are filtered by check_channel */ | 304 | /* 1..220, but 2GHz frequencies are filtered by check_channel */ |
305 | size = 220; | 305 | size = 220; |
306 | band = IEEE80211_BAND_5GHZ; | 306 | band = NL80211_BAND_5GHZ; |
307 | break; | 307 | break; |
308 | case AR5K_MODE_11B: | 308 | case AR5K_MODE_11B: |
309 | case AR5K_MODE_11G: | 309 | case AR5K_MODE_11G: |
310 | size = 26; | 310 | size = 26; |
311 | band = IEEE80211_BAND_2GHZ; | 311 | band = NL80211_BAND_2GHZ; |
312 | break; | 312 | break; |
313 | default: | 313 | default: |
314 | ATH5K_WARN(ah, "bad mode, not copying channels\n"); | 314 | ATH5K_WARN(ah, "bad mode, not copying channels\n"); |
@@ -363,13 +363,13 @@ ath5k_setup_bands(struct ieee80211_hw *hw) | |||
363 | int max_c, count_c = 0; | 363 | int max_c, count_c = 0; |
364 | int i; | 364 | int i; |
365 | 365 | ||
366 | BUILD_BUG_ON(ARRAY_SIZE(ah->sbands) < IEEE80211_NUM_BANDS); | 366 | BUILD_BUG_ON(ARRAY_SIZE(ah->sbands) < NUM_NL80211_BANDS); |
367 | max_c = ARRAY_SIZE(ah->channels); | 367 | max_c = ARRAY_SIZE(ah->channels); |
368 | 368 | ||
369 | /* 2GHz band */ | 369 | /* 2GHz band */ |
370 | sband = &ah->sbands[IEEE80211_BAND_2GHZ]; | 370 | sband = &ah->sbands[NL80211_BAND_2GHZ]; |
371 | sband->band = IEEE80211_BAND_2GHZ; | 371 | sband->band = NL80211_BAND_2GHZ; |
372 | sband->bitrates = &ah->rates[IEEE80211_BAND_2GHZ][0]; | 372 | sband->bitrates = &ah->rates[NL80211_BAND_2GHZ][0]; |
373 | 373 | ||
374 | if (test_bit(AR5K_MODE_11G, ah->ah_capabilities.cap_mode)) { | 374 | if (test_bit(AR5K_MODE_11G, ah->ah_capabilities.cap_mode)) { |
375 | /* G mode */ | 375 | /* G mode */ |
@@ -381,7 +381,7 @@ ath5k_setup_bands(struct ieee80211_hw *hw) | |||
381 | sband->n_channels = ath5k_setup_channels(ah, sband->channels, | 381 | sband->n_channels = ath5k_setup_channels(ah, sband->channels, |
382 | AR5K_MODE_11G, max_c); | 382 | AR5K_MODE_11G, max_c); |
383 | 383 | ||
384 | hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; | 384 | hw->wiphy->bands[NL80211_BAND_2GHZ] = sband; |
385 | count_c = sband->n_channels; | 385 | count_c = sband->n_channels; |
386 | max_c -= count_c; | 386 | max_c -= count_c; |
387 | } else if (test_bit(AR5K_MODE_11B, ah->ah_capabilities.cap_mode)) { | 387 | } else if (test_bit(AR5K_MODE_11B, ah->ah_capabilities.cap_mode)) { |
@@ -407,7 +407,7 @@ ath5k_setup_bands(struct ieee80211_hw *hw) | |||
407 | sband->n_channels = ath5k_setup_channels(ah, sband->channels, | 407 | sband->n_channels = ath5k_setup_channels(ah, sband->channels, |
408 | AR5K_MODE_11B, max_c); | 408 | AR5K_MODE_11B, max_c); |
409 | 409 | ||
410 | hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; | 410 | hw->wiphy->bands[NL80211_BAND_2GHZ] = sband; |
411 | count_c = sband->n_channels; | 411 | count_c = sband->n_channels; |
412 | max_c -= count_c; | 412 | max_c -= count_c; |
413 | } | 413 | } |
@@ -415,9 +415,9 @@ ath5k_setup_bands(struct ieee80211_hw *hw) | |||
415 | 415 | ||
416 | /* 5GHz band, A mode */ | 416 | /* 5GHz band, A mode */ |
417 | if (test_bit(AR5K_MODE_11A, ah->ah_capabilities.cap_mode)) { | 417 | if (test_bit(AR5K_MODE_11A, ah->ah_capabilities.cap_mode)) { |
418 | sband = &ah->sbands[IEEE80211_BAND_5GHZ]; | 418 | sband = &ah->sbands[NL80211_BAND_5GHZ]; |
419 | sband->band = IEEE80211_BAND_5GHZ; | 419 | sband->band = NL80211_BAND_5GHZ; |
420 | sband->bitrates = &ah->rates[IEEE80211_BAND_5GHZ][0]; | 420 | sband->bitrates = &ah->rates[NL80211_BAND_5GHZ][0]; |
421 | 421 | ||
422 | memcpy(sband->bitrates, &ath5k_rates[4], | 422 | memcpy(sband->bitrates, &ath5k_rates[4], |
423 | sizeof(struct ieee80211_rate) * 8); | 423 | sizeof(struct ieee80211_rate) * 8); |
@@ -427,7 +427,7 @@ ath5k_setup_bands(struct ieee80211_hw *hw) | |||
427 | sband->n_channels = ath5k_setup_channels(ah, sband->channels, | 427 | sband->n_channels = ath5k_setup_channels(ah, sband->channels, |
428 | AR5K_MODE_11A, max_c); | 428 | AR5K_MODE_11A, max_c); |
429 | 429 | ||
430 | hw->wiphy->bands[IEEE80211_BAND_5GHZ] = sband; | 430 | hw->wiphy->bands[NL80211_BAND_5GHZ] = sband; |
431 | } | 431 | } |
432 | ath5k_setup_rate_idx(ah, sband); | 432 | ath5k_setup_rate_idx(ah, sband); |
433 | 433 | ||