diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/ani.c')
-rw-r--r-- | drivers/net/wireless/ath9k/ani.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath9k/ani.c b/drivers/net/wireless/ath9k/ani.c index c25b72be113..251e2d9a7a4 100644 --- a/drivers/net/wireless/ath9k/ani.c +++ b/drivers/net/wireless/ath9k/ani.c | |||
@@ -303,7 +303,7 @@ static void ath9k_hw_ani_ofdm_err_trigger(struct ath_hal *ah) | |||
303 | } | 303 | } |
304 | } | 304 | } |
305 | 305 | ||
306 | if (ah->ah_opmode == ATH9K_M_HOSTAP) { | 306 | if (ah->ah_opmode == NL80211_IFTYPE_AP) { |
307 | if (aniState->firstepLevel < HAL_FIRST_STEP_MAX) { | 307 | if (aniState->firstepLevel < HAL_FIRST_STEP_MAX) { |
308 | ath9k_hw_ani_control(ah, ATH9K_ANI_FIRSTEP_LEVEL, | 308 | ath9k_hw_ani_control(ah, ATH9K_ANI_FIRSTEP_LEVEL, |
309 | aniState->firstepLevel + 1); | 309 | aniState->firstepLevel + 1); |
@@ -368,7 +368,7 @@ static void ath9k_hw_ani_cck_err_trigger(struct ath_hal *ah) | |||
368 | return; | 368 | return; |
369 | } | 369 | } |
370 | } | 370 | } |
371 | if (ah->ah_opmode == ATH9K_M_HOSTAP) { | 371 | if (ah->ah_opmode == NL80211_IFTYPE_AP) { |
372 | if (aniState->firstepLevel < HAL_FIRST_STEP_MAX) { | 372 | if (aniState->firstepLevel < HAL_FIRST_STEP_MAX) { |
373 | ath9k_hw_ani_control(ah, ATH9K_ANI_FIRSTEP_LEVEL, | 373 | ath9k_hw_ani_control(ah, ATH9K_ANI_FIRSTEP_LEVEL, |
374 | aniState->firstepLevel + 1); | 374 | aniState->firstepLevel + 1); |
@@ -398,7 +398,7 @@ static void ath9k_hw_ani_lower_immunity(struct ath_hal *ah) | |||
398 | 398 | ||
399 | aniState = ahp->ah_curani; | 399 | aniState = ahp->ah_curani; |
400 | 400 | ||
401 | if (ah->ah_opmode == ATH9K_M_HOSTAP) { | 401 | if (ah->ah_opmode == NL80211_IFTYPE_AP) { |
402 | if (aniState->firstepLevel > 0) { | 402 | if (aniState->firstepLevel > 0) { |
403 | if (ath9k_hw_ani_control(ah, ATH9K_ANI_FIRSTEP_LEVEL, | 403 | if (ath9k_hw_ani_control(ah, ATH9K_ANI_FIRSTEP_LEVEL, |
404 | aniState->firstepLevel - 1)) | 404 | aniState->firstepLevel - 1)) |
@@ -487,8 +487,8 @@ void ath9k_ani_reset(struct ath_hal *ah) | |||
487 | aniState = &ahp->ah_ani[index]; | 487 | aniState = &ahp->ah_ani[index]; |
488 | ahp->ah_curani = aniState; | 488 | ahp->ah_curani = aniState; |
489 | 489 | ||
490 | if (DO_ANI(ah) && ah->ah_opmode != ATH9K_M_STA | 490 | if (DO_ANI(ah) && ah->ah_opmode != NL80211_IFTYPE_STATION |
491 | && ah->ah_opmode != ATH9K_M_IBSS) { | 491 | && ah->ah_opmode != NL80211_IFTYPE_ADHOC) { |
492 | DPRINTF(ah->ah_sc, ATH_DBG_ANI, | 492 | DPRINTF(ah->ah_sc, ATH_DBG_ANI, |
493 | "Reset ANI state opmode %u\n", ah->ah_opmode); | 493 | "Reset ANI state opmode %u\n", ah->ah_opmode); |
494 | ahp->ah_stats.ast_ani_reset++; | 494 | ahp->ah_stats.ast_ani_reset++; |
@@ -504,7 +504,7 @@ void ath9k_ani_reset(struct ath_hal *ah) | |||
504 | ath9k_hw_setrxfilter(ah, ath9k_hw_getrxfilter(ah) | | 504 | ath9k_hw_setrxfilter(ah, ath9k_hw_getrxfilter(ah) | |
505 | ATH9K_RX_FILTER_PHYERR); | 505 | ATH9K_RX_FILTER_PHYERR); |
506 | 506 | ||
507 | if (ah->ah_opmode == ATH9K_M_HOSTAP) { | 507 | if (ah->ah_opmode == NL80211_IFTYPE_AP) { |
508 | ahp->ah_curani->ofdmTrigHigh = | 508 | ahp->ah_curani->ofdmTrigHigh = |
509 | ah->ah_config.ofdm_trig_high; | 509 | ah->ah_config.ofdm_trig_high; |
510 | ahp->ah_curani->ofdmTrigLow = | 510 | ahp->ah_curani->ofdmTrigLow = |