aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-10-06 21:19:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:53 -0400
commit536b3a7a10c8fd39576a0602bfeca9bbd04658a6 (patch)
treed6a293e32b9ec406cf686a81e50417b8eea8eada /drivers/net/wireless/ath
parentbd96d3909549a0c09388987810e3e81397b500a9 (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/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h1
-rw-r--r--drivers/net/wireless/ath/ath9k/beacon.c12
-rw-r--r--drivers/net/wireless/ath/ath9k/mac.c13
-rw-r--r--drivers/net/wireless/ath/ath9k/mac.h1
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c2
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 14ff38d1f67..13dd0202d6b 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
422void ath_beacon_tasklet(unsigned long data); 422void ath_beacon_tasklet(unsigned long data);
423void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif); 423void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif);
424int ath_beaconq_setup(struct ath_hw *ah);
425int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif); 424int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif);
426void ath_beacon_return(struct ath_softc *sc, struct ath_vif *avp); 425void 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 54be876639a..b10c884f293 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
245int 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
257int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif) 245int 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 e2c1ba3ea48..46466ffebcb 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}
1020EXPORT_SYMBOL(ath9k_hw_stopdmarecv); 1020EXPORT_SYMBOL(ath9k_hw_stopdmarecv);
1021
1022int 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}
1033EXPORT_SYMBOL(ath9k_hw_beaconq_setup);
diff --git a/drivers/net/wireless/ath/ath9k/mac.h b/drivers/net/wireless/ath/ath9k/mac.h
index 9ab343151be..fefb65dafb1 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);
667void ath9k_hw_startpcureceive(struct ath_hw *ah); 667void ath9k_hw_startpcureceive(struct ath_hw *ah);
668void ath9k_hw_stoppcurecv(struct ath_hw *ah); 668void ath9k_hw_stoppcurecv(struct ath_hw *ah);
669bool ath9k_hw_stopdmarecv(struct ath_hw *ah); 669bool ath9k_hw_stopdmarecv(struct ath_hw *ah);
670int 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 c541516a2e9..36af6f32652 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");