aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2011-01-19 04:20:47 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-01-21 15:34:18 -0500
commit0810569076c1f3cf4a82da40211dd0b07b3ad07e (patch)
treec934ba61be5798e9c463226078f7aa1965a1c3ea
parent90c02d72ffbec3804f48c517ecfc72f9440a67b3 (diff)
ath5k: Rename ath5k_copy_channels
Rename ath5k_copy_channels() to ath5k_setup_channels() - nothing is copied here. Signed-off-by: Bruno Randolf <br1@einfach.org> Acked-by: Bob Copeland <me@bobcopeland.com> Acked-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index c0177587856b..6ff30d3833ee 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -256,7 +256,7 @@ static bool ath5k_is_standard_channel(short chan)
256} 256}
257 257
258static unsigned int 258static unsigned int
259ath5k_copy_channels(struct ath5k_hw *ah, 259ath5k_setup_channels(struct ath5k_hw *ah,
260 struct ieee80211_channel *channels, 260 struct ieee80211_channel *channels,
261 unsigned int mode, 261 unsigned int mode,
262 unsigned int max) 262 unsigned int max)
@@ -357,7 +357,7 @@ ath5k_setup_bands(struct ieee80211_hw *hw)
357 sband->n_bitrates = 12; 357 sband->n_bitrates = 12;
358 358
359 sband->channels = sc->channels; 359 sband->channels = sc->channels;
360 sband->n_channels = ath5k_copy_channels(ah, sband->channels, 360 sband->n_channels = ath5k_setup_channels(ah, sband->channels,
361 AR5K_MODE_11G, max_c); 361 AR5K_MODE_11G, max_c);
362 362
363 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; 363 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband;
@@ -383,7 +383,7 @@ ath5k_setup_bands(struct ieee80211_hw *hw)
383 } 383 }
384 384
385 sband->channels = sc->channels; 385 sband->channels = sc->channels;
386 sband->n_channels = ath5k_copy_channels(ah, sband->channels, 386 sband->n_channels = ath5k_setup_channels(ah, sband->channels,
387 AR5K_MODE_11B, max_c); 387 AR5K_MODE_11B, max_c);
388 388
389 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband; 389 hw->wiphy->bands[IEEE80211_BAND_2GHZ] = sband;
@@ -403,7 +403,7 @@ ath5k_setup_bands(struct ieee80211_hw *hw)
403 sband->n_bitrates = 8; 403 sband->n_bitrates = 8;
404 404
405 sband->channels = &sc->channels[count_c]; 405 sband->channels = &sc->channels[count_c];
406 sband->n_channels = ath5k_copy_channels(ah, sband->channels, 406 sband->n_channels = ath5k_setup_channels(ah, sband->channels,
407 AR5K_MODE_11A, max_c); 407 AR5K_MODE_11A, max_c);
408 408
409 hw->wiphy->bands[IEEE80211_BAND_5GHZ] = sband; 409 hw->wiphy->bands[IEEE80211_BAND_5GHZ] = sband;