summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-03-29 21:17:08 +0000
committersam <sam@FreeBSD.org>2009-03-29 21:17:08 +0000
commitf7c50ce1e4a47dd26c6dc6d42d8a07343e9d020b (patch)
tree3adee507d18d3410de7636b1c9fdf73932df5b00 /sys/net80211/ieee80211.c
parent616f4bd2e5f839f51b2cfd6f131a31b7d81e837c (diff)
downloadFreeBSD-src-f7c50ce1e4a47dd26c6dc6d42d8a07343e9d020b.zip
FreeBSD-src-f7c50ce1e4a47dd26c6dc6d42d8a07343e9d020b.tar.gz
o add ic_rt to track the rate table for the current channel; this enables
calculation of packet transmit times to do things like check txop limits o remove equivalent driver code and convert to use net80211 state
Diffstat (limited to 'sys/net80211/ieee80211.c')
-rw-r--r--sys/net80211/ieee80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index 71c9516..bd3c1ae 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -186,6 +186,7 @@ ieee80211_chan_init(struct ieee80211com *ic)
ic->ic_csa_newchan = NULL;
/* arbitrarily pick the first channel */
ic->ic_curchan = &ic->ic_channels[0];
+ ic->ic_rt = ieee80211_get_ratetable(ic->ic_curchan);
/* fillin well-known rate sets if driver has not specified */
DEFAULTRATES(IEEE80211_MODE_11B, ieee80211_rateset_11b);
OpenPOWER on IntegriCloud