ath9k: rename ath_beaconq_setup() to ath9k_hw_beaconq_setup()
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 7 Oct 2009 01:19:11 +0000 (21:19 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Oct 2009 20:39:53 +0000 (16:39 -0400)
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>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/beacon.c
drivers/net/wireless/ath/ath9k/mac.c
drivers/net/wireless/ath/ath9k/mac.h
drivers/net/wireless/ath/ath9k/main.c

index 14ff38d1f67cda59f38cc9535dbdc27a9fe01aa9..13dd0202d6b5ffd58047cdbb3e3466166104cbd8 100644 (file)
@@ -421,7 +421,6 @@ struct ath_beacon {
 
 void ath_beacon_tasklet(unsigned long data);
 void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif);
-int ath_beaconq_setup(struct ath_hw *ah);
 int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif);
 void ath_beacon_return(struct ath_softc *sc, struct ath_vif *avp);
 
index 54be876639a022b05ea3f1edf9162483a2447eb4..b10c884f2933f14fc3633e03a8948fb67c246cb7 100644 (file)
@@ -242,18 +242,6 @@ static void ath_beacon_start_adhoc(struct ath_softc *sc,
                  sc->beacon.beaconq, ito64(bf->bf_daddr), bf->bf_desc);
 }
 
-int ath_beaconq_setup(struct ath_hw *ah)
-{
-       struct ath9k_tx_queue_info qi;
-
-       memset(&qi, 0, sizeof(qi));
-       qi.tqi_aifs = 1;
-       qi.tqi_cwmin = 0;
-       qi.tqi_cwmax = 0;
-       /* NB: don't enable any interrupts */
-       return ath9k_hw_setuptxqueue(ah, ATH9K_TX_QUEUE_BEACON, &qi);
-}
-
 int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif)
 {
        struct ath_softc *sc = aphy->sc;
index e2c1ba3ea48374477617209e232ff108940f4d8e..46466ffebcb04d72b6353f5f05934a5d9df71a0f 100644 (file)
@@ -1018,3 +1018,16 @@ bool ath9k_hw_stopdmarecv(struct ath_hw *ah)
 #undef AH_RX_STOP_DMA_TIMEOUT
 }
 EXPORT_SYMBOL(ath9k_hw_stopdmarecv);
+
+int ath9k_hw_beaconq_setup(struct ath_hw *ah)
+{
+       struct ath9k_tx_queue_info qi;
+
+       memset(&qi, 0, sizeof(qi));
+       qi.tqi_aifs = 1;
+       qi.tqi_cwmin = 0;
+       qi.tqi_cwmax = 0;
+       /* NB: don't enable any interrupts */
+       return ath9k_hw_setuptxqueue(ah, ATH9K_TX_QUEUE_BEACON, &qi);
+}
+EXPORT_SYMBOL(ath9k_hw_beaconq_setup);
index 9ab343151be466fd73fb4774bdaaa6bcf41e9823..fefb65dafb1cac0ed4e0b9d73728cac92e2939a9 100644 (file)
@@ -667,5 +667,6 @@ void ath9k_hw_rxena(struct ath_hw *ah);
 void ath9k_hw_startpcureceive(struct ath_hw *ah);
 void ath9k_hw_stoppcurecv(struct ath_hw *ah);
 bool ath9k_hw_stopdmarecv(struct ath_hw *ah);
+int ath9k_hw_beaconq_setup(struct ath_hw *ah);
 
 #endif /* MAC_H */
index c541516a2e9d44dd6e69ccc1c6aae2149a7ac326..36af6f32652ad4c07ea26099bbdcaaebd249df02 100644 (file)
@@ -1709,7 +1709,7 @@ static int ath_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
         * priority.  Note that the hal handles reseting
         * these queues at the needed time.
         */
-       sc->beacon.beaconq = ath_beaconq_setup(ah);
+       sc->beacon.beaconq = ath9k_hw_beaconq_setup(ah);
        if (sc->beacon.beaconq == -1) {
                ath_print(common, ATH_DBG_FATAL,
                          "Unable to setup a beacon xmit queue\n");