Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ath/ath_rate/sample/sample.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
* Calculate the transmit duration of a frame. | * Calculate the transmit duration of a frame. | ||||
*/ | */ | ||||
static unsigned calc_usecs_unicast_packet(struct ath_softc *sc, | static unsigned calc_usecs_unicast_packet(struct ath_softc *sc, | ||||
int length, | int length, | ||||
int rix, int short_retries, | int rix, int short_retries, | ||||
int long_retries, int is_ht40) | int long_retries, int is_ht40) | ||||
{ | { | ||||
const HAL_RATE_TABLE *rt = sc->sc_currates; | const HAL_RATE_TABLE *rt = sc->sc_currates; | ||||
struct ifnet *ifp = sc->sc_ifp; | struct ieee80211com *ic = &sc->sc_ic; | ||||
struct ieee80211com *ic = ifp->if_l2com; | |||||
int rts, cts; | int rts, cts; | ||||
unsigned t_slot = 20; | unsigned t_slot = 20; | ||||
unsigned t_difs = 50; | unsigned t_difs = 50; | ||||
unsigned t_sifs = 10; | unsigned t_sifs = 10; | ||||
int tt = 0; | int tt = 0; | ||||
int x = 0; | int x = 0; | ||||
int cw = WIFI_CW_MIN; | int cw = WIFI_CW_MIN; | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |