Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ath/if_ath.c
| Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | |||||
| static void ath_reset_proc(void *, int); | static void ath_reset_proc(void *, int); | ||||
| static int ath_desc_alloc(struct ath_softc *); | static int ath_desc_alloc(struct ath_softc *); | ||||
| static void ath_desc_free(struct ath_softc *); | static void ath_desc_free(struct ath_softc *); | ||||
| static struct ieee80211_node *ath_node_alloc(struct ieee80211vap *, | static struct ieee80211_node *ath_node_alloc(struct ieee80211vap *, | ||||
| const uint8_t [IEEE80211_ADDR_LEN]); | const uint8_t [IEEE80211_ADDR_LEN]); | ||||
| static void ath_node_cleanup(struct ieee80211_node *); | static void ath_node_cleanup(struct ieee80211_node *); | ||||
| static void ath_node_free(struct ieee80211_node *); | static void ath_node_free(struct ieee80211_node *); | ||||
| static void ath_node_getsignal(const struct ieee80211_node *, | static void ath_node_getsignal(const struct ieee80211_node *, | ||||
| int8_t *, int8_t *); | net80211_rssi_t *, int8_t *); | ||||
| static void ath_txq_init(struct ath_softc *sc, struct ath_txq *, int); | static void ath_txq_init(struct ath_softc *sc, struct ath_txq *, int); | ||||
| static struct ath_txq *ath_txq_setup(struct ath_softc*, int qtype, int subtype); | static struct ath_txq *ath_txq_setup(struct ath_softc*, int qtype, int subtype); | ||||
| static int ath_tx_setup(struct ath_softc *, int, int); | static int ath_tx_setup(struct ath_softc *, int, int); | ||||
| static void ath_tx_cleanupq(struct ath_softc *, struct ath_txq *); | static void ath_tx_cleanupq(struct ath_softc *, struct ath_txq *); | ||||
| static void ath_tx_cleanup(struct ath_softc *); | static void ath_tx_cleanup(struct ath_softc *); | ||||
| static int ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq, | static int ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq, | ||||
| int dosched); | int dosched); | ||||
| static void ath_tx_proc_q0(void *, int); | static void ath_tx_proc_q0(void *, int); | ||||
| ▲ Show 20 Lines • Show All 3,761 Lines • ▼ Show 20 Lines | ath_node_free(struct ieee80211_node *ni) | ||||
| DPRINTF(sc, ATH_DEBUG_NODE, "%s: %6D: an %p\n", __func__, | DPRINTF(sc, ATH_DEBUG_NODE, "%s: %6D: an %p\n", __func__, | ||||
| ni->ni_macaddr, ":", ATH_NODE(ni)); | ni->ni_macaddr, ":", ATH_NODE(ni)); | ||||
| mtx_destroy(&ATH_NODE(ni)->an_mtx); | mtx_destroy(&ATH_NODE(ni)->an_mtx); | ||||
| sc->sc_node_free(ni); | sc->sc_node_free(ni); | ||||
| } | } | ||||
| static void | static void | ||||
| ath_node_getsignal(const struct ieee80211_node *ni, int8_t *rssi, int8_t *noise) | ath_node_getsignal(const struct ieee80211_node *ni, net80211_rssi_t *rssi, int8_t *noise) | ||||
| { | { | ||||
| struct ieee80211com *ic = ni->ni_ic; | struct ieee80211com *ic = ni->ni_ic; | ||||
| struct ath_softc *sc = ic->ic_softc; | struct ath_softc *sc = ic->ic_softc; | ||||
| struct ath_hal *ah = sc->sc_ah; | struct ath_hal *ah = sc->sc_ah; | ||||
| *rssi = ic->ic_node_getrssi(ni); | *rssi = ic->ic_node_getrssi(ni); | ||||
| if (ni->ni_chan != IEEE80211_CHAN_ANYC) | if (ni->ni_chan != IEEE80211_CHAN_ANYC) | ||||
| *noise = ath_hal_getchannoise(ah, ni->ni_chan); | *noise = ath_hal_getchannoise(ah, ni->ni_chan); | ||||
| ▲ Show 20 Lines • Show All 3,160 Lines • Show Last 20 Lines | |||||