diff options
author | Nick Kossifidis <mickflemm@gmail.com> | 2011-11-25 13:40:29 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-28 14:44:21 -0500 |
commit | 29355a4877d7b3219318f0be5b3af55128a4f0ce (patch) | |
tree | 2e9c6ab0a7b6f731a225ede294da0639ee0f78d3 /drivers/net/wireless | |
parent | 86f62d9b705cdd4f04da5387a5c71ca6ee0a37c9 (diff) |
ath5k: ath5k_ani_period_restart only touches struct ath5k_ani_state
No need to take ath5k_hw as an argument.
Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ani.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ani.c b/drivers/net/wireless/ath/ath5k/ani.c index 2dfcf1ae19f6..bf674161a217 100644 --- a/drivers/net/wireless/ath/ath5k/ani.c +++ b/drivers/net/wireless/ath/ath5k/ani.c | |||
@@ -440,13 +440,12 @@ ath5k_ani_save_and_clear_phy_errors(struct ath5k_hw *ah, | |||
440 | 440 | ||
441 | /** | 441 | /** |
442 | * ath5k_ani_period_restart() - Restart ANI period | 442 | * ath5k_ani_period_restart() - Restart ANI period |
443 | * @ah: The &struct ath5k_hw | ||
444 | * @as: The &struct ath5k_ani_state | 443 | * @as: The &struct ath5k_ani_state |
445 | * | 444 | * |
446 | * Just reset counters, so they are clear for the next "ani period". | 445 | * Just reset counters, so they are clear for the next "ani period". |
447 | */ | 446 | */ |
448 | static void | 447 | static void |
449 | ath5k_ani_period_restart(struct ath5k_hw *ah, struct ath5k_ani_state *as) | 448 | ath5k_ani_period_restart(struct ath5k_ani_state *as) |
450 | { | 449 | { |
451 | /* keep last values for debugging */ | 450 | /* keep last values for debugging */ |
452 | as->last_ofdm_errors = as->ofdm_errors; | 451 | as->last_ofdm_errors = as->ofdm_errors; |
@@ -502,7 +501,7 @@ ath5k_ani_calibration(struct ath5k_hw *ah) | |||
502 | /* too many PHY errors - we have to raise immunity */ | 501 | /* too many PHY errors - we have to raise immunity */ |
503 | bool ofdm_flag = as->ofdm_errors > ofdm_high ? true : false; | 502 | bool ofdm_flag = as->ofdm_errors > ofdm_high ? true : false; |
504 | ath5k_ani_raise_immunity(ah, as, ofdm_flag); | 503 | ath5k_ani_raise_immunity(ah, as, ofdm_flag); |
505 | ath5k_ani_period_restart(ah, as); | 504 | ath5k_ani_period_restart(as); |
506 | 505 | ||
507 | } else if (as->listen_time > 5 * ATH5K_ANI_LISTEN_PERIOD) { | 506 | } else if (as->listen_time > 5 * ATH5K_ANI_LISTEN_PERIOD) { |
508 | /* If more than 5 (TODO: why 5?) periods have passed and we got | 507 | /* If more than 5 (TODO: why 5?) periods have passed and we got |
@@ -514,7 +513,7 @@ ath5k_ani_calibration(struct ath5k_hw *ah) | |||
514 | if (as->ofdm_errors <= ofdm_low && as->cck_errors <= cck_low) | 513 | if (as->ofdm_errors <= ofdm_low && as->cck_errors <= cck_low) |
515 | ath5k_ani_lower_immunity(ah, as); | 514 | ath5k_ani_lower_immunity(ah, as); |
516 | 515 | ||
517 | ath5k_ani_period_restart(ah, as); | 516 | ath5k_ani_period_restart(as); |
518 | } | 517 | } |
519 | } | 518 | } |
520 | 519 | ||