diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-10-06 21:19:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:53 -0400 |
commit | 536b3a7a10c8fd39576a0602bfeca9bbd04658a6 (patch) | |
tree | d6a293e32b9ec406cf686a81e50417b8eea8eada /drivers/net/wireless | |
parent | bd96d3909549a0c09388987810e3e81397b500a9 (diff) |
ath9k: rename ath_beaconq_setup() to ath9k_hw_beaconq_setup()
And move it to hw code on mac.c where it belongs.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/beacon.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/mac.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/mac.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
5 files changed, 15 insertions, 14 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 14ff38d1f67c..13dd0202d6b5 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -421,7 +421,6 @@ struct ath_beacon { | |||
421 | 421 | ||
422 | void ath_beacon_tasklet(unsigned long data); | 422 | void ath_beacon_tasklet(unsigned long data); |
423 | void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif); | 423 | void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif); |
424 | int ath_beaconq_setup(struct ath_hw *ah); | ||
425 | int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif); | 424 | int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif); |
426 | void ath_beacon_return(struct ath_softc *sc, struct ath_vif *avp); | 425 | void ath_beacon_return(struct ath_softc *sc, struct ath_vif *avp); |
427 | 426 | ||
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c index 54be876639a0..b10c884f2933 100644 --- a/drivers/net/wireless/ath/ath9k/beacon.c +++ b/drivers/net/wireless/ath/ath9k/beacon.c | |||
@@ -242,18 +242,6 @@ static void ath_beacon_start_adhoc(struct ath_softc *sc, | |||
242 | sc->beacon.beaconq, ito64(bf->bf_daddr), bf->bf_desc); | 242 | sc->beacon.beaconq, ito64(bf->bf_daddr), bf->bf_desc); |
243 | } | 243 | } |
244 | 244 | ||
245 | int ath_beaconq_setup(struct ath_hw *ah) | ||
246 | { | ||
247 | struct ath9k_tx_queue_info qi; | ||
248 | |||
249 | memset(&qi, 0, sizeof(qi)); | ||
250 | qi.tqi_aifs = 1; | ||
251 | qi.tqi_cwmin = 0; | ||
252 | qi.tqi_cwmax = 0; | ||
253 | /* NB: don't enable any interrupts */ | ||
254 | return ath9k_hw_setuptxqueue(ah, ATH9K_TX_QUEUE_BEACON, &qi); | ||
255 | } | ||
256 | |||
257 | int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif) | 245 | int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif) |
258 | { | 246 | { |
259 | struct ath_softc *sc = aphy->sc; | 247 | struct ath_softc *sc = aphy->sc; |
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c index e2c1ba3ea483..46466ffebcb0 100644 --- a/drivers/net/wireless/ath/ath9k/mac.c +++ b/drivers/net/wireless/ath/ath9k/mac.c | |||
@@ -1018,3 +1018,16 @@ bool ath9k_hw_stopdmarecv(struct ath_hw *ah) | |||
1018 | #undef AH_RX_STOP_DMA_TIMEOUT | 1018 | #undef AH_RX_STOP_DMA_TIMEOUT |
1019 | } | 1019 | } |
1020 | EXPORT_SYMBOL(ath9k_hw_stopdmarecv); | 1020 | EXPORT_SYMBOL(ath9k_hw_stopdmarecv); |
1021 | |||
1022 | int ath9k_hw_beaconq_setup(struct ath_hw *ah) | ||
1023 | { | ||
1024 | struct ath9k_tx_queue_info qi; | ||
1025 | |||
1026 | memset(&qi, 0, sizeof(qi)); | ||
1027 | qi.tqi_aifs = 1; | ||
1028 | qi.tqi_cwmin = 0; | ||
1029 | qi.tqi_cwmax = 0; | ||
1030 | /* NB: don't enable any interrupts */ | ||
1031 | return ath9k_hw_setuptxqueue(ah, ATH9K_TX_QUEUE_BEACON, &qi); | ||
1032 | } | ||
1033 | EXPORT_SYMBOL(ath9k_hw_beaconq_setup); | ||
diff --git a/drivers/net/wireless/ath/ath9k/mac.h b/drivers/net/wireless/ath/ath9k/mac.h index 9ab343151be4..fefb65dafb1c 100644 --- a/drivers/net/wireless/ath/ath9k/mac.h +++ b/drivers/net/wireless/ath/ath9k/mac.h | |||
@@ -667,5 +667,6 @@ void ath9k_hw_rxena(struct ath_hw *ah); | |||
667 | void ath9k_hw_startpcureceive(struct ath_hw *ah); | 667 | void ath9k_hw_startpcureceive(struct ath_hw *ah); |
668 | void ath9k_hw_stoppcurecv(struct ath_hw *ah); | 668 | void ath9k_hw_stoppcurecv(struct ath_hw *ah); |
669 | bool ath9k_hw_stopdmarecv(struct ath_hw *ah); | 669 | bool ath9k_hw_stopdmarecv(struct ath_hw *ah); |
670 | int ath9k_hw_beaconq_setup(struct ath_hw *ah); | ||
670 | 671 | ||
671 | #endif /* MAC_H */ | 672 | #endif /* MAC_H */ |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index c541516a2e9d..36af6f32652a 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1709,7 +1709,7 @@ static int ath_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid, | |||
1709 | * priority. Note that the hal handles reseting | 1709 | * priority. Note that the hal handles reseting |
1710 | * these queues at the needed time. | 1710 | * these queues at the needed time. |
1711 | */ | 1711 | */ |
1712 | sc->beacon.beaconq = ath_beaconq_setup(ah); | 1712 | sc->beacon.beaconq = ath9k_hw_beaconq_setup(ah); |
1713 | if (sc->beacon.beaconq == -1) { | 1713 | if (sc->beacon.beaconq == -1) { |
1714 | ath_print(common, ATH_DBG_FATAL, | 1714 | ath_print(common, ATH_DBG_FATAL, |
1715 | "Unable to setup a beacon xmit queue\n"); | 1715 | "Unable to setup a beacon xmit queue\n"); |