Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mwl/if_mwl.c
| Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| static int mwl_dma_setup(struct mwl_softc *); | static int mwl_dma_setup(struct mwl_softc *); | ||||
| static void mwl_dma_cleanup(struct mwl_softc *); | static void mwl_dma_cleanup(struct mwl_softc *); | ||||
| static struct ieee80211_node *mwl_node_alloc(struct ieee80211vap *, | static struct ieee80211_node *mwl_node_alloc(struct ieee80211vap *, | ||||
| const uint8_t [IEEE80211_ADDR_LEN]); | const uint8_t [IEEE80211_ADDR_LEN]); | ||||
| static void mwl_node_cleanup(struct ieee80211_node *); | static void mwl_node_cleanup(struct ieee80211_node *); | ||||
| static void mwl_node_drain(struct ieee80211_node *); | static void mwl_node_drain(struct ieee80211_node *); | ||||
| static void mwl_node_getsignal(const struct ieee80211_node *, | static void mwl_node_getsignal(const struct ieee80211_node *, | ||||
| int8_t *, int8_t *); | net80211_rssi_t *, int8_t *); | ||||
| static void mwl_node_getmimoinfo(const struct ieee80211_node *, | static void mwl_node_getmimoinfo(const struct ieee80211_node *, | ||||
| struct ieee80211_mimo_info *); | struct ieee80211_mimo_info *); | ||||
| static int mwl_rxbuf_init(struct mwl_softc *, struct mwl_rxbuf *); | static int mwl_rxbuf_init(struct mwl_softc *, struct mwl_rxbuf *); | ||||
| static void mwl_rx_proc(void *, int); | static void mwl_rx_proc(void *, int); | ||||
| static void mwl_txq_init(struct mwl_softc *sc, struct mwl_txq *, int); | static void mwl_txq_init(struct mwl_softc *sc, struct mwl_txq *, int); | ||||
| static int mwl_tx_setup(struct mwl_softc *, int, int); | static int mwl_tx_setup(struct mwl_softc *, int, int); | ||||
| static int mwl_wme_update(struct ieee80211com *); | static int mwl_wme_update(struct ieee80211com *); | ||||
| static void mwl_tx_cleanupq(struct mwl_softc *, struct mwl_txq *); | static void mwl_tx_cleanupq(struct mwl_softc *, struct mwl_txq *); | ||||
| ▲ Show 20 Lines • Show All 2,244 Lines • ▼ Show 20 Lines | for (tid = 0; tid < WME_NUM_TID; tid++) { | ||||
| continue; | continue; | ||||
| if (rap->rxa_qframes) | if (rap->rxa_qframes) | ||||
| mwl_ampdu_rxdma_reclaim(rap); | mwl_ampdu_rxdma_reclaim(rap); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void | static void | ||||
| mwl_node_getsignal(const struct ieee80211_node *ni, int8_t *rssi, int8_t *noise) | mwl_node_getsignal(const struct ieee80211_node *ni, net80211_rssi_t *rssi, int8_t *noise) | ||||
| { | { | ||||
| *rssi = ni->ni_ic->ic_node_getrssi(ni); | *rssi = ni->ni_ic->ic_node_getrssi(ni); | ||||
| #ifdef MWL_ANT_INFO_SUPPORT | #ifdef MWL_ANT_INFO_SUPPORT | ||||
| #if 0 | #if 0 | ||||
| /* XXX need to smooth data */ | /* XXX need to smooth data */ | ||||
| *noise = -MWL_NODE_CONST(ni)->mn_ai.nf; | *noise = -MWL_NODE_CONST(ni)->mn_ai.nf; | ||||
| #else | #else | ||||
| *noise = -95; /* XXX */ | *noise = -95; /* XXX */ | ||||
| ▲ Show 20 Lines • Show All 2,432 Lines • Show Last 20 Lines | |||||