diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-08-07 01:23:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-07 09:49:43 -0400 |
commit | ea9880fb059e0e95d651eab6029f58e7c81b8602 (patch) | |
tree | ad170c08ef7cd13e638c26fc45e59d38aca46cf9 /drivers/net/wireless/ath9k/beacon.c | |
parent | 60b67f519213cf6d59236d065b0953962b56abca (diff) |
ath9k: Remove redundant data structure ath9k_txq_info
Use ath9k_tx_queue_info which contains the same elements,
and merge get/set functions of tx queue properties.
Also, fix whitespace damage in struct ath_softc.
Signed-off-by: Sujith Manoharan <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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/beacon.c b/drivers/net/wireless/ath9k/beacon.c index ba3dd253e96..6e6538b31a4 100644 --- a/drivers/net/wireless/ath9k/beacon.c +++ b/drivers/net/wireless/ath9k/beacon.c | |||
@@ -30,9 +30,9 @@ | |||
30 | static int ath_beaconq_config(struct ath_softc *sc) | 30 | static int ath_beaconq_config(struct ath_softc *sc) |
31 | { | 31 | { |
32 | struct ath_hal *ah = sc->sc_ah; | 32 | struct ath_hal *ah = sc->sc_ah; |
33 | struct ath9k_txq_info qi; | 33 | struct ath9k_tx_queue_info qi; |
34 | 34 | ||
35 | ath9k_hw_gettxqueueprops(ah, sc->sc_bhalq, &qi); | 35 | ath9k_hw_get_txq_props(ah, sc->sc_bhalq, &qi); |
36 | if (sc->sc_opmode == ATH9K_M_HOSTAP) { | 36 | if (sc->sc_opmode == ATH9K_M_HOSTAP) { |
37 | /* Always burst out beacon and CAB traffic. */ | 37 | /* Always burst out beacon and CAB traffic. */ |
38 | qi.tqi_aifs = 1; | 38 | qi.tqi_aifs = 1; |
@@ -45,7 +45,7 @@ static int ath_beaconq_config(struct ath_softc *sc) | |||
45 | qi.tqi_cwmax = sc->sc_beacon_qi.tqi_cwmax; | 45 | qi.tqi_cwmax = sc->sc_beacon_qi.tqi_cwmax; |
46 | } | 46 | } |
47 | 47 | ||
48 | if (!ath9k_hw_settxqueueprops(ah, sc->sc_bhalq, &qi)) { | 48 | if (!ath9k_hw_set_txq_props(ah, sc->sc_bhalq, &qi)) { |
49 | DPRINTF(sc, ATH_DBG_FATAL, | 49 | DPRINTF(sc, ATH_DBG_FATAL, |
50 | "%s: unable to update h/w beacon queue parameters\n", | 50 | "%s: unable to update h/w beacon queue parameters\n", |
51 | __func__); | 51 | __func__); |
@@ -335,7 +335,7 @@ static void ath_beacon_start_adhoc(struct ath_softc *sc, int if_id) | |||
335 | 335 | ||
336 | int ath_beaconq_setup(struct ath_hal *ah) | 336 | int ath_beaconq_setup(struct ath_hal *ah) |
337 | { | 337 | { |
338 | struct ath9k_txq_info qi; | 338 | struct ath9k_tx_queue_info qi; |
339 | 339 | ||
340 | memzero(&qi, sizeof(qi)); | 340 | memzero(&qi, sizeof(qi)); |
341 | qi.tqi_aifs = 1; | 341 | qi.tqi_aifs = 1; |