mirror of
https://github.com/proski/madwifi
synced 2024-11-22 14:31:22 +03:00
Remove inline forward declarations, it doesn't work this way
Besided, gcc 3.4.6 doesn't accept it. Move ath_ds_link_swap() before the code that uses it. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3626 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
c85c1bb5c7
commit
17ef384654
22
ath/if_ath.c
22
ath/if_ath.c
@ -164,8 +164,6 @@ static void ath_beacon_free(struct ath_softc *);
|
|||||||
static void ath_beacon_config(struct ath_softc *, struct ieee80211vap *);
|
static void ath_beacon_config(struct ath_softc *, struct ieee80211vap *);
|
||||||
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 __inline void ath_desc_swap(struct ath_desc *);
|
|
||||||
static __inline u_int32_t ath_ds_link_swap(u_int32_t);
|
|
||||||
|
|
||||||
#ifdef IEEE80211_DEBUG_REFCNT
|
#ifdef IEEE80211_DEBUG_REFCNT
|
||||||
static struct ieee80211_node *ath_node_alloc_debug(struct ieee80211vap *,
|
static struct ieee80211_node *ath_node_alloc_debug(struct ieee80211vap *,
|
||||||
@ -1773,6 +1771,16 @@ ath_extend_tsf(u_int64_t tsf, u_int32_t rstamp)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Swap transmit descriptor pointer for HW. */
|
||||||
|
static __inline u_int32_t
|
||||||
|
ath_ds_link_swap(u_int32_t dp) {
|
||||||
|
#ifdef AH_NEED_DESC_SWAP
|
||||||
|
return swab32(dp);
|
||||||
|
#else
|
||||||
|
return (dp);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ath_intr_process_rx_descriptors(struct ath_softc *sc, int* pneedmark, u_int64_t hw_tsf)
|
ath_intr_process_rx_descriptors(struct ath_softc *sc, int* pneedmark, u_int64_t hw_tsf)
|
||||||
{
|
{
|
||||||
@ -2898,16 +2906,6 @@ ath_desc_swap(struct ath_desc *ds)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Swap transmit descriptor pointer for HW. */
|
|
||||||
static __inline u_int32_t
|
|
||||||
ath_ds_link_swap(u_int32_t dp) {
|
|
||||||
#ifdef AH_NEED_DESC_SWAP
|
|
||||||
return swab32(dp);
|
|
||||||
#else
|
|
||||||
return (dp);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ath_txq_dump(struct ath_softc *sc, struct ath_txq *txq)
|
ath_txq_dump(struct ath_softc *sc, struct ath_txq *txq)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user