diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-02-09 02:57:26 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-13 13:45:10 -0500 |
commit | 2660b81a378ab227b78c4cc618453fa7e19a7c7b (patch) | |
tree | ea305af43f0e27c86538fecce6c9a4e0151dbc78 /drivers/net/wireless/ath9k/beacon.c | |
parent | f74df6fbe31561091bf42be0ed30232be2b9d3ac (diff) |
ath9k: Remove all the useless ah_ variable prefixes
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/beacon.c')
-rw-r--r-- | drivers/net/wireless/ath9k/beacon.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/ath9k/beacon.c b/drivers/net/wireless/ath9k/beacon.c index 19ec4e8791b4..2e2ef3529135 100644 --- a/drivers/net/wireless/ath9k/beacon.c +++ b/drivers/net/wireless/ath9k/beacon.c | |||
@@ -27,7 +27,7 @@ static int ath_beaconq_config(struct ath_softc *sc) | |||
27 | struct ath9k_tx_queue_info qi; | 27 | struct ath9k_tx_queue_info qi; |
28 | 28 | ||
29 | ath9k_hw_get_txq_props(ah, sc->beacon.beaconq, &qi); | 29 | ath9k_hw_get_txq_props(ah, sc->beacon.beaconq, &qi); |
30 | if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_AP) { | 30 | if (sc->sc_ah->opmode == NL80211_IFTYPE_AP) { |
31 | /* Always burst out beacon and CAB traffic. */ | 31 | /* Always burst out beacon and CAB traffic. */ |
32 | qi.tqi_aifs = 1; | 32 | qi.tqi_aifs = 1; |
33 | qi.tqi_cwmin = 0; | 33 | qi.tqi_cwmin = 0; |
@@ -82,8 +82,8 @@ static void ath_beacon_setup(struct ath_softc *sc, | |||
82 | 82 | ||
83 | flags = ATH9K_TXDESC_NOACK; | 83 | flags = ATH9K_TXDESC_NOACK; |
84 | 84 | ||
85 | if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_ADHOC && | 85 | if (sc->sc_ah->opmode == NL80211_IFTYPE_ADHOC && |
86 | (ah->ah_caps.hw_caps & ATH9K_HW_CAP_VEOL)) { | 86 | (ah->caps.hw_caps & ATH9K_HW_CAP_VEOL)) { |
87 | ds->ds_link = bf->bf_daddr; /* self-linked */ | 87 | ds->ds_link = bf->bf_daddr; /* self-linked */ |
88 | flags |= ATH9K_TXDESC_VEOL; | 88 | flags |= ATH9K_TXDESC_VEOL; |
89 | /* Let hardware handle antenna switching. */ | 89 | /* Let hardware handle antenna switching. */ |
@@ -310,8 +310,8 @@ int ath_beacon_alloc(struct ath_softc *sc, int if_id) | |||
310 | struct ath_buf, list); | 310 | struct ath_buf, list); |
311 | list_del(&avp->av_bcbuf->list); | 311 | list_del(&avp->av_bcbuf->list); |
312 | 312 | ||
313 | if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_AP || | 313 | if (sc->sc_ah->opmode == NL80211_IFTYPE_AP || |
314 | !(sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_VEOL)) { | 314 | !(sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_VEOL)) { |
315 | int slot; | 315 | int slot; |
316 | /* | 316 | /* |
317 | * Assign the vif to a beacon xmit slot. As | 317 | * Assign the vif to a beacon xmit slot. As |
@@ -631,7 +631,7 @@ void ath_beacon_config(struct ath_softc *sc, int if_id) | |||
631 | avp = (void *)vif->drv_priv; | 631 | avp = (void *)vif->drv_priv; |
632 | opmode = avp->av_opmode; | 632 | opmode = avp->av_opmode; |
633 | } else { | 633 | } else { |
634 | opmode = sc->sc_ah->ah_opmode; | 634 | opmode = sc->sc_ah->opmode; |
635 | } | 635 | } |
636 | 636 | ||
637 | memset(&conf, 0, sizeof(struct ath_beacon_config)); | 637 | memset(&conf, 0, sizeof(struct ath_beacon_config)); |
@@ -647,7 +647,7 @@ void ath_beacon_config(struct ath_softc *sc, int if_id) | |||
647 | nexttbtt = TSF_TO_TU(sc->beacon.bc_tstamp >> 32, sc->beacon.bc_tstamp); | 647 | nexttbtt = TSF_TO_TU(sc->beacon.bc_tstamp >> 32, sc->beacon.bc_tstamp); |
648 | 648 | ||
649 | /* XXX conditionalize multi-bss support? */ | 649 | /* XXX conditionalize multi-bss support? */ |
650 | if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_AP) { | 650 | if (sc->sc_ah->opmode == NL80211_IFTYPE_AP) { |
651 | /* | 651 | /* |
652 | * For multi-bss ap support beacons are either staggered | 652 | * For multi-bss ap support beacons are either staggered |
653 | * evenly over N slots or burst together. For the former | 653 | * evenly over N slots or burst together. For the former |
@@ -670,7 +670,7 @@ void ath_beacon_config(struct ath_softc *sc, int if_id) | |||
670 | nexttbtt, intval, conf.beacon_interval); | 670 | nexttbtt, intval, conf.beacon_interval); |
671 | 671 | ||
672 | /* Check for NL80211_IFTYPE_AP and sc_nostabeacons for WDS client */ | 672 | /* Check for NL80211_IFTYPE_AP and sc_nostabeacons for WDS client */ |
673 | if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_STATION) { | 673 | if (sc->sc_ah->opmode == NL80211_IFTYPE_STATION) { |
674 | struct ath9k_beacon_state bs; | 674 | struct ath9k_beacon_state bs; |
675 | u64 tsf; | 675 | u64 tsf; |
676 | u32 tsftu; | 676 | u32 tsftu; |
@@ -789,7 +789,7 @@ void ath_beacon_config(struct ath_softc *sc, int if_id) | |||
789 | ath9k_hw_set_interrupts(ah, 0); | 789 | ath9k_hw_set_interrupts(ah, 0); |
790 | if (nexttbtt == intval) | 790 | if (nexttbtt == intval) |
791 | intval |= ATH9K_BEACON_RESET_TSF; | 791 | intval |= ATH9K_BEACON_RESET_TSF; |
792 | if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_ADHOC) { | 792 | if (sc->sc_ah->opmode == NL80211_IFTYPE_ADHOC) { |
793 | /* | 793 | /* |
794 | * Pull nexttbtt forward to reflect the current | 794 | * Pull nexttbtt forward to reflect the current |
795 | * TSF | 795 | * TSF |
@@ -818,10 +818,10 @@ void ath_beacon_config(struct ath_softc *sc, int if_id) | |||
818 | * deal with things. | 818 | * deal with things. |
819 | */ | 819 | */ |
820 | intval |= ATH9K_BEACON_ENA; | 820 | intval |= ATH9K_BEACON_ENA; |
821 | if (!(ah->ah_caps.hw_caps & ATH9K_HW_CAP_VEOL)) | 821 | if (!(ah->caps.hw_caps & ATH9K_HW_CAP_VEOL)) |
822 | sc->imask |= ATH9K_INT_SWBA; | 822 | sc->imask |= ATH9K_INT_SWBA; |
823 | ath_beaconq_config(sc); | 823 | ath_beaconq_config(sc); |
824 | } else if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_AP) { | 824 | } else if (sc->sc_ah->opmode == NL80211_IFTYPE_AP) { |
825 | /* | 825 | /* |
826 | * In AP mode we enable the beacon timers and | 826 | * In AP mode we enable the beacon timers and |
827 | * SWBA interrupts to prepare beacon frames. | 827 | * SWBA interrupts to prepare beacon frames. |
@@ -837,8 +837,8 @@ void ath_beacon_config(struct ath_softc *sc, int if_id) | |||
837 | * When using a self-linked beacon descriptor in | 837 | * When using a self-linked beacon descriptor in |
838 | * ibss mode load it once here. | 838 | * ibss mode load it once here. |
839 | */ | 839 | */ |
840 | if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_ADHOC && | 840 | if (sc->sc_ah->opmode == NL80211_IFTYPE_ADHOC && |
841 | (ah->ah_caps.hw_caps & ATH9K_HW_CAP_VEOL)) | 841 | (ah->caps.hw_caps & ATH9K_HW_CAP_VEOL)) |
842 | ath_beacon_start_adhoc(sc, 0); | 842 | ath_beacon_start_adhoc(sc, 0); |
843 | } | 843 | } |
844 | } | 844 | } |