diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath9k/ani.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath9k/ani.c b/drivers/net/wireless/ath9k/ani.c index 4dd086073ad9..42197fff2a47 100644 --- a/drivers/net/wireless/ath9k/ani.c +++ b/drivers/net/wireless/ath9k/ani.c | |||
@@ -551,6 +551,9 @@ void ath9k_hw_ani_monitor(struct ath_hal *ah, | |||
551 | struct ar5416AniState *aniState; | 551 | struct ar5416AniState *aniState; |
552 | int32_t listenTime; | 552 | int32_t listenTime; |
553 | 553 | ||
554 | if (!DO_ANI(ah)) | ||
555 | return; | ||
556 | |||
554 | aniState = ahp->ah_curani; | 557 | aniState = ahp->ah_curani; |
555 | ahp->ah_stats.ast_nodestats = *stats; | 558 | ahp->ah_stats.ast_nodestats = *stats; |
556 | 559 | ||
@@ -610,9 +613,6 @@ void ath9k_hw_ani_monitor(struct ath_hal *ah, | |||
610 | aniState->cckPhyErrCount = cckPhyErrCnt; | 613 | aniState->cckPhyErrCount = cckPhyErrCnt; |
611 | } | 614 | } |
612 | 615 | ||
613 | if (!DO_ANI(ah)) | ||
614 | return; | ||
615 | |||
616 | if (aniState->listenTime > 5 * ahp->ah_aniPeriod) { | 616 | if (aniState->listenTime > 5 * ahp->ah_aniPeriod) { |
617 | if (aniState->ofdmPhyErrCount <= aniState->listenTime * | 617 | if (aniState->ofdmPhyErrCount <= aniState->listenTime * |
618 | aniState->ofdmTrigLow / 1000 && | 618 | aniState->ofdmTrigLow / 1000 && |